Difference between revisions of "Template:Af/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Shootmaster 44
m (8 revisions imported)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
 +
{{For|the April fools' template|Template:April fools}}
 
==Description==
 
==Description==
<tt><nowiki>{{af|nation|variant|size=optional|name=optional}}</nowiki></tt>
+
<kbd><nowiki>{{af|nation|variant|size=optional|name=optional}}</nowiki></kbd>
  
 
Produces a flag icon attached to a wikilinked national American football team article.
 
Produces a flag icon attached to a wikilinked national American football team article.
 
;Parameters
 
;Parameters
*''nation'' — Use either the name of the nation or the three-letter country code as used by [[List of IOC country codes|IOC]]
+
*''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 11: Line 12:
  
 
==Examples==
 
==Examples==
==Examples==
+
*<kbd><nowiki>{{af|USA}}</nowiki></kbd> → {{af|USA}}
{| class="wikitable"
+
*<kbd><nowiki>{{af|Japan}}</nowiki></kbd> {{af|Japan}}
|-
+
*<kbd><nowiki>{{af|Germany|name=GER}}</nowiki></kbd> {{af|Germany|name=GER}}
| <tt><nowiki>{{af|Japan}}</nowiki></tt> ||align=center| {{af|Japan}}
 
|-
 
| <tt><nowiki>{{af|GER}}</nowiki></tt> ||align=center| {{af|GER}}
 
|}
 
  
 
==See also==
 
==See also==
*[[Template:af-big]] for rendering a larger flag, with the team name underneath the flag
+
*[[Template:af-big]] for rendering a larger flag, with the team name underneath the flag
*[[Template:afu]] for junior national teams  
+
*[[Template:afu]] for junior national teams  
*[[Template:afu-big]] - for rendering a larger flag, with the team name underneath the flag for junior national teams
+
*[[Template:afu-big]] for rendering a larger flag, with the team name underneath the flag for junior national teams
*[[Template:af-rt]] - for rendering the flag on the right, useful for single line game results
+
*[[Template:af-rt]] for rendering the flag on the right, useful for single line game results
 +
*[[Template:afw]] – for women's national teams
 +
*[[:Category:National American football teams]]
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
[[Category:Flag template system|{{PAGENAME}}]]
 
[[Category:Flag template system|{{PAGENAME}}]]
</includeonly>
+
}}</includeonly>

Latest revision as of 10:55, 18 October 2020

Description

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

Produces a flag icon attached to a wikilinked national American football team article.

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