Difference between revisions of "Template:IPC profile/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(update examples)
imported>Zyxw
(document optional search filters and show example)
Line 2: Line 2:
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
  
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an [[Wikipedia:External links|external link]] to an athlete's results page at [http://www.paralympic.org Paralympic.org], the website of the [[International Paralympic Committee]].
+
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an [[Wikipedia:External links|external link]] to competition results for [[Paralympic Games]] from [http://www.paralympic.org/ipc_results Paralympic.org], the website of the [[International Paralympic Committee]].
  
 
== Usage ==
 
== Usage ==
  
; First and last name
+
; Name parameters
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|givenname=''First''|surname=''Last''}}</code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|givenname=''First''|surname=''Last''}}</code>
  
; First and last name, different text for link
+
; Other search parameters
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|givenname=''First''|surname=''Last''|linktext=''Text''}}</code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|games_id=''Games''|medal=''Medal''|npc=''NPC''|gender=''Gender''}}</code>
  
; First and last name, don't append text after link
+
; Display parameters
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|givenname=''First''|surname=''Last''|quiet=1}}</code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|givenname=''First''|surname=''Last''|linktext=''LinkText''|quiet=1}}</code>
  
 
== Parameters ==
 
== Parameters ==
  
; surname   : [[Surname]] (last name), assigned to <code>name=</code> in URL
+
=== Search parameters===
; givenname : [[Given name]] (first name), assigned to <code>fname=</code> in URL
+
; surname
; games_id : Optional filter, assigned to <code>games=</code> in URL (default: <code>all</code>)
+
: [[Surname]] (last name), assigned to <code>name=</code> in URL
; medal     : Optional filter, assigned to <code>medal=</code> in URL (default: <code>all</code>)
+
 
; npc       : Optional filter, assigned to <code>npc=</code> in URL (default: <code>all</code>)
+
; givenname
; gender   : Optional filter, assigned to <code>gender=</code> in URL (default: <code>all</code>)
+
: [[Given name]] (first name), assigned to <code>fname=</code> in URL
; linktext : [[Link text]] to be displayed instead of default (currently: Results for Givenname Surname)
+
 
; quiet=1   : Don't append text after the external link (currently: from the [[International Paralympic Committee]])
+
; games_id
 +
: Optional filter for [[List of Paralympic Games host cities|competition]], assigned to <code>games=</code> in URL (default: <code>all</code>)
 +
:{| class="wikitable collapsible collapsed"
 +
!  colspan="2" style="background-color:#ccf;" | Allowable values for <tt>games_id</tt>
 +
|-
 +
! Value !! Description
 +
|-
 +
| all || All competitions (default)
 +
|-
 +
| colspan="2" style="background-color:#dde;" | [[Summer Paralympic Games]]
 +
|-
 +
| 1960PG || 1960 Rome
 +
|-
 +
| 1964PG || 1964 Tokyo
 +
|-
 +
| 1968PG || 1968 Tel Aviv
 +
|-
 +
| 1972PG || 1972 Heidelberg
 +
|-
 +
| 1976PG || 1976 Toronto
 +
|-
 +
| 1980PG || 1980 Arnhem
 +
|-
 +
| 1984PG || 1984 New York / Stoke Mandeville
 +
|-
 +
| 1988PG || 1988 Seoul
 +
|-
 +
| 1992PG || 1992 Barcelona
 +
|-
 +
| 1996PG || 1996 Atlanta
 +
|-
 +
| 2000PG || 2000 Sydney
 +
|-
 +
| 2004PG || 2004 Athens
 +
|-
 +
| 2008PG || 2008 Beijing
 +
|-
 +
| 2012PG || 2012 London
 +
|-
 +
| 2016PG || 2016 Rio de Janeiro
 +
|-
 +
| colspan="2" style="background-color:#dde;" | [[Winter Paralympic Games]]
 +
|-
 +
| 1976PWG || 1976 Örnsköldsvik
 +
|-
 +
| 1980PWG || 1980 Geilo
 +
|-
 +
| 1984PWG || 1984 Innsbruck
 +
|-
 +
| 1988PWG || 1988 Innsbruck
 +
|-
 +
| 1992PWG || 1992 Tignes-Albertville
 +
|-
 +
| 1994PWG || 1994 Lillehammer
 +
|-
 +
| 1998PWG || 1998 Nagano
 +
|-
 +
| 2002PWG || 2002 Salt Lake City
 +
|-
 +
| 2006PWG || 2006 Torino
 +
|-
 +
| 2010PWG || 2010 Vancouver
 +
|-
 +
| 2014PWG || 2014 Sochi
 +
|-
 +
| 2018PWG || 2018 Pyeongchang
 +
|}
 +
 
 +
