Difference between revisions of "Template:Fh-rt/doc"

From blackwiki
Jump to navigation Jump to search
imported>Andrwsc
(update template documentation using AWB)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
 
==Description==
 
==Description==
<tt><nowiki>{{fh-rt|nation|variant|size=optional|name=optional}}</nowiki></tt>
+
<code><nowiki>{{fh-rt|nation|variant|size=optional|name=optional}}</nowiki></code>
  
 
Produces a flag icon attached to a wikilinked national field hockey team article. Similar to [[Template:fh]], 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 field hockey team article. Similar to [[Template:fh]], 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==
*<tt><nowiki>{{fh-rt|Australia}}</nowiki></tt> → {{fh-rt|Australia}}
+
*<code><nowiki>{{fh-rt|Australia}}</nowiki></code> → {{fh-rt|Australia}}
*<tt><nowiki>{{fh-rt|NED}}</nowiki></tt> → {{fh-rt|NED}}
+
*<code><nowiki>{{fh-rt|NED}}</nowiki></code> → {{fh-rt|NED}}
*<tt><nowiki>{{fh-rt|India|British}}</nowiki></tt> → {{fh-rt|India|British}}
+
*<code><nowiki>{{fh-rt|India|British}}</nowiki></code> → {{fh-rt|India|British}}
  
 
==See also==
 
==See also==
Line 22: Line 22:
 
*[[:Category:National field hockey teams]]
 
*[[:Category:National field hockey teams]]
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
[[Category:Field hockey templates|{{PAGENAME}}]]
 
[[Category:Field hockey templates|{{PAGENAME}}]]
 
[[Category:Flag template system|{{PAGENAME}}]]
 
[[Category:Flag template system|{{PAGENAME}}]]
</includeonly>
+
}}</includeonly>

Latest revision as of 04:33, 25 April 2020

Description

{{fh-rt|nation|variant|size=optional|name=optional}}

Produces a flag icon attached to a wikilinked national field hockey team article. Similar to Template:fh, 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 IOC, FIFA, etc. (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

See also