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

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(→‎See also: list other IPC external link templates)
imported>Zyxw
(document archive parameter, update examples, update see also, add template category)
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 competition results for [[Paralympic Games]] from [http://www.paralympic.org/ipc_results 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]]. The web pages linked to by this template no longer exist, so by default it searches for an archived page via the [[Memento Project]].
  
 
== Usage ==
 
== Usage ==
Line 18: Line 18:
  
 
=== Search parameters===
 
=== Search parameters===
; surname
+
; {{para|surname}}
 
: [[Surname]] (last name), assigned to <code>name=</code> in URL
 
: [[Surname]] (last name), assigned to <code>name=</code> in URL
  
; givenname
+
; {{para|givenname}}
 
: [[Given name]] (first name), assigned to <code>fname=</code> in URL
 
: [[Given name]] (first name), assigned to <code>fname=</code> in URL
  
; games_id
+
; {{para|games_id}}
 
: Optional filter for [[List of Paralympic Games host cities|competition]], assigned to <code>games=</code> in URL (default: <code>all</code>)
 
: 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"
 
:{| class="wikitable collapsible collapsed"
Line 92: Line 92:
 
|}
 
|}
  
; medal
+
; {{para|medal}}
 
: Optional filter for [[medallist]]s, assigned to <code>medal=</code> in URL (default: <code>all</code>)
 
: Optional filter for [[medallist]]s, assigned to <code>medal=</code> in URL (default: <code>all</code>)
 
:{| class="wikitable collapsible collapsed"
 
:{| class="wikitable collapsible collapsed"
Line 110: Line 110:
 
|}
 
|}
  
; npc
+
; {{para|npc}}
 
: Optional filter for [[National Paralympic Committee|NPC]] (country), assigned to <code>npc=</code> in URL (default: <code>all</code>)
 
: Optional filter for [[National Paralympic Committee|NPC]] (country), assigned to <code>npc=</code> in URL (default: <code>all</code>)
 
:{| class="wikitable collapsible collapsed"
 
:{| class="wikitable collapsible collapsed"
Line 498: Line 498:
 
|}
 
|}
  
; gender
+
; {{para|gender}}
 
: Optional filter for [[gender]], assigned to <code>gender=</code> in URL (default: <code>all</code>)
 
: Optional filter for [[gender]], assigned to <code>gender=</code> in URL (default: <code>all</code>)
 
:{| class="wikitable collapsible collapsed"
 
:{| class="wikitable collapsible collapsed"
Line 514: Line 514:
 
=== Display parameters ===
 
=== Display parameters ===
  
; linktext
+
; {{para|linktext}}
 
: [[Link text]] to be displayed instead of default (currently: Results for Givenname Surname)
 
: [[Link text]] to be displayed instead of default (currently: Results for Givenname Surname)
  
; quiet=1
+
; {{para|quiet|1}}
 
: Don't append text after the external link (currently: from the [[International Paralympic Committee]])
 
: Don't append text after the external link (currently: from the [[International Paralympic Committee]])
 +
 +
=== Archive parameter ===
 +
 +
; {{para|archive}}
 +
: The archive parameter is optional but may be used to link to a specific archived page from the [[Internet Archive]]. The value is a number representing the date and time, such as 20160304052051 in https://web.archive.org/web/20160304052051/http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name=zorn&fname=trischa.
  
 
== 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
: '''Usage:''' <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |givenname=Trischa |surname=Zorn }}</code>
+
: <kbd>http://<nowiki/>www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name={{Hilite|Zorn}}&fname={{Hilite|Trischa}}</kbd> ([https://web.archive.org/web/20160304052051/http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name=zorn&fname=trischa archive])
: '''Output:''' {{ {{BASEPAGENAME}} |givenname=Trischa |surname=Zorn }}
+
 
 +
; Usage
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |givenname=Trischa |surname=Zorn }}</code>
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |givenname=Trischa |surname=Zorn |archive=20160304052051 }}</code>
 +
 
 +
; Output
 +
:* {{ {{BASEPAGENAME}} |givenname=Trischa |surname=Zorn }}
 +
:* {{ {{BASEPAGENAME}} |givenname=Trischa |surname=Zorn |archive=20160304052051 }}
  
; 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
: '''Usage:''' <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |givenname=Gerry }}</code>
+
: <kbd>http://<nowiki/>www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name=&fname={{Hilite|Gerry}}</kbd> ([https://web.archive.org/web/20160304035907/http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name=&fname=Gerry archive])
: '''Output:''' {{ {{BASEPAGENAME}} |givenname=Gerry }}
 
  
; Last name only
+
; Usage
: '''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}} |givenname=Gerry }}</code>
: '''Usage:''' <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |surname=Campbell }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |givenname=Gerry |archive=20160304035907 }}</code>
: '''Output:''' {{ {{BASEPAGENAME}} |surname=Campbell }}
 
  
; Australian female gold medallists at the 1980 Summer Paralympics
+
; Output
: '''URL:''' http://www.paralympic.org/ipc_results/search.php?sport=all&games=1980PG&medal=gold&npc=AUS&gender=f&name=&fname=
+
:* {{ {{BASEPAGENAME}} |givenname=Gerry }}
: '''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>
+
:* {{ {{BASEPAGENAME}} |givenname=Gerry |archive=20160304035907 }}
: '''Output:''' {{ {{BASEPAGENAME}} |games_id=1980PG |medal=gold |npc=AUS |gender=f |linktext=Australian female gold medallists at the 1980 Summer Paralympics |quiet=1 }}
+
 
 +
