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

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(document archive parameter, update examples, update see also, add template category)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:
 
== Usage ==
 
== Usage ==
 
; [[National Paralympic Committee]] country code
 
; [[National Paralympic Committee]] country code
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|npc=''NPC''}}</code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|npc=''NPC''<nowiki>}}</nowiki></code>
  
 
; Other search parameters
 
; Other search parameters
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|npc=''NPC''|games_id=''Games''|medal=''Medal''|gender=''Gender''}}</code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|npc=''NPC''|games_id=''Games''|medal=''Medal''|gender=''Gender''<nowiki>}}</nowiki></code>
  
 
; Display parameters
 
; Display parameters
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|npc=''NPC''|linktext=''LinkText''|quiet=1}}</code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|npc=''NPC''|linktext=''LinkText''|quiet=1<nowiki>}}</nowiki></code>
  
 
== Parameters ==
 
== Parameters ==
Line 21: Line 21:
 
: [[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"
!  colspan="2" style="background-color:#ccf;" | Allowable values for <tt>npc</tt>
+
!  colspan="2" style="background-color:#ccf;" | Allowable values for {{mono|npc}}
 
|-
 
|-
 
! Value !! Description
 
! Value !! Description
Line 409: Line 409:
 
: 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"
!  colspan="2" style="background-color:#ccf;" | Allowable values for <tt>games_id</tt>
+
!  colspan="2" style="background-color:#ccf;" | Allowable values for {{mono|games_id}}
 
|-
 
|-
 
! Value !! Description
 
! Value !! Description
Line 477: Line 477:
 
: 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"
!  colspan="2" style="background-color:#ccf;" | Allowable values for <tt>medal</tt>
+
!  colspan="2" style="background-color:#ccf;" | Allowable values for {{mono|medal}}
 
|-
 
|-
 
! Value !! Description
 
! Value !! Description
Line 495: Line 495:
 
: 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"
!  colspan="2" style="background-color:#ccf;" | Allowable values for <tt>gender</tt>
+
!  colspan="2" style="background-color:#ccf;" | Allowable values for {{mono|gender}}
 
|-
 
|-
 
! Value !! Description
 
! Value !! Description
Line 557: Line 557:
 
* {{tl|Team USA}} for the [[United States Olympic & Paralympic Committee]]
 
* {{tl|Team USA}} for the [[United States Olympic & Paralympic Committee]]
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!-- 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]]

Latest revision as of 22:25, 25 April 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