; medal
 +
: Optional filter for [[medallist]]s, assigned to <code>medal=</code> in URL (default: <code>all</code>)
 +
:{| class="wikitable collapsible collapsed"
 +
!  colspan="2" style="background-color:#ccf;" | Allowable values for <tt>medal</tt>
 +
|-
 +
! Value !! Description
 +
|-
 +
| all || All results, including non-medallists (default)
 +
|-
 +
| medals || Medallists only: gold, silver, or bronze
 +
|-
 +
| gold || Gold medallists
 +
|-
 +
| silver || Silver medallists
 +
|-
 +
| bronze || Bronze medallists
 +
|}
 +
 
 +
; npc
 +
: Optional filter for [[National Paralympic Committee|NPC]] (country), assigned to <code>npc=</code> in URL (default: <code>all</code>)
 +
:{| class="wikitable collapsible collapsed"
 +
!  colspan="2" style="background-color:#ccf;" | Allowable values for <tt>npc</tt>
 +
|-
 +
! Value !! Description
 +
|-
 +
| all || All NPCs (default)
 +
|-
 +
| AFG || Afghanistan
 +
|-
 +
| ALB || Albania
 +
|-
 +
| ALG || Algeria
 +
|-
 +
| AND || Andorra
 +
|-
 +
| ANG || Angola
 +
|-
 +
| ANT || Antigua and Barbuda
 +
|-
 +
| ARG || Argentina
 +
|-
 +
| ARM || Armenia
 +
|-
 +
| AUS || Australia
 +
|-
 +
| AUT || Austria
 +
|-
 +
| AZE || Azerbaijan
 +
|-
 +
| BAH || Bahamas
 +
|-
 +
| BAN || Bangladesh
 +
|-
 +
| BAR || Barbados
 +
|-
 +
| BDI || Burundi
 +
|-
 +
| BEL || Belgium
 +
|-
 +
| BEN || Benin
 +
|-
 +
| BER || Bermuda
 +
|-
 +
| BIH || Bosnia-Herzegovina
 +
|-
 +
| BIR || Birma
 +
|-
 +
| BLR || Belarus
 +
|-
 +
| BOL || Bolivia
 +
|-
 +
| BOT || Botswana
 +
|-
 +
| BRA || Brazil
 +
|-
 +
| BRN || Bahrain
 +
|-
 +
| BRU || Brunei
 +
|-
 +
| BUL || Bulgaria
 +
|-
 +
| BUR || Burkina Faso
 +
|-
 +
| CAF || Central African Republic
 +
|-
 +
| CAM || Cambodia
 +
|-
 +
| CAN || Canada
 +
|-
 +
| CGO || Congo
 +
|-
 +
| CHI || Chile
 +
|-
 +
| CHN || China
 +
|-
 +
| CIV || Cote d'Ivoire
 +
|-
 +
| CMR || Cameroon
 +
|-
 +
| COD || Congo DR
 +
|-
 +
| COL || Colombia
 +
|-
 +
| COM || Comoros
 +
|-
 +
| CPV || Cape Verde
 +
|-
 +
| CRC || Costa Rica
 +
|-
 +
| CRO || Croatia
 +
|-
 +
| CUB || Cuba
 +
|-
 +
| CYP || Cyprus
 +
|-
 +
| CZE || Czech Republic
 +
|-
 +
| DEN || Denmark
 +
|-
 +
| DJI || Djibouti
 +
|-
 +
| DOM || Dominican Republic
 +
|-
 +
| ECU || Ecuador
 +
|-
 +
| EGY || Egypt
 +
|-
 +
| ESA || El Salvador
 +
|-
 +
| ESP || Spain
 +
|-
 +
| EST || Estonia
 +
|-
 +
| ETH || Ethiopia
 +
|-
 +
| EUN || Unified Team
 +
|-
 +
| FIJ || Fiji
 +
|-
 +
| FIN || Finland
 +
|-
 +
| FRA || France
 +
|-
 +
| FRG || Fed. Rep. of Germany
 +
|-
 +
| FRO || Faroe Islands
 +
|-
 +
| GAB || Gabon
 +
|-
 +
| GAM || Gambia
 +
|-
 +
| GBR || Great Britain
 +
|-
 +
| GBS || Guinea-Bissau
 +
|-
 +
| GDR || GDR
 +
|-
 +
| GEO || Georgia
 +
|-
 +
| GER || Germany
 +
|-
 +
| GHA || Ghana
 +
|-
 +
| GRE || Greece
 +
|-
 +
| GUA || Guatemala
 +
|-
 +
| GUI || Guinea
 +
|-
 +
| HAI || Haiti
 +
|-
 +
| HKG || Hong Kong
 +
|-
 +
| HON || Honduras
 +
|-
 +
| HUN || Hungary
 +
|-
 +
| INA || Indonesia
 +
|-
 +
| IND || India
 +
|-
 +
| IPA || Individual Paralympic Athletes
 +
|-
 +
| IPP || Independent Paralympic Participants
 +
|-
 +
| IRI || Iran
 +
|-
 +
| IRL || Ireland
 +
|-
 +
| IRQ || Iraq
 +
|-
 +
| ISL || Iceland
 +
|-
 +
| ISR || Israel
 +
|-
 +
| ISV || US Virgin Islands
 +
|-
 +
| ITA || Italy
 +
|-
 +
| JAM || Jamaica
 +
|-
 +
| JOR || Jordan
 +
|-
 +
| JPN || Japan
 +
|-
 +
| KAZ || Kazakhstan
 +
|-
 +
| KEN || Kenya
 +
|-
 +
| KGZ || Kyrgyzstan
 +
|-
 +
| KOR || Korea
 +
|-
 +
| KSA || Saudi Arabia
 +
|-
 +
| KUW || Kuwait
 +
|-
 +
| LAO || Laos
 +
|-
 +
| LAT || Latvia
 +
|-
 +
| LBA || Libya
 +
|-
 +
| LBR || Liberia
 +
|-
 +
| LES || Lesotho
 +
|-
 +
| LIB || Lebanon
 +
|-
 +
| LIE || Liechtenstein
 +
|-
 +
| LTU || Lithuania
 +
|-
 +
| LUX || Luxembourg
 +
|-
 +
| MAC || Macau
 +
|-
 +
| MAD || Madagascar
 +
|-
 +
| MAR || Morocco
 +
|-
 +
| MAS || Malaysia
 +
|-
 +
| MAW || Malawi
 +
|-
 +
| MDA || Moldova
 +
|-
 +
| MEX || Mexico
 +
|-
 +
| MGL || Mongolia
 +
|-
 +
| MKD || Macedonia
 +
|-
 +
| MLI || Mali
 +
|-
 +
| MLT || Malta
 +
|-
 +
| MNE || Montenegro
 +
|-
 +
| MOZ || Mozambique
 +
|-
 +
| MRI || Mauritius
 +
|-
 +
| MTN || Mauritania
 +
|-
 +
| MYA || Myanmar
 +
|-
 +
| NAM || Namibia
 +
|-
 +
| NCA || Nicaragua
 +
|-
 +
| NED || Netherlands
 +
|-
 +
| NEP || Nepal
 +
|-
 +
| NGR || Nigeria
 +
|-
 +
| NIG || Niger
 +
|-
 +
| NOR || Norway
 +
|-
 +
| NZL || New Zealand
 +
|-
 +
| OMA || Oman
 +
|-
 +
| PAK || Pakistan
 +
|-
 +
| PAN || Panama
 +
|-
 +
| PER || Peru
 +
|-
 +
| PHI || Philippines
 +
|-
 +
| PLE || Palestine
 +
|-
 +
| PNG || Papua New Guinea
 +
|-
 +
| POL || Poland
 +
|-
 +
| POR || Portugal
 +
|-
 +
| PRK || DPR Korea
 +
|-
 +
| PUR || Puerto Rico
 +
|-
 +
| QAT || Qatar
 +
|-
 +
| RHO || Rhodesia
 +
|-
 +
| ROM || Romania
 +
|-
 +
| ROU || Romania
 +
|-
 +
| RSA || South Africa
 +
|-
 +
| RUS || Russia
 +
|-
 +
| RWA || Rwanda
 +
|-
 +
| SAM || Samoa
 +
|-
 +
| SCG || Serbia and Montenegro
 +
|-
 +
| SEN || Senegal
 +
|-
 +
| SEY || Seychelles
 +
|-
 +
| SIN || Singapore
 +
|-
 +
| SLE || Sierra Leone
 +
|-
 +
| SLO || Slovenia
 +
|-
 +
| SMR || San Marino
 +
|-
 +
| SOL || Solomon Islands
 +
|-
 +
| SRB || Serbia
 +
|-
 +
| SRI || Sri Lanka
 +
|-
 +
| SUD || Sudan
 +
|-
 +
| SUI || Switzerland
 +
|-
 +
| SUR || Suriname
 +
|-
 +
| SVK || Slovakia
 +
|-
 +
| SWE || Sweden
 +
|-
 +
| SYR || Syria
 +
|-
 +
| TAN || Tanzania
 +
|-
 +
| TCH || Czechoslovakia
 +
|-
 +
| TGA || Tonga
 +
|-
 +
| THA || Thailand
 +
|-
 +
| TJK || Tajikistan
 +
|-
 +
| TKM || Turkmenistan
 +
|-
 +
| TLS || Timor-Leste
 +
|-
 +
| TOG || Togo
 +
|-
 +
| TPE || Chinese Taipei
 +
|-
 +
| TRI || Trinidad and Tobago
 +
|-
 +
| TUN || Tunisia
 +
|-
 +
| TUR || Turkey
 +
|-
 +
| UAE || United Arab Emirates
 +
|-
 +
| UGA || Uganda
 +
|-
 +
| UKR || Ukraine
 +
|-
 +
| URS || USSR
 +
|-
 +
| URU || Uruguay
 +
|-
 +
| USA || USA
 +
|-
 +
| UZB || Uzbekistan
 +
|-
 +
| VAN || Vanuatu
 +
|-
 +
| VEN || Venezuela
 +
|-
 +
| VIE || Vietnam
 +
|-
 +
| YEM || Yemen
 +
|-
 +
| YUG || Yugoslavia
 +
|-
 +
| ZAM || Zambia
 +
|-
 +
| ZIM || Zimbabwe
 +
|}
 +
 
 +
