Template:OlympicNationRow
Appearance
Example Country (EXA) | 30 |
---|
Usage
[edit]This template is designed to be used on Olympic-related tables, possessing an {{OlympicYearHeader}}-derived header, which display the history of participating nations on a specific sport at the Summer or Winter 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:
- Cells corresponding to a sport's Olympic non-competing years appear shaded in gray;
- Cells corresponding to years where a country did not took part on that sport display a dash;
- Cells corresponding to years where a country with X competitors on that sport display X
Wiki markup
[edit]{{OlympicNationRow |NOC= |sport= |season= |1896= |1900= |1904= |1908= |1912= ... |1992= |1994= |1996= |1998= |2000= |2002= |2004= |2006= |total= }}
Parameters
[edit]- NOC
- required - three letter code of country, as per List of IOC country codes
- sport
- required - capitalized Olympic sport for which the table is built (e.g. Archery)
- season
- required - string which should be either "Summer" or "Winter", according to the Games where <sport> is included on the official programme.
- <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>; if not specified, default is 25
Demonstration
[edit]{| {{OlympicYearHeader|header=Nation|sport=Diving}} |- {{OlympicNationRow|NOC=ANZ|season=Summer|sport=Diving|1908=1 |1912=4 |total=2}} |}
Nation | 96 | 00 | 04 | 08 | 12 | 20 | 24 | 28 | 32 | 36 | 48 | 52 | 56 | 60 | 64 | 68 | 72 | 76 | 80 | 84 | 88 | 92 | 96 | 00 | 04 | 08 | 12 | 16 | 20 | 24 | Years |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Australasia (ANZ) | 1 | 4 | 2 |