Difference between revisions of "Template:IOC medals/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jnestorius
(** If <code>games</code> is specified but not <code>sport</code>, to the games base page (same as {{tl|IOC games}}))
imported>Jnestorius
(→‎Examples: {{strikethrough|All medalists}}''Base page'')
Line 109: Line 109:
 
*<code><nowiki>{{IOC medals|games=2008 Summer|NOC=BRA}}</nowiki></code>
 
*<code><nowiki>{{IOC medals|games=2008 Summer|NOC=BRA}}</nowiki></code>
 
*:{{IOC medals|games=2008 Summer|NOC=BRA}}
 
*:{{IOC medals|games=2008 Summer|NOC=BRA}}
*:All medalists for Brazil {{strikethrough|at the 2008 Games.  Suitable as a reference on the [[Brazil at the 2008 Summer Olympics]] article.}}
+
*:{{strikethrough|All medalists}}''Base page'' for Brazil {{strikethrough|at the 2008 Games.  Suitable as a reference on the [[Brazil at the 2008 Summer Olympics]] article.}}
 
*:'''{{color|red|As noted above, this no longer work as described.}}''' The games is ignored.
 
*:'''{{color|red|As noted above, this no longer work as described.}}''' The games is ignored.
 
*<code><nowiki>{{IOC medals|games=2006 Winter|sport=Alpine skiing}}</nowiki></code>
 
*<code><nowiki>{{IOC medals|games=2006 Winter|sport=Alpine skiing}}</nowiki></code>
 
*:{{IOC medals|games=2006 Winter|sport=Alpine skiing}}
 
*:{{IOC medals|games=2006 Winter|sport=Alpine skiing}}
*:All medalists in alpine skiing at the 2006 Games.  {{strikethrough|Suitable as a reference on the [[Alpine skiing at the 2006 Winter Olympics]] article.}}
+
*:{{strikethrough|All medalists}}''Base page'' in alpine skiing at the 2006 Games.  {{strikethrough|Suitable as a reference on the [[Alpine skiing at the 2006 Winter Olympics]] article.}}
 
*<code><nowiki>{{IOC medals|NOC=KEN}}</nowiki></code>
 
*<code><nowiki>{{IOC medals|NOC=KEN}}</nowiki></code>
 
*:{{IOC medals|NOC=KEN}}
 
*:{{IOC medals|NOC=KEN}}
*:All medalists from Kenya, from all Games.  {{strikethrough|Suitable as a reference on the [[Kenya at the Olympics]] article.}}
+
*:{{strikethrough|All medalists}}''Base page'' from Kenya, from all Games.  {{strikethrough|Suitable as a reference on the [[Kenya at the Olympics]] article.}}
 
*<code><nowiki>{{IOC medals|sport=Triathlon}}</nowiki></code>
 
*<code><nowiki>{{IOC medals|sport=Triathlon}}</nowiki></code>
 
*:{{IOC medals|sport=Triathlon}}
 
*:{{IOC medals|sport=Triathlon}}
*:All medalists in triathlon, from all Games.  {{strikethrough|Suitable as a reference on the [[Triathlon at the Olympics]] article.}}
+
*:{{strikethrough|All medalists}}''Base page'' in triathlon, from all Games.  {{strikethrough|Suitable as a reference on the [[Triathlon at the Olympics]] article.}}
  
 
<includeonly>
 
<includeonly>
 
[[Category:Olympics external link templates]]
 
[[Category:Olympics external link templates]]
 
</includeonly>
 
</includeonly>

Revision as of 08:00, 26 April 2018

Usage

{{IOC medals|games=|NOC=|sport=|accessdate=}}

The former functionality was

Generates a reference (using {{cite web}}) to the International Olympic Committee's medal database on the Olympic.org website. Based on the parameters chosen, renders a link to the search results page with the selected subset of medalists.

All parameters are individually optional, although at least one is required, and multiple specified parameters will yield a more precise database search.

The current lesser functionality simply links to a base page from which results may be accessible:

  • If NOC is specified, to the NOC base page
  • Otherwise
    • If sport is specified but not games, to the sport base page
    • If games is specified but not sport, to the games base page (same as {{IOC games}})
    • If sport and games are both specified , to the sport page for that games

Parameters

  • games – specifies the Games of interest, such as "games=2008 Summer" or "games=2006 Winter", or "games=2008 Summer Olympics" or "games=2006 Winter Olympics" (provided so that IOC medals/doc can be used in main Olympic pages.
  • NOCIOC country code for the National Olympic Committee of interest
  • sport – name of the sport of interest. The following strings are recognized:

Examples

  • {{IOC medals|games=2008 Summer}}
    "Results and Medalists—2008 Summer". Olympic.org. International Olympic Committee.
    Base page for the 2008 Games.
  • {{IOC medals|games=2008 Summer|NOC=BRA}}
    "Results and Medalists—Brazil". Olympic.org. International Olympic Committee.
    Template:StrikethroughBase page for Brazil Template:Strikethrough
    As noted above, this no longer work as described. The games is ignored.
  • {{IOC medals|games=2006 Winter|sport=Alpine skiing}}
    "Results and Medalists—2006 Winter—Alpine skiing". Olympic.org. International Olympic Committee.
    Template:StrikethroughBase page in alpine skiing at the 2006 Games. Template:Strikethrough
  • {{IOC medals|NOC=KEN}}
    "Results and Medalists—Kenya". Olympic.org. International Olympic Committee.
    Template:StrikethroughBase page from Kenya, from all Games. Template:Strikethrough
  • {{IOC medals|sport=Triathlon}}
    "Results and Medalists—Triathlon". Olympic.org. International Olympic Committee.
    Template:StrikethroughBase page in triathlon, from all Games. Template:Strikethrough