; gender
 +
: Optional filter for [[gender]], assigned to <code>gender=</code> in URL (default: <code>all</code>)
 +
:{| class="wikitable collapsible collapsed"
 +
!  colspan="2" style="background-color:#ccf;" | Allowable values for <tt>gender</tt>
 +
|-
 +
! Value !! Description
 +
|-
 +
| all || All competitors (default)
 +
|-
 +
| m || Male competitors
 +
|-
 +
| f || Female competitors
 +
|}
 +
 
 +
=== Display parameters ===
 +
 
 +
; linktext
 +
: [[Link text]] to be displayed instead of default (currently: Results for Givenname Surname)
 +
 
 +
; quiet=1
 +
: Don't append text after the external link (currently: from the [[International Paralympic Committee]])
  
 
== Examples ==
 
== Examples ==
  
 
; First and last name
 
; First and last name
* URL: http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name=Zorn&fname=Trischa
+
: '''URL:''' http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name=Zorn&fname=Trischa
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|givenname=Trischa|surname=Zorn}}</code>
+
: '''Usage:''' <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |givenname=Trischa |surname=Zorn }}</code>
* {{ {{BASEPAGENAME}}|givenname=Trischa|surname=Zorn}}
+
: '''Output:''' {{ {{BASEPAGENAME}} |givenname=Trischa |surname=Zorn }}
 
 
; First and last name, different text for link
 
