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

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(create documentation, include categories)
 
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===
  
; npc
+
; {{para|npc}}
 
: [[List of IOC country codes|Three letter code]] for [[National Paralympic Committee]] (country), assigned to <code>npc=</code> in URL (default: <code>all</code>)
 
: [[List of IOC country codes|Three letter code]] for [[National Paralympic Committee]] (country), assigned to <code>npc=</code> in URL (default: <code>all</code>)
 
:{| class="wikitable collapsible collapsed"
 
:{| class="wikitable collapsible collapsed"
Line 406: Line 406:
 
|}
 
|}
  
; 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 474: Line 474:
 
|}
 
|}
  
; 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 492: Line 492:
 
|}
 
|}
  
; 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 508: Line 508:
 
=== Display parameters ===
 
=== Display parameters ===
  
; linktext
+
; {{para|linktext}}
 
: [[Link text]] to be displayed instead of default (currently: Results for ''Country'')
 
: [[Link text]] to be displayed instead of default (currently: Results for ''Country'')
  
; 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 20160304000954 in https://web.archive.org/web/20160304000954/http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=INA&gender=all.
  
 
== Examples ==
 
== Examples ==
  
; All results for Indonesia
+
=== All results for Indonesia ===
: '''URL:''' http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=INA&gender=all
+
; URL
: '''Usage:''' <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |npc=INA }}</code>
+
: <kbd>http://<nowiki/>www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc={{Hilite|INA}}&gender=all</kbd> ([https://web.archive.org/web/20160304000954/http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=INA&gender=all archive])
: '''Output:''' {{ {{BASEPAGENAME}} |npc=INA }}
+
 
 +
; Usage
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |npc=INA }}</code>
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |npc=INA |archive= }}</code>
  
; 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
+
:* {{ {{BASEPAGENAME}} |npc=INA }}
: '''Usage:''' <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |npc=AUS |gender=f |medal=gold |games_id=1980PG |linktext=Australian female gold medallists at the 1980 Summer Paralympics |quiet=1 }}</code>
+
:* {{ {{BASEPAGENAME}} |npc=INA |archive= }}
: '''Output:''' {{ {{BASEPAGENAME}} |npc=AUS |gender=f |medal=gold |games_id=1980PG |linktext=Australian female gold medallists at the 1980 Summer Paralympics |quiet=1 }}
+
 
 +
=== 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}}</kbd> ([https://web.archive.org/web/20160304070003/http://www.paralympic.org/ipc_results/search.php?sport=all&games=1980PG&medal=gold&npc=AUS&gender=f archive])
 +
 
 +
; Usage
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |npc=AUS |gender=f |medal=gold |games_id=1980PG |linktext=Australian female gold medallists at the 1980 Summer Paralympics |quiet=1 }}</code>
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |npc=AUS |gender=f |medal=gold |games_id=1980PG |linktext=Australian female gold medallists at the 1980 Summer Paralympics |quiet=1 |archive=20160304070003 }}</code>
 +
 
 +
; Output
 +
:* {{ {{BASEPAGENAME}} |npc=AUS |gender=f |medal=gold |games_id=1980PG |linktext=Australian female gold medallists at the 1980 Summer Paralympics |quiet=1 }}
 +
:* {{ {{BASEPAGENAME}} |npc=AUS |gender=f |medal=gold |games_id=1980PG |linktext=Australian female gold medallists at the 1980 Summer Paralympics |quiet=1 |archive=20160304070003 }}
  
 
== See also ==
 
== See also ==
; International Paralympic Committee external link templates
+
; Historical IPC external link templates
 
* {{tl|IPC profile}}, link to results for Paralympic athletes by name
 
* {{tl|IPC profile}}, link to results for Paralympic athletes by name
 
* {{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
+
; Current external link templates for Paralympic athlete profiles
* {{tl|USOC profile}}, for U.S. Olympic and Paralympic athletes
+
* {{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]]
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Paralympics external link templates]]
 
[[Category:Paralympics external link templates]]
 +
[[Category:External link templates with archive parameter]]
 
[[Category:Paralympics task force]]
 
[[Category:Paralympics task force]]
 
 
}}</includeonly>
 
}}</includeonly>

Revision as of 13:47, 4 January 2020

Template:IPC npc 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

National Paralympic Committee country code
{{IPC npc profile|npc=NPC}}
Other search parameters
{{IPC npc profile|npc=NPC|games_id=Games|medal=Medal|gender=Gender}}
Display parameters
{{IPC npc profile|npc=NPC|linktext=LinkText|quiet=1}}

Parameters

Search parameters

|npc=
Three letter code for National Paralympic Committee (country), assigned to npc= in URL (default: all)
|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)
|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 Country)
|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 20160304000954 in https://web.archive.org/web/20160304000954/http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=INA&gender=all.

Examples

All results for Indonesia

URL
http://www.paralympic.org/ipc_results/search.php?sport=all&games=all&medal=all&npc=INA&gender=all (archive)
Usage
* {{IPC npc profile |npc=INA }}
* {{IPC npc profile |npc=INA |archive= }}
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 (archive)
Usage
* {{IPC npc profile |npc=AUS |gender=f |medal=gold |games_id=1980PG |linktext=Australian female gold medallists at the 1980 Summer Paralympics |quiet=1 }}
* {{IPC npc profile |npc=AUS |gender=f |medal=gold |games_id=1980PG |linktext=Australian female gold medallists at the 1980 Summer Paralympics |quiet=1 |archive=20160304070003 }}
Output

See also

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