Difference between revisions of "Template:Cr/doc"
Jump to navigation
Jump to search
imported>GKFX (Convert to Format TemplateData) |
imported>Zyxw (prevent sandbox for being included in categories) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
| − | < | + | <kbd><nowiki>{{cr|nation|variant|size=optional|name=optional}}</nowiki></kbd> |
==Description== | ==Description== | ||
{{Format TemplateData|JSON= | {{Format TemplateData|JSON= | ||
| Line 31: | Line 31: | ||
==Examples== | ==Examples== | ||
| − | *< | + | *<kbd><nowiki>{{cr|AUS}}</nowiki></kbd> → {{cr|AUS}} |
| − | *< | + | *<kbd><nowiki>{{cr|India|name=IND}}</nowiki></kbd> → {{cr|India|name=IND}} |
| − | *< | + | *<kbd><nowiki>{{cr|Pakistan|name=PAK}}</nowiki></kbd> → {{cr|Pakistan|name=PAK}} |
| − | *< | + | *<kbd><nowiki>{{cr|Sri Lanka}}</nowiki></kbd> → {{cr|Sri Lanka}} |
| − | *< | + | *<kbd><nowiki>{{cr|South Africa|1928}}</nowiki></kbd> → {{cr|South Africa|1928}} |
==See also== | ==See also== | ||
| Line 44: | Line 44: | ||
*[[:Category:National cricket teams]] | *[[:Category:National cricket teams]] | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
| − | [[Category:Cricket templates | + | [[Category:Cricket templates]] |
| − | [[Category:Flag template system | + | [[Category:Flag template system]] |
| − | </includeonly> | + | |
| + | }}</includeonly> | ||
Latest revision as of 00:04, 17 December 2018
| This is a documentation subpage for Template:Cr. It contains usage information, categories and other content that is not part of the original template page. |
{{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 |
Examples
- {{cr|AUS}} →
Australia - {{cr|India|name=IND}} →
IND - {{cr|Pakistan|name=PAK}} →
PAK - {{cr|Sri Lanka}} →
Sri Lanka - {{cr|South Africa|1928}} →
South Africa
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