* URL: http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name=Myklebust&fname=Ragnhild
 
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|surname=Myklebust|givenname=Ragnhild|linktext=Paralympic results}}</code>
 
* {{ {{BASEPAGENAME}}|surname=Myklebust|givenname=Ragnhild|linktext=Paralympic results}}
 
 
 
; First and last name, don't append text after link
 
* URL: http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name=Hess&fname=Beatrice
 
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|surname=Hess|givenname=Beatrice|quiet=1}}</code>
 
* {{ {{BASEPAGENAME}}|surname=Hess|givenname=Beatrice|quiet=1}}
 
  
 
; First name only
 
; First name only
* URL: http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name=&fname=Gerry
+
: '''URL:''' http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name=&fname=Gerry
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|givenname=Gerry}}</code>
+
: '''Usage:''' <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |givenname=Gerry }}</code>
* {{ {{BASEPAGENAME}}|givenname=Gerry}}
+
: '''Output:''' {{ {{BASEPAGENAME}} |givenname=Gerry }}
  
 
; Last name only
 
; Last name only
* URL: http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name=Campbell&fname=
+
: '''URL:''' http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name=Campbell&fname=
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|surname=Campbell}}</code>
+
: '''Usage:''' <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |surname=Campbell }}</code>
* {{ {{BASEPAGENAME}}|surname=Campbell}}
+
: '''Output:''' {{ {{BASEPAGENAME}} |surname=Campbell }}
 +
 
 +
