Difference between revisions of "Template:Cr"
Jump to navigation
Jump to search
imported>Wild8oar |
imported>Wild8oar (didn't work) |
||
| Line 1: | Line 1: | ||
| − | <includeonly> | + | <includeonly>{{country data {{{1}}} |
| country flaglink | | country flaglink | ||
| variant = {{{variant|{{{2|}}}}}} | | variant = {{{variant|{{{2|}}}}}} | ||
| Line 6: | Line 6: | ||
| altlink = national cricket team | | altlink = national cricket team | ||
| altvar = cricket | | altvar = cricket | ||
| − | + | }}</includeonly><noinclude>{{documentation}}</noinclude> | |
Revision as of 08:51, 3 April 2009
{{cr|nation|variant|size=optional|name=optional}}
Description
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Cr
Produces a flag icon attached to a wikilinked national cricket team article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Nation | 1 | Use either the name of the nation or a three-letter country code, as specified by ISO 3166-1, IOC or FIFA (most should work), | String | required |
| Flag variant | 2variant | Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate template in Category:Country data templates. | String | optional |
| Image size | size | Can be used to change the flag icon size (use sparingly!) | Unknown | optional |
| Link text | name | Can be used to change the wikilink display text. | Line | optional |
Test of raw TemplateData output:
Produces a flag icon attached to a wikilinked national cricket team article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Nation | 1 | Use either the name of the nation or a three-letter country code, as specified by ISO 3166-1, IOC or FIFA (most should work), | String | required |
| Flag variant | 2 variant | Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate template in :Category:Country data templates. | String | optional |
| Image size | size | Can be used to change the flag icon size (use sparingly!) | Unknown | optional |
| Link text | name | Can be used to change the wikilink display text. | Line | optional |
Examples
- {{cr|AUS}} → Template:Country flaglink
- {{cr|India|name=IND}} → Template:Country flaglink
- {{cr|Pakistan|name=PAK}} → Template:Country flaglink
- {{cr|Sri Lanka}} → Template:Country flaglink
- {{cr|South Africa|1928}} → Template:Country flaglink
See also
- Template:cr-rt — for rendering the flag on the right
- Template:crw — for women's teams
- Template:cr19 — for Under-19 teams
- Template:cricon — for rendering the flag icon only
- Category:National cricket teams
| The above documentation is transcluded from Template:Cr/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |