Difference between revisions of "Template:IPC event"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(add missing sport names, update text for games, format output similar to other IPC templates, add alternate parameter names, fix implementation of "quiet" to work as documented (same as other IPC link templates), move documentation and categories to /doc)
imported>Zyxw
(these links have been dead for a few years, add archive URL for historical records)
 
Line 1: Line 1:
[http://www.paralympic.org/ipc_results/reports.php?type=event&criteria=0&games={{{game_id|{{{games}}}}}}&sport={{{sport_id|{{{sport}}}}}} {{{linktext|{{#switch:{{{sport_id|{{{sport}}}}}}<noinclude>|#default={{{sport}}}</noinclude>
+
[{{#if: {{{archive|}}} | https://web.archive.org/web/{{{archive}}}/  | https://timetravel.mementoweb.org/memento/2016/ }}http://www.paralympic.org/ipc_results/reports.php?type=event&criteria=0&games={{{game_id|{{{games}}}}}}&sport={{{sport_id|{{{sport}}}}}} {{{linktext|{{#switch:{{{sport_id|{{{sport}}}}}}<noinclude>|#default={{{sport}}}</noinclude>
 
|all=All sports
 
|all=All sports
 
|1=Archery
 
|1=Archery
Line 60: Line 60:
 
|2010PWG=2010 Winter Paralympics (Vancouver)
 
|2010PWG=2010 Winter Paralympics (Vancouver)
 
|2014PWG=2014 Winter Paralympics (Sochi)
 
|2014PWG=2014 Winter Paralympics (Sochi)
}}}}}] {{#ifeq:{{{quiet}}}|1||from the [[International Paralympic Committee]]}}<noinclude>
+
}}}}}] {{#ifeq:{{{quiet}}}|1||from the [[International Paralympic Committee]]}} (archived)<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 09:55, 4 January 2020

{{{sport}}} at the {{{games}}} from the International Paralympic Committee (archived)

Template documentation[view] [edit] [history] [purge]

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