Jump to content

Template:YouthOlympicNationRow/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

This template is designed to be used on Olympic-related tables, possessing an {{YouthOlympicYearHeader}}-derived header, which display the history of participating nations on a specific sport at the Summer or Winter Youth Olympics. It creates a unique table row where a NOC, the years it took part on that sport, and the number of competitors sent that year, can be input as parameter values, saving time and preventing complicated table formating problems.

The template code is developed so that:

  1. Cells corresponding to a sport's Olympic non-competing years appear shaded in gray;
  2. Cells corresponding to years where a country did not take part on that sport display a dash;
  3. Cells corresponding to years where a country with X competitors on that sport display X

Wiki markup

[edit]
{{YouthOlympicNationRow
 |NOC= 
 |season=
 |sport=
 |2010=
 |2014=
 ...
 |total=
}}

Parameters

[edit]
NOC
required - three letter code of country, as per List of IOC country codes
season
required - string which should be either "Summer" or "Winter", according to the Games where <sport> is included on the official programme.
sport
required - capitalized Olympic sport for which the table is built (e.g. Archery)
<year>
optional - number of national competitors on that <sport> at the <year> <season> Olympics; if not specified, default is "-"
total
total number of national presences at the <sport>

Example

[edit]
{{YouthOlympicNationRow|NOC=ANZ|season=Summer|sport=Golf|2014=5|total=1}}
 Australasia (ANZ)   5 1
{{YouthOlympicNationRow|NOC=HUN|season=Winter|sport=Biathlon|2012=2|2016=1|total=2}}
 Hungary (HUN) 2 1 2