Difference between revisions of "Template:Bd/doc"
Jump to navigation
Jump to search
imported>-iNu- m (edit interwiki) |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
==Description== | ==Description== | ||
| − | + | {{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|CHN}}</nowiki></kbd> → {{bd|CHN}} |
| − | *< | + | *<kbd><nowiki>{{bd|Malaysia|1895|name=Malaya}}</nowiki></kbd> → {{bd|Malaysia|1895|name=Malaya}} |
| + | *<kbd><nowiki>{{bd|BAN}}</nowiki></kbd> → {{bd|BAN}} | ||
==See also== | ==See also== | ||
| Line 20: | Line 21: | ||
*[[:Category:National badminton teams]] | *[[:Category:National badminton teams]] | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
[[Category:Badminton templates|{{PAGENAME}}]] | [[Category:Badminton templates|{{PAGENAME}}]] | ||
[[Category:Flag template system|{{PAGENAME}}]] | [[Category:Flag template system|{{PAGENAME}}]] | ||
[[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> | ||
Latest revision as of 23:46, 23 April 2020
| This is a documentation subpage for Template:Bd. It contains usage information, categories and other content that is not part of the original template page. |
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}} →
Indonesia - {{bd|CHN}} →
China - {{bd|Malaysia|1895|name=Malaya}} →
Malaya - {{bd|BAN}} →
Bangladesh
See also
- Template:bd-rt — for rendering the flag on the right
- Template:bd-big — for rendering a larger flag, with the team name underneath the flag
- Category:National badminton teams
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Country name | 1 | Use either the name of the nation or the three-letter country code as used by the IOC
| String | required |
| Flag variant | variant 2 | Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate template in Category:Country data templates.
| String | optional |
| Size | size | no description | String | optional |
| Name of country to display | name | no description | String | optional |