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

From blackwiki
Jump to navigation Jump to search
imported>Jnestorius
(→‎Examples: {{strikethrough|All medalists}}''Base page'')
imported>Vanisaac
m (→‎Examples: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 121: Line 121:
 
*:{{strikethrough|All medalists}}''Base page'' 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>{{Sandbox other||
 
[[Category:Olympics external link templates]]
 
[[Category:Olympics external link templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 22:01, 25 April 2020

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