Difference between revisions of "Template:Bd/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB)
imported>Daviddwd
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
 
==Description==
 
==Description==
<kbd><nowiki>{{bd|nation|variant|size=optional|name=optional}}</nowiki></kbd>
+
{{tlx|bd|nation|variant|size=optional|name=optional}}
  
 
Produces a flag icon attached to a wikilinked national badminton team article.
 
Produces a flag icon attached to a wikilinked national badminton team article.
Line 11: Line 11:
  
 
==Examples==
 
==Examples==
*<kbd><nowiki>{{bd|Indonesia}}</nowiki></kbd> → {{bd|Indonesia}}
+
*<kbd><nowiki>{{bd|Indonesia}} → {{bd|Indonesia}}
 
*<kbd><nowiki>{{bd|CHN}}</nowiki></kbd> → {{bd|CHN}}
 
*<kbd><nowiki>{{bd|CHN}}</nowiki></kbd> → {{bd|CHN}}
 
*<kbd><nowiki>{{bd|Malaysia|1895|name=Malaya}}</nowiki></kbd> → {{bd|Malaysia|1895|name=Malaya}}
 
*<kbd><nowiki>{{bd|Malaysia|1895|name=Malaya}}</nowiki></kbd> → {{bd|Malaysia|1895|name=Malaya}}
Line 27: Line 27:
 
[[id:Templat:Bd]]
 
[[id:Templat:Bd]]
 
</includeonly>
 
</includeonly>
 +
<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"label": "Country name",
 +
"type": "string",
 +
"description": "Use either the name of the nation or the three-letter country code as used by the IOC",
 +
"example": "Singapore",
 +
"required": true
 +
},
 +
"variant": {
 +
"aliases": [
 +
"2"
 +
],
 +
"label": "Flag variant",
 +
"type": "string",
 +
"description": "Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate template in Category:Country data templates.",
 +
"example": "1895"
 +
},
 +
"size": {
 +
"type": "string"
 +
},
 +
"name": {
 +
"label": "Name of country to display",
 +
"type": "string"
 +
}
 +
}
 +
}
 +
</templatedata>

Revision as of 17:34, 12 December 2018

Description

{{bd|nation|variant}}

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

Parameters
  • nation — Use either the name of the nation or the three-letter country code as used by the IOC, for example
  • 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

  • {{bd|Indonesia}} → {{bd|Indonesia}} *<kbd><nowiki>{{bd|CHN}} China
  • {{bd|Malaysia|1895|name=Malaya}} Malaya
  • {{bd|BAN}} Bangladesh

See also


No description.

Template parameters

ParameterDescriptionTypeStatus
Country name1

Use either the name of the nation or the three-letter country code as used by the IOC

Example
Singapore
Stringrequired
Flag variantvariant 2

Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate template in Category:Country data templates.

Example
1895
Stringoptional
Sizesize

no description

Stringoptional
Name of country to displayname

no description

Stringoptional