; Australian female gold medallists at the 1980 Summer Paralympics
 +
: '''URL:''' http://www.paralympic.org/ipc_results/search.php?sport=all&games=1980PG&medal=gold&npc=AUS&gender=f&name=&fname=
 +
: '''Usage:''' <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |games_id=1980PG |medal=gold |npc=AUS |gender=f |linktext=Australian female gold medallists at the 1980 Summer Paralympics |quiet=1 }}</code>
 +
: '''Output:''' {{ {{BASEPAGENAME}} |games_id=1980PG |medal=gold |npc=AUS |gender=f |linktext=Australian female gold medallists at the 1980 Summer Paralympics |quiet=1 }}
  
 
== See also ==
 
== See also ==

Revision as of 04:57, 5 October 2015

Template:IPC profile displays an external link to competition results for Paralympic Games from Paralympic.org, the website of the International Paralympic Committee.

Usage

Name parameters
{{IPC profile|givenname=First|surname=Last}}
Other search parameters
{{IPC profile|games_id=Games|medal=Medal|npc=NPC|gender=Gender}}
Display parameters
{{IPC profile|givenname=First|surname=Last|linktext=LinkText|quiet=1}}

Parameters

Search parameters

surname
Surname (last name), assigned to name= in URL
givenname
Given name (first name), assigned to fname= in URL
games_id
Optional filter for competition, assigned to games= in URL (default: all)
medal
Optional filter for medallists, assigned to medal= in URL (default: all)
npc
Optional filter for NPC (country), assigned to npc= in URL (default: all)
gender
Optional filter for gender, assigned to gender= in URL (default: all)

Display parameters

linktext
Link text to be displayed instead of default (currently: Results for Givenname Surname)
quiet=1
Don't append text after the external link (currently: from the International Paralympic Committee)

Examples

First and last name
URL: http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name=Zorn&fname=Trischa
Usage: {{IPC profile |givenname=Trischa |surname=Zorn }}
Output: Results for Trischa Zorn from the International Paralympic Committee (archived)
First name only
URL: http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name=&fname=Gerry
Usage: {{IPC profile |givenname=Gerry }}
Output: Results for Gerry from the International Paralympic Committee (archived)
Last name only
URL: http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name=Campbell&fname=
Usage: {{IPC profile |surname=Campbell }}
Output: Results for Campbell from the International Paralympic Committee (archived)
Australian female gold medallists at the 1980 Summer Paralympics
URL: http://www.paralympic.org/ipc_results/search.php?sport=all&games=1980PG&medal=gold&npc=AUS&gender=f&name=&fname=
Usage: {{IPC profile |games_id=1980PG |medal=gold |npc=AUS |gender=f |linktext=Australian female gold medallists at the 1980 Summer Paralympics |quiet=1 }}
Output: Australian female gold medallists at the 1980 Summer Paralympics (archived)

See also

  • {{USOC profile}}, an external link template for U.S. Olympic and Paralympic athletes