Difference between revisions of "Template:Ih-rt"
Jump to navigation
Jump to search
imported>Primefac m (Protected "Template:Ih-rt": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefin...) |
imported>Djsasso |
||
| Line 1: | Line 1: | ||
| − | {{country data {{{1}}} | + | {{#switch:{{{1}}}|Unified Team|EUN=[[Unified Team national ice hockey team|Unified Team]] [[File:Olympic_flag.svg|22x20px]]|#default={{country data {{{1}}} |
| flagright/core | | flagright/core | ||
| variant = {{{variant|{{{2|}}}}}} | | variant = {{{variant|{{{2|}}}}}} | ||
Revision as of 01:19, 26 February 2018
{{#switch:{{{1}}}|Unified Team|EUN=Unified Team 22x20px|#default={{country data {{{1}}} | flagright/core | variant = | size = | name = | altlink = men's national ice hockey team | altvar = ice hockey | mw = men's
}}
Description
{{ih-rt|nation|variant|size=optional|name=optional}}
Produces a flag icon attached to a wikilinked national ice hockey team article. Similar to Template:Ih, 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 the three-letter country code as used by the IIHF
- 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
{{ih-rt|Sweden}}→ {{#switch:Sweden|Unified Team|EUN=Unified Team 22x20px|#default=Sweden 23x15px{{ih-rt|FIN}}→ {{#switch:FIN|Unified Team|EUN=Unified Team 22x20px|#default=Finland 23x15px{{ih-rt|Canada|1921}}→ {{#switch:Canada|Unified Team|EUN=Unified Team 22x20px|#default=Canada 23x15px{{ih-rt|URS|name=USSR}}→ {{#switch:URS|Unified Team|EUN=Unified Team 22x20px|#default=Soviet Union 23x15px{{ih-rt|Czechoslovakia|name=TCH}}→ {{#switch:Czechoslovakia|Unified Team|EUN=Unified Team 22x20px|#default=TCH 23x15px
See also
- Template:ih — for rendering the flag on the left
- Category:National ice hockey teams
| The above documentation is transcluded from Template:Ih-rt/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |