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

From blackwiki
Jump to navigation Jump to search
imported>Djsasso
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 11: Line 11:
 
=== Search parameters===
 
=== Search parameters===
  
; sport {{nobold|or}} sport_id
+
; {{para|sport}} {{nobold|or}} {{para|sport_id}}
 
: 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"
Line 90: Line 90:
 
-->
 
-->
  
; games {{nobold|or}} game_id
+
; {{para|games}} {{nobold|or}} {{para|game_id}}
 
: 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"
Line 160: Line 160:
 
=== Display parameters ===
 
=== Display parameters ===
  
; linktext
+
; {{para|linktext}}
 
: [[Link text]] to be displayed instead of default (currently: ''Sport'' at the ''yyyy Paralympic Games'')
 
: [[Link text]] to be displayed instead of default (currently: ''Sport'' at the ''yyyy Paralympic Games'')
  
; 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 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 ==
 
== Examples ==
  
; Volleyball at the 1992 Summer Paralympics
+
=== Volleyball at the 1992 Summer Paralympics ===
: '''URL:''' http://www.paralympic.org/ipc_results/reports.php?type=event&criteria=0&games=1992PG&sport=23
+
; URL
: '''Usage:''' <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |games=1992PG |sport=23 }}</code>
+
: <kbd>http://<nowiki/>www.paralympic.org/ipc_results/reports.php?type=event&criteria=0&games={{Hilite|1992PG}}&sport={{Hilite|23}}</kbd> ([https://web.archive.org/web/20160304032740/http://www.paralympic.org/ipc_results/reports.php?type=event&criteria=0&games=1992PG&sport=23 archive])
: '''Output:''' {{ {{BASEPAGENAME}} |games=1992PG |sport=23 }}
 
  
; Different link text
+
; Usage
: '''URL:''' http://www.paralympic.org/ipc_results/reports.php?type=event&criteria=0&games=2012PG&sport=13
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |games=1992PG |sport=23 }}</code>
: '''Usage:''' <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |game_id=2012PG |sport_id=13 |linktext=2012 Judo results }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |games=1992PG |sport=23 |archive=20160304032740 }}</code>
: '''Output:''' {{ {{BASEPAGENAME}} |game_id=2012PG |sport_id=13 |linktext=2012 Judo results }}
 
  
; No text after link
+
; Output
: '''URL:''' http://www.paralympic.org/ipc_results/reports.php?type=event&criteria=0&games=1998PWG&sport=29
+
:* {{ {{BASEPAGENAME}} |games=1992PG |sport=23 }}
: '''Usage:''' <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |game_id=1998PWG |sport_id=29 |quiet=1 }}</code>
+
:* {{ {{BASEPAGENAME}} |games=1992PG |sport=23 |archive=20160304032740 }}
: '''Output:''' {{ {{BASEPAGENAME}} |game_id=1998PWG |sport_id=29 |quiet=1 }}
+
 
 +
=== Different link text ===
 +
; URL
 +
: <kbd>http://<nowiki/>www.paralympic.org/ipc_results/reports.php?type=event&criteria=0&games={{Hilite|2012PG}}&sport={{Hilite|13}}</kbd> ([https://web.archive.org/web/20160303223517/http://www.paralympic.org/ipc_results/reports.php?type=event&criteria=0&games=2012PG&sport=13 archive])
 +
 
 +
; 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 |archive=20160303223517 }}</code>
 +
 
 +
; Output
 +
:* {{ {{BASEPAGENAME}} |game_id=2012PG |sport_id=13 |linktext=2012 Judo results }}
 +
:* {{ {{BASEPAGENAME}} |game_id=2012PG |sport_id=13 |linktext=2012 Judo results |archive=20160303223517 }}
 +
 
 +
=== No text after link ===
 +
; URL
 +
: <kbd>http://<nowiki/>www.paralympic.org/ipc_results/reports.php?type=event&criteria=0&games={{Hilite|1998PWG}}&sport={{Hilite|29}}</kbd> ([https://web.archive.org/web/20160304032812/http://www.paralympic.org/ipc_results/reports.php?type=event&criteria=0&games=1998PWG&sport=29 archive])
 +
 
 +
; Usage
 +
: <code><nowiki>* <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |game_id=1998PWG |sport_id=29 |quiet=1 }}</code>
 +
: <code><nowiki>* <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |game_id=1998PWG |sport_id=29 |quiet=1 |archive=20160304032812 }}</code>
 +
 
 +
; Output
 +
:* {{ {{BASEPAGENAME}} |game_id=1998PWG |sport_id=29 |quiet=1 }}
 +
:* {{ {{BASEPAGENAME}} |game_id=1998PWG |sport_id=29 |quiet=1 |archive=20160304032812 }}
  
 
== 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 npc profile}}, link to results for Paralympic athletes by country
 
* {{tl|IPC npc profile}}, link to results for Paralympic athletes by country
 
* {{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:22, 4 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
* <code><nowiki>{{IPC event |game_id=1998PWG |sport_id=29 |quiet=1 }}
* <code><nowiki>{{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