Difference between revisions of "Template:Hb/doc"

From blackwiki
Jump to navigation Jump to search
imported>Obradovic Goran
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
 
==Description==
 
==Description==
<tt><nowiki>{{hb|nation|variant|size=optional|name=optional}}</nowiki></tt>
+
<code><nowiki>{{hb|nation|variant|size=optional|name=optional}}</nowiki></code>
 
+
{{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.",
;Parameters
+
"params": {
*''nation'' — Use either the name of the nation or the three-letter country code, as specified by [[ISO 3166-1 alpha-3|ISO]], [[List of IOC country codes|IOC]] or [[List of FIFA country codes|FIFA]] (most should work)
+
"1": {
*''variant'' (optional) — Specifies an alternate (historical) flag to use.  This parameter is documented by the appropriate template in [[:Category:Country data templates]].
+
        "label": "Nation",
*''size'' (optional) — Can be used to change the flag icon size (use sparingly!)
+
        "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).",
*''name'' (optional) — Can be used to change the wikilink display text
+
        "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==
*<tt><nowiki>{{hb|Sweden}}</nowiki></tt> → {{hb|Sweden}}
+
*<code><nowiki>{{hb|Sweden}}</nowiki></code> → {{hb|Sweden}}
*<tt><nowiki>{{hb|FRA}}</nowiki></tt> → {{hb|FRA}}
+
*<code><nowiki>{{hb|FRA}}</nowiki></code> → {{hb|FRA}}
*<tt><nowiki>{{hb|Romania|1965}}</nowiki></tt> → {{hb|Romania|1965}}
+
*<code><nowiki>{{hb|Romania|1965}}</nowiki></code> → {{hb|Romania|1965}}
*<tt><nowiki>{{hb|Germany|name=West Germany}}</nowiki></tt> → {{hb|Germany|name=West Germany}}
+
*<code><nowiki>{{hb|Germany|name=West Germany}}</nowiki></code> → {{hb|Germany|name=West Germany}}
  
 
==See also==
 
==See also==
Line 22: Line 41:
 
*[[:Category:National handball teams]]
 
*[[:Category:National handball teams]]
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
[[Category:Handball templates|{{PAGENAME}}]]
 
[[Category:Handball templates|{{PAGENAME}}]]
 
[[Category:Flag template system|{{PAGENAME}}]]
 
[[Category:Flag template system|{{PAGENAME}}]]
  
[[mk:Шаблон:hb]]
+
}}</includeonly>
[[sr:Шаблон:Рпр]]
 
</includeonly>
 

Latest revision as of 16:40, 25 April 2020

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.
ParameterDescriptionTypeStatus
Nation1
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).
Stringrequired
Variantvariant
2
Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate template in Category:Country data templates.
Stringoptional
Sizesize
Can be used to change the flag icon size (use sparingly!)
Unknownoptional
Link display textname
Can be used to change the wikilink display text
Unknownoptional

Examples

See also