Difference between revisions of "Template:Cr-rt/doc"
Jump to navigation
Jump to search
imported>Waterhogboy (Added link to U-19 template) |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
==Description== | ==Description== | ||
| − | < | + | <kbd><nowiki>{{cr-rt|nation|variant|size=optional|name=optional}}</nowiki></kbd> |
Produces a flag icon attached to a wikilinked national cricket team article. Similar to [[Template:Cr]], but puts the flag icon on the right side of the team name instead of to the left. This is useful when formatting match results. | Produces a flag icon attached to a wikilinked national cricket team article. Similar to [[Template:Cr]], but puts the flag icon on the right side of the team name instead of to the left. This is useful when formatting match results. | ||
| Line 12: | Line 12: | ||
==Examples== | ==Examples== | ||
| − | *< | + | *<kbd><nowiki>{{cr-rt|AUS}}</nowiki></kbd> → {{cr-rt|AUS}} |
| − | *< | + | *<kbd><nowiki>{{cr-rt|Sri Lanka}}</nowiki></kbd> → {{cr-rt|Sri Lanka}} |
| − | *< | + | *<kbd><nowiki>{{cr-rt|South Africa|1928}}</nowiki></kbd> → {{cr-rt|South Africa|1928}} |
| − | *< | + | *<kbd><nowiki>{{cr-rt|India|name=IND}}</nowiki></kbd> → {{cr-rt|India|name=IND}} |
==See also== | ==See also== | ||
| Line 23: | Line 23: | ||
*[[:Category:National cricket teams]] | *[[:Category:National cricket teams]] | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
[[Category:Cricket templates|{{PAGENAME}}]] | [[Category:Cricket templates|{{PAGENAME}}]] | ||
[[Category:Flag template system|{{PAGENAME}}]] | [[Category:Flag template system|{{PAGENAME}}]] | ||
| − | </includeonly> | + | |
| + | [[hi:Template:Cr-rt]] | ||
| + | }}</includeonly> | ||
Latest revision as of 22:10, 24 April 2020
| 40px | This is a documentation subpage for Template:Cr-rt. It contains usage information, categories and other content that is not part of the original template page. |
Description
{{cr-rt|nation|variant|size=optional|name=optional}}
Produces a flag icon attached to a wikilinked national cricket team article. Similar to Template:Cr, but puts the flag icon on the right side of the team name instead of to the left. This is useful when formatting match results.
- Parameters
- nation — Use either the name of the nation or a three-letter country code, as specified by ISO, IOC or FIFA (most should work)
- variant (optional) — Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate template in Category:Country data templates.
- size (optional) — Can be used to change the flag icon size (use sparingly!)
- name (optional) — Can be used to change the wikilink display text
Examples
- {{cr-rt|AUS}} → Australia 23x15px
- {{cr-rt|Sri Lanka}} → Sri Lanka 23x15px
- {{cr-rt|South Africa|1928}} → South Africa 23x15px
- {{cr-rt|India|name=IND}} → IND 23x15px
See also
- Template:cr — for rendering the flag on the left
- Template:crw — for women's teams
- Template:cr19 — for Under-19 teams
- Category:National cricket teams