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

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(document archive parameter, update examples, update see also, add template category)
imported>Pauli133
m (fixing lint errors)
Line 5: Line 5:
  
 
== Usage ==
 
== Usage ==
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}|sport=''SPORT''|games=''GAMES''}}</code>
+
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}|sport=''SPORT''|games=''GAMES''<nowiki>}}</nowiki></code>
  
 
== Parameters ==
 
== Parameters ==
Line 14: Line 14:
 
: Code for [[Paralympic sports|Paralympic sport]], assigned to <code>sport=</code> in URL
 
: Code for [[Paralympic sports|Paralympic sport]], assigned to <code>sport=</code> in URL
 
:{| class="wikitable collapsible collapsed"
 
:{| class="wikitable collapsible collapsed"
!  colspan="2" style="background-color:#ccf;" | Allowable values for <tt>sport</tt>
+
!  colspan="2" style="background-color:#ccf;" | Allowable values for {{mono|sport}}
 
|-
 
|-
 
! Value !! Description
 
! Value !! Description
Line 93: Line 93:
 
: Code for [[List of Paralympic Games host cities|Paralympic competition]], assigned to <code>games=</code> in URL
 
: Code for [[List of Paralympic Games host cities|Paralympic competition]], assigned to <code>games=</code> in URL
 
:{| class="wikitable collapsible collapsed"
 
:{| class="wikitable collapsible collapsed"
!  colspan="2" style="background-color:#ccf;" | Allowable values for <tt>games</tt>
+
!  colspan="2" style="background-color:#ccf;" | Allowable values for {{mono|games}}
 
|-
 
|-
 
! Value !! Description
 
! Value !! Description
Line 178: Line 178:
  
 
; Usage
 
; Usage
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |games=1992PG |sport=23 }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |games=1992PG |sport=23 <nowiki>}}</nowiki></code>
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |games=1992PG |sport=23 |archive=20160304032740 }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |games=1992PG |sport=23 |archive=20160304032740 <nowiki>}}</nowiki></code>
  
 
; Output
 
; Output
Line 190: Line 190:
  
 
; Usage
 
; Usage
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |game_id=2012PG |sport_id=13 |linktext=2012 Judo results }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |game_id=2012PG |sport_id=13 |linktext=2012 Judo results <nowiki>}}</nowiki></code>
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |game_id=2012PG |sport_id=13 |linktext=2012 Judo results |archive=20160303223517 }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |game_id=2012PG |sport_id=13 |linktext=2012 Judo results |archive=20160303223517 <nowiki>}}</nowiki></code>
  
 
; Output
 
; Output
Line 202: Line 202:
  
 
; Usage
 
; Usage
: <code><nowiki>* <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |game_id=1998PWG |sport_id=29 |quiet=1 }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |game_id=1998PWG |sport_id=29 |quiet=1 <nowiki>}}</nowiki></code>
: <code><nowiki>* <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |game_id=1998PWG |sport_id=29 |quiet=1 |archive=20160304032812 }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |game_id=1998PWG |sport_id=29 |quiet=1 |archive=20160304032812 <nowiki>}}</nowiki></code>
  
 
; Output
 
; Output

Revision as of 12:45, 8 January 2020

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

{{IPC event|sport=SPORT|games=GAMES}}

Parameters

Search parameters

|sport= or |sport_id=
Code for Paralympic sport, assigned to sport= in URL
|games= or |game_id=
Code for Paralympic competition, assigned to games= in URL

Display parameters

|linktext=
Link text to be displayed instead of default (currently: Sport at the yyyy Paralympic Games)
|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 20160304032740 in https://web.archive.org/web/20160304032740/http://www.paralympic.org/ipc_results/reports.php?type=event&criteria=0&games=1992PG&sport=23.

Examples

Volleyball at the 1992 Summer Paralympics

URL
http://www.paralympic.org/ipc_results/reports.php?type=event&criteria=0&games=1992PG&sport=23 (archive)
Usage
* {{IPC event |games=1992PG |sport=23 }}
* {{IPC event |games=1992PG |sport=23 |archive=20160304032740 }}
Output

Different link text

URL
http://www.paralympic.org/ipc_results/reports.php?type=event&criteria=0&games=2012PG&sport=13 (archive)
Usage
* {{IPC event |game_id=2012PG |sport_id=13 |linktext=2012 Judo results }}
* {{IPC event |game_id=2012PG |sport_id=13 |linktext=2012 Judo results |archive=20160303223517 }}
Output

No text after link

URL
http://www.paralympic.org/ipc_results/reports.php?type=event&criteria=0&games=1998PWG&sport=29 (archive)
Usage
* {{IPC event |game_id=1998PWG |sport_id=29 |quiet=1 }}
* {{IPC event |game_id=1998PWG |sport_id=29 |quiet=1 |archive=20160304032812 }}
Output

See also

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