Difference between revisions of "Template:Country at games navbox/doc"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
(update doc)
imported>Primefac
(update)
Line 3: Line 3:
 
This template is designed for use in navigating between the years a country has participated in a sport.
 
This template is designed for use in navigating between the years a country has participated in a sport.
 
== Usage ==
 
== Usage ==
This template requires two parameters, with an optional third:
+
This template requires two unnamed parameters, with other optional parameters:
#The full name of the country (e.g. Canada)
+
;1:The full name of the country (e.g. Canada)
#The name of the games (e.g. Summer Olympics)
+
;2:The name of the games (e.g. Summer Olympics)
#The first year the country participated in the games (e.g. 1934)
+
;3:The first year the country participated in the games (e.g. 1934). If the games are the Commonwealth Games, this parameter is required.
 +
;4:(optional) The last year the country participated in the games (e.g. 2002 was the final year Zimbabwe participated)
 +
;state:(optional) Set this to <code>collapsed</code> or <code>uncollapsed</code> to set the visibility. Default is collapsed.
 +
;below:(optional) Use this parameter to put a message at the bottom of the navbox (see Malaya example below).
 +
 
 +
 
  
If the games are the Commonwealth Games, {{param|3}} is required.
 
  
 
==Examples==
 
==Examples==
Line 21: Line 25:
 
{{country at games navbox|Canada|Olympics|state=uncollapsed}}
 
{{country at games navbox|Canada|Olympics|state=uncollapsed}}
  
*{{tlc|country at games navbox|Malaya|Commonwealth Games|1950|1962|below=Malaya has competed as part of Malaysia from [[Malaysia at the 1966 British Empire and Commonwealth Games|1966]]}}
+
*{{tlc|country at games navbox|Malaya|Commonwealth Games|1950|1962|below{{=}}Malaya has competed as part of Malaysia from [[Malaysia at the 1966 British Empire and Commonwealth Games|1966]]}}
 
{{country at games navbox|Malaya|Commonwealth Games|1950|1962|state=uncollapsed|below=Malaya has competed as part of Malaysia from [[Malaysia at the 1966 British Empire and Commonwealth Games|1966]]}}
 
{{country at games navbox|Malaya|Commonwealth Games|1950|1962|state=uncollapsed|below=Malaya has competed as part of Malaysia from [[Malaysia at the 1966 British Empire and Commonwealth Games|1966]]}}
  

Revision as of 19:33, 21 December 2016

This template is designed for use in navigating between the years a country has participated in a sport.

Usage

This template requires two unnamed parameters, with other optional parameters:

1
The full name of the country (e.g. Canada)
2
The name of the games (e.g. Summer Olympics)
3
The first year the country participated in the games (e.g. 1934). If the games are the Commonwealth Games, this parameter is required.
4
(optional) The last year the country participated in the games (e.g. 2002 was the final year Zimbabwe participated)
state
(optional) Set this to collapsed or uncollapsed to set the visibility. Default is collapsed.
below
(optional) Use this parameter to put a message at the bottom of the navbox (see Malaya example below).



Examples

Note that if the generic "Olympics" is used, both Summer and Winter games will be displayed.

  • {{country at games navbox|Canada|Pan American Games}}
  • {{country at games navbox|Canada|Summer Olympics}}
  • {{country at games navbox|Canada|Olympics}}
  • {{country at games navbox|Malaya|Commonwealth Games|1950|1962|below=Malaya has competed as part of Malaysia from 1966}}