=== Last name only ===
 +
; URL
 +
: <kbd>http://<nowiki/>www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name={{Hilite|Campbell}}&fname=</kbd> ([https://web.archive.org/web/20160304041344/http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name=Campbell&fname= archive])
 +
 
 +
; Usage
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |surname=Campbell }}</code>
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |surname=Campbell |archive=20160304041344 }}</code>
 +
 
 +
; Output
 +
:* {{ {{BASEPAGENAME}} |surname=Campbell }}
 +
:* {{ {{BASEPAGENAME}} |surname=Campbell |archive=20160304041344 }}
 +
 
 +
=== Australian female gold medallists at the 1980 Summer Paralympics ===
 +
; URL
 +
: <kbd>http://<nowiki/>www.paralympic.org/ipc_results/search.php?sport=all&games={{Hilite|1980PG}}&medal={{Hilite|gold}}&npc={{Hilite|AUS}}&gender={{Hilite|f}}&name=&fname=</kbd> ([https://web.archive.org/web/20160304034738/http://www.paralympic.org/ipc_results/search.php?sport=all&games=1980PG&medal=gold&npc=AUS&gender=f&name=&fname= archive])
 +
 
 +
; 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>
 +
: <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 |archive=20160304034738 }}</code>
 +
 
 +
; Output
 +
:* {{ {{BASEPAGENAME}} |games_id=1980PG |medal=gold |npc=AUS |gender=f |linktext=Australian female gold medallists at the 1980 Summer Paralympics |quiet=1 }}
 +
:* {{ {{BASEPAGENAME}} |games_id=1980PG |medal=gold |npc=AUS |gender=f |linktext=Australian female gold medallists at the 1980 Summer Paralympics |quiet=1 |archive=20160304034738 }}
  
 
== See also ==
 
== See also ==
; International Paralympic Committee external link templates
+
; Current external link templates for Paralympic athlete profiles
 +
* {{tl|IPC athlete}} for the [[International Paralympic Committee]]
 +
* {{tl|Paralympics Australia}} for [[Paralympics Australia]]
 +
* {{tl|CPC profile}} for the [[Canadian Paralympic Committee]]
 +
* {{tl|Team USA}} for the [[United States Olympic & Paralympic Committee]]
 +
; Historical IPC external link templates
 
* {{tl|IPC npc profile}}
 
* {{tl|IPC npc profile}}
 
* {{tl|IPC event}}
 
* {{tl|IPC event}}
 
* {{tl|IPC event results}}
 
* {{tl|IPC event results}}
 
* {{tl|IPC medals}}
 
* {{tl|IPC medals}}
; Other Paralympic external link templates
 
* {{tl|USOC profile}}, for U.S. Olympic and Paralympic athletes
 
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
Line 555: Line 591:
 
[[Category:Paralympics external link templates]]
 
[[Category:Paralympics external link templates]]
 
[[Category:People and person external link templates]]
 
[[Category:People and person external link templates]]
 +
[[Category:External link templates with archive parameter]]
 
[[Category:Paralympics task force]]
 
[[Category:Paralympics task force]]
 
 
}}</includeonly>
 
}}</includeonly>

Revision as of 14:13, 29 December 2019

Template:IPC profile displays an external link to competition results for Paralympic Games from Paralympic.org, the website of the International Paralympic Committee. The web pages linked to by this template no longer exist, so by default it searches for an archived page via the Memento Project.

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)

Archive parameter

|archive=
The archive parameter is optional but may be used to link to a specific archived page from the Internet Archive. The value is a number representing the date and time, such as 20160304052051 in https://web.archive.org/web/20160304052051/http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=all&gender=all&name=zorn&fname=trischa.

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 (archive)
Usage
* {{IPC profile |givenname=Trischa |surname=Zorn }}
* {{IPC profile |givenname=Trischa |surname=Zorn |archive=20160304052051 }}
Output

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 (archive)
Usage
* {{IPC profile |givenname=Gerry }}
* {{IPC profile |givenname=Gerry |archive=20160304035907 }}
Output

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= (archive)
Usage
* {{IPC profile |surname=Campbell }}
* {{IPC profile |surname=Campbell |archive=20160304041344 }}
Output

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= (archive)
Usage
* {{IPC profile |games_id=1980PG |medal=gold |npc=AUS |gender=f |linktext=Australian female gold medallists at the 1980 Summer Paralympics |quiet=1 }}
* {{IPC profile |games_id=1980PG |medal=gold |npc=AUS |gender=f |linktext=Australian female gold medallists at the 1980 Summer Paralympics |quiet=1 |archive=20160304034738 }}
Output

See also

Current external link templates for Paralympic athlete profiles
Historical IPC external link templates