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

From blackwiki
Jump to navigation Jump to search
blackwiki>WOSlinker
(add cat)
m (10 revisions imported)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
 
==Description==
 
==Description==
<tt><nowiki>{{af-rt|nation|variant|size=optional|name=optional}}</nowiki></tt>
+
<kbd><nowiki>{{af-rt|nation|variant|size=optional|name=optional}}</nowiki></kbd>
  
 
Produces a flag icon attached to a wikilinked national American football team article.  Similar to [[Template:af]], 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 American football team article.  Similar to [[Template:af]], 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
 
;Parameters
*''nation'' — Use either the name of the nation or the three-letter country code as used by the [[International Federation of American Football|IFAF]]
+
*''nation'' — Use either the name of the nation or the three-letter country code as used by [[International Federation of American Football|IFAF]]
 
*''variant'' (optional) — Specifies an alternate (historical) flag to use.  This parameter is documented by the appropriate template in [[:Category:Country data templates]].
 
*''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!)
 
*''size'' (optional) — Can be used to change the flag icon size (use sparingly!)
Line 12: Line 12:
  
 
==Examples==
 
==Examples==
*<tt><nowiki>{{af-rt|Sweden}}</nowiki></tt> → {{af-rt|Sweden}}
+
*<kbd><nowiki>{{af-rt|USA}}</nowiki></kbd> → {{af-rt|USA}}
*<tt><nowiki>{{af-rt|CZE}}</nowiki></tt> → {{af-rt|CZE}}
+
*<kbd><nowiki>{{af-rt|Japan}}</nowiki></kbd> → {{af-rt|Japan}}
*<tt><nowiki>{{af-rt|Canada|1921}}</nowiki></tt> → {{af-rt|Canada|1921}}
+
*<kbd><nowiki>{{af-rt|Germany|name=GER}}</nowiki></kbd> → {{af-rt|Germany|name=GER}}
*<tt><nowiki>{{af-rt|URS|name=USSR}}</nowiki></tt> → {{af-rt|URS|name=USSR}}
 
  
 
==See also==
 
==See also==
 
*[[Template:af]] — for rendering the flag on the left
 
*[[Template:af]] — for rendering the flag on the left
  
=== Usage ===
+
<includeonly>{{Sandbox other||
 
 
=== See also ===
 
 
 
<includeonly>
 
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->
 
[[Category:Flag template system]]
 
[[Category:Flag template system]]
</includeonly>
+
}}</includeonly>

Latest revision as of 10:55, 18 October 2020

Description

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

Produces a flag icon attached to a wikilinked national American football team article. Similar to Template:af, 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 IFAF
  • 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