Difference between revisions of "Template:Hb/doc"
Jump to navigation
Jump to search
imported>DixonDBot m (Migrating 4 interwiki links, now provided by Wikidata on d:Q6061906) |
imported>GKFX (→Description: Convert to template data.) |
||
| Line 2: | Line 2: | ||
==Description== | ==Description== | ||
<tt><nowiki>{{hb|nation|variant|size=optional|name=optional}}</nowiki></tt> | <tt><nowiki>{{hb|nation|variant|size=optional|name=optional}}</nowiki></tt> | ||
| − | + | {{Format TemplateData|JSON={ | |
| − | Produces a flag icon attached to a wikilinked men's national handball team article. | + | "description": "Produces a flag icon attached to a wikilinked men's national handball team article.", |
| − | + | "params": { | |
| − | + | "1": { | |
| − | + | "label": "Nation", | |
| − | + | "description": "Use either the name of the nation or the three-letter country code, as specified by [[ISO 3166-1 alpha-3|ISO 3166-1]], [[List of IOC country codes|IOC]] or [[List of FIFA country codes|FIFA]] (most should work).", | |
| − | + | "type": "string", | |
| + | "required": true | ||
| + | }, | ||
| + | "variant": { | ||
| + | "label": "Variant", | ||
| + | "aliases": ["2"], | ||
| + | "description": "Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate template in [[:Category:Country data templates]].", | ||
| + | "type": "string" | ||
| + | }, | ||
| + | "size": { | ||
| + | "label": "Size", | ||
| + | "description": "Can be used to change the flag icon size (use sparingly!)" | ||
| + | }, | ||
| + | "name": { | ||
| + | "label": "Link display text", | ||
| + | "description": "Can be used to change the wikilink display text" | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | }} | ||
==Examples== | ==Examples== | ||
Revision as of 23:54, 15 February 2018
| This is a documentation subpage for Template:Hb. It contains usage information, categories and other content that is not part of the original template page. |
Description
{{hb|nation|variant|size=optional|name=optional}}
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Hb
Produces a flag icon attached to a wikilinked men's national handball team article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Nation | 1 | Use either the name of the nation or the three-letter country code, as specified by ISO 3166-1, IOC or FIFA (most should work). | String | required |
| Variant | variant2 | Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate template in Category:Country data templates. | String | optional |
| Size | size | Can be used to change the flag icon size (use sparingly!) | Unknown | optional |
| Link display text | name | Can be used to change the wikilink display text | Unknown | optional |
Examples
- {{hb|Sweden}} →
Sweden - {{hb|FRA}} →
France - {{hb|Romania|1965}} →
Romania - {{hb|Germany|name=West Germany}} →
West Germany
See also
- Template:hb-rt — for rendering the flag on the right
- Template:hb-big — for rendering a larger flag, with the team name underneath the flag
- Template:hbw — for women's national teams
- Category:National handball teams