Difference between revisions of "Template:Bb/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sawol
m
imported>Koavf
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
 
==Description==
 
==Description==
<tt><nowiki>{{bb|nation|variant|size=optional|name=optional}}</nowiki></tt>
+
<kbd><nowiki>{{bb|nation|variant|size=optional|name=optional}}</nowiki></kbd>
  
 
Produces a flag icon attached to a wikilinked national baseball team article.
 
Produces a flag icon attached to a wikilinked national baseball team article.
 
;Parameters
 
;Parameters
*''nation'' Use either the name of the nation or the three-letter country code as used by [[International Baseball Federation|IBAF]]
+
*''nation'' Use either the name of the nation or the three-letter country code as used by [[International Baseball Federation|IBAF]]
*''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!)
*''name'' (optional) Can be used to change the wikilink display text
+
*''name'' (optional) Can be used to change the wikilink display text
  
 
==Examples==
 
==Examples==
*<tt><nowiki>{{bb|Japan}}</nowiki></tt> → {{bb|Japan}}
+
*<kbd><nowiki>{{bb|Japan}}</nowiki></kbd> → {{bb|Japan}}
*<tt><nowiki>{{bb|DOM}}</nowiki></tt> → {{bb|DOM}}
+
*<kbd><nowiki>{{bb|DOM}}</nowiki></kbd> → {{bb|DOM}}
*<tt><nowiki>{{bb|Venezuela|1954}}</nowiki></tt> → {{bb|Venezuela|1954}}
+
*<kbd><nowiki>{{bb|Venezuela|1954}}</nowiki></kbd> → {{bb|Venezuela|1954}}
*<tt><nowiki>{{bb|USA|name=USA}}</nowiki></tt> → {{bb|USA|name=USA}}
+
*<kbd><nowiki>{{bb|USA|name=USA}}</nowiki></kbd> → {{bb|USA|name=USA}}
  
 
==See also==
 
==See also==
*[[Template:bb-rt]] for rendering the flag on the right
+
*[[Template:bb-rt]] for rendering the flag on the right
*[[Template:bb-big]] for rendering a larger flag, with the team name underneath the flag
+
*[[Template:bb-big]] for rendering a larger flag, with the team name underneath the flag
 
*[[:Category:National baseball teams]]
 
*[[:Category:National baseball teams]]
  

Latest revision as of 18:14, 23 March 2019

Description

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

Produces a flag icon attached to a wikilinked national baseball team article.

Parameters
  • nation – Use either the name of the nation or the three-letter country code as used by IBAF
  • 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