Fyrimynd:Infobox country Olympics/doc

Frá Wikipedia, hin frælsa alfrøðin
Jump to navigation Jump to search

Usage[rætta wikitekst]

This infobox is intended to be used indirectly on all the "Country at the year Olympics" pages. It is a meta-template that is used for the common layout of per-country infoboxes.

Parameters[rætta wikitekst]

There are two sets of parameters for this infobox. Some will be common for all instances of a single country, so these are specified once in templates such as {{Infobox Olympics Greece}}. Others are specific for each Games, and would therefore be specified as parameters to the per-country template on individual pages such as Grikkaland á Summar-OL 1896.

NOC
three letter country code, as per List of IOC country codes
NOCname
name (or wikilink) to the article of this country's National Olympic Committee
website
external link to the NOC's website
oldcode
country code actually used at the specific Games, if different from the current one (e.g. HOL was used instead of NED for the Netherlands for many years)
games
year, plus "Summar" or "Vetrar", as in "Summar-OL 2004" or "Vetrar-OL 2006"
flagcaption
optional, replaces the default caption for the nation's flag, which is a wikilink to the appropriate "Flag of Country" article. This automatic link might not always work (for example [[Flag of the United Kingdom]] is most appropriate for GBR, instead of the automatically created caption of [[Flag of Great Britain]]
competitors
optional, if specified should be the number of competitors for the nation at the Games identified with the games argument
sports
optional, indicates the number of sports in which this nation had athletes compete at the specified Games
flagbearer
optional, indicates the name of the person(s) who served as flagbearer at the opening and/or closing ceremonies
officials
optional, indicates the number of officials the nation sent to the specified Games
gold
number of gold medals won, defaults to 0 if not specified
silver
number of silver medals won, defaults to 0 if not specified
bronze
number of bronze medals won, defaults to 0 if not specified
rank
optional, indicates the rank of the nation in the final medal count
summerappearances
optional, should be a list of links to other "Country at the year Summer Olympics" articles
winterappearances
optional, should be a list of links to other "Country at the year Winter Olympics" articles
otherappearances
optional, should be a list of links to other "Country at the year Olympics" articles, used to handle situations where athletes from a NOC had competed in another form (e.g. CZE used to be part of TCH)

Microformat[rætta wikitekst]

The HTML mark-up produced by this template includes an hCard microformat that makes an organization's details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.

Subtemplates
  • Use {{start date}} for the date on which an organisation was "established", "founded", "opened" or otherwise started, unless that date is before 1583 CE.
  • Use {{URL}} for an organisation's URL.
  • Use {{coord}} for coordinates associated with the organisation (e.g. the location of its headquarters). A Geo microformat will then make these coordinates parsable, e.g. for use in online mapping, downloading to a GPS unit, etc.

Please do not remove instances of these subtemplates.

Classes used

The HTML classes this microformat uses include:

  • adr
  • agent
  • category
  • country-name
  • extended-address
  • fn
  • geo
  • label
  • latitude
  • locality
  • longitude
  • nickname
  • note
  • org
  • region
  • street-address
  • url
  • vcard
Please do not rename or remove these classes
nor collapse nested elements which use them.