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

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(prevent sandbox for being included in categories)
imported>Jonesey95
m (Fix Linter errors using AutoEd)
 
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
 
==Description==
 
==Description==
<tt><nowiki>{{fb-rt|nation|variant|size=optional|name=optional}}</nowiki></tt>
+
<code><nowiki>{{fb-rt|nation|variant|size=optional|name=optional}}</nowiki></code>
  
 
Produces a flag icon attached to a wikilinked national football team article.  Similar to [[Template:Fb]], 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 football team article.  Similar to [[Template:Fb]], 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>{{fb-rt|Brazil}}</nowiki></tt> → {{fb-rt|Brazil}}
+
*<code><nowiki>{{fb-rt|Brazil}}</nowiki></code> → {{fb-rt|Brazil}}
*<tt><nowiki>{{fb-rt|ENG}}</nowiki></tt> → {{fb-rt|ENG}}
+
*<code><nowiki>{{fb-rt|ENG}}</nowiki></code> → {{fb-rt|ENG}}
*<tt><nowiki>{{fb-rt|Italy|1861}}</nowiki></tt> → {{fb-rt|Italy|1861}}
+
*<code><nowiki>{{fb-rt|Italy|1861}}</nowiki></code> → {{fb-rt|Italy|1861}}
*<tt><nowiki>{{fb-rt|GER|name=GER}}</nowiki></tt> → {{fb-rt|GER|name=GER}}
+
*<code><nowiki>{{fb-rt|GER|name=GER}}</nowiki></code> → {{fb-rt|GER|name=GER}}
  
 
==See also==
 
==See also==

Latest revision as of 23:45, 5 December 2019

Description

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

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

  • {{fb-rt|Brazil}}Brazil 
  • {{fb-rt|ENG}}England 
  • {{fb-rt|Italy|1861}}Italy 
  • {{fb-rt|GER|name=GER}}GER 

See also