Difference between revisions of "Template:Ih/doc"

From blackwiki
Jump to navigation Jump to search
imported>Maiō T.
m (add one)
imported>Jonesey95
m (Fix Linter errors using AutoEd)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
 
==Description==
 
==Description==
<tt><nowiki>{{ih|nation|variant|size=optional|name=optional}}</nowiki></tt>
+
<code><nowiki>{{ih|nation|variant|size=optional|name=optional}}</nowiki></code>
  
 
Produces a flag icon attached to a wikilinked national ice hockey team article.
 
Produces a flag icon attached to a wikilinked national ice hockey team article.
Line 11: Line 11:
  
 
==Examples==
 
==Examples==
*<tt><nowiki>{{ih|Sweden}}</nowiki></tt> → {{ih|Sweden}}
+
*<code><nowiki>{{ih|Sweden}}</nowiki></code> → {{ih|Sweden}}
*<tt><nowiki>{{ih|FIN}}</nowiki></tt> → {{ih|FIN}}
+
*<code><nowiki>{{ih|FIN}}</nowiki></code> → {{ih|FIN}}
*<tt><nowiki>{{ih|Canada|1921}}</nowiki></tt> → {{ih|Canada|1921}}
+
*<code><nowiki>{{ih|Canada|1921}}</nowiki></code> → {{ih|Canada|1921}}
*<tt><nowiki>{{ih|URS|name=USSR}}</nowiki></tt> → {{ih|URS|name=USSR}}
+
*<code><nowiki>{{ih|URS|name=USSR}}</nowiki></code> → {{ih|URS|name=USSR}}
*<tt><nowiki>{{ih|Czechoslovakia|name=TCH}}</nowiki></tt> → {{ih|Czechoslovakia|name=TCH}}
+
*<code><nowiki>{{ih|Czechoslovakia|name=TCH}}</nowiki></code> → {{ih|Czechoslovakia|name=TCH}}
  
 
==See also==
 
==See also==
Line 24: Line 24:
 
*[[:Category:National ice hockey teams]]
 
*[[:Category:National ice hockey teams]]
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
[[Category:Ice hockey team templates|{{PAGENAME}}]]
 
[[Category:Ice hockey team templates|{{PAGENAME}}]]
 
[[Category:Flag template system|{{PAGENAME}}]]
 
[[Category:Flag template system|{{PAGENAME}}]]
</includeonly>
+
}}</includeonly>

Latest revision as of 02:16, 3 June 2020

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

See also