Difference between revisions of "Template:Ih"

From blackwiki
Jump to navigation Jump to search
imported>Djsasso
m (Reverted edits by Djsasso (talk) to last version by Andrwsc)
imported>Djsasso
Line 1: Line 1:
{{country data {{{1}}}
+
{{#ifor:
| country flaglink
+
|test1 = {{{1}}}
| variant = {{{variant|{{{2|}}}}}}
+
|var1 = Unified Team
| size = {{{size|}}}
+
|then = {{flagIOC|{{{1}}}}
| name = {{{name|}}}
+
|else = {{country data {{{1}}}| country flaglink | variant = {{{variant|{{{2|}}}}}} | size = {{{size|}}} | name = {{{name|}}} | altlink = men's national ice hockey team | altvar = ice hockey | mw = men's}}
| altlink = men's national ice hockey team
+
|}}
| altvar = ice hockey
+
<noinclude>{{documentation}}</noinclude>
| mw = men's
 
}}<noinclude>{{documentation}}</noinclude>
 

Revision as of 16:47, 1 October 2009

{{#ifor: |test1 = {{{1}}} |var1 = Unified Team |then = Lua error in Module:Country_alias at line 148: Invalid country alias: {{{1}}}}.

50px Template documentation[view] [edit] [history] [purge]

Description

{{ih|nation|variant|size=optional|name=optional}}

Produces a flag icon attached to a wikilinked national ice hockey team article.

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|Sweden}} → {{#ifor:

|test1 = Sweden |var1 = Unified Team |then = Lua error in Module:Country_alias at line 148: Invalid country alias: Sweden}.

  • {{ih|FIN}} → {{#ifor:

|test1 = FIN |var1 = Unified Team |then = Lua error in Module:Country_alias at line 148: Invalid country alias: FIN}.

  • {{ih|Canada|1921}} → {{#ifor:

|test1 = Canada |var1 = Unified Team |then = Lua error in Module:Country_alias at line 148: Invalid country alias: Canada}.

  • {{ih|URS|name=USSR}} → {{#ifor:

|test1 = URS |var1 = Unified Team |then = Lua error in Module:Country_alias at line 148: Invalid country alias: URS}.

  • {{ih|Czechoslovakia|name=TCH}} → {{#ifor:

|test1 = Czechoslovakia |var1 = Unified Team |then = Lua error in Module:Country_alias at line 148: Invalid country alias: Czechoslovakia}.


See also