Difference between revisions of "Template:Ih/doc"

From blackwiki
Jump to navigation Jump to search
imported>David1010
imported>Jonesey95
m (Fix Linter errors using AutoEd)
 
(5 intermediate revisions by 5 users 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|CZE}}</nowiki></tt> → {{ih|CZE}}
+
*<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}}
 +
*<code><nowiki>{{ih|Czechoslovakia|name=TCH}}</nowiki></code> → {{ih|Czechoslovakia|name=TCH}}
  
 
==See also==
 
==See also==
 
*[[Template:ih-rt]] — for rendering the flag on the right
 
*[[Template:ih-rt]] — for rendering the flag on the right
 +
*[[Template:ihj]] — for men's junior national teams
 +
*[[Template:ih18]] — for men's under-18 national teams
 
*[[Template:ihw]] — for women's national teams
 
*[[Template:ihw]] — for women's national teams
 
*[[: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>
[[cs:Šablona:Lh]]
 
[[ja:Template:Ih]]
 
[[ka:თარგი:Ih]]
 
[[no:Mal:Ishockeyflagg]]
 
[[sl:Predloga:Ih]]
 
</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