Difference between revisions of "Template:Cr/doc"

From blackwiki
Jump to navigation Jump to search
(Undid revision 800879834 by 88.104.164.227 (talk))
imported>GKFX
(Convert to Format TemplateData)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
 +
<tt><nowiki>{{cr|nation|variant|size=optional|name=optional}}</nowiki></tt>
 
==Description==
 
==Description==
<tt><nowiki>{{cr|nation|variant|size=optional|name=optional}}</nowiki></tt>
+
{{Format TemplateData|JSON=
 
+
{"description": "Produces a flag icon attached to a wikilinked national cricket team article.",
Produces a flag icon attached to a wikilinked national cricket team article.
+
"params": {
;Parameters
+
"1": {
*''nation'' — Use either the name of the nation or a 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)
+
        "label": "Nation",
*''variant'' (optional) — Specifies an alternate (historical) flag to use.  This parameter is documented by the appropriate template in [[:Category:Country data templates]].
+
        "type": "string",
*''size'' (optional) — Can be used to change the flag icon size (use sparingly!)
+
        "required": true,
*''name'' (optional) — Can be used to change the wikilink display text
+
      "description": "Use either the name of the nation or a 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),"
 +
        },
 +
"2": {
 +
        "label": "Flag variant",
 +
        "aliases":["variant"],
 +
        "type": "string",
 +
        "description": "Specifies an alternate (historical) flag to use.  This parameter is documented by the appropriate template in [[:Category:Country data templates]]."
 +
        },
 +
"size": {
 +
        "label": "Image size",
 +
        "description": "Can be used to change the flag icon size (use sparingly!)"
 +
        },
 +
"name": {
 +
        "label": "Link text",
 +
        "description": "Can be used to change the wikilink display text.",
 +
        "type": "line"
 +
        }
 +
}
 +
}
 +
}}
  
 
==Examples==
 
==Examples==

Revision as of 22:58, 20 February 2018

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

Description

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 Cr

Produces a flag icon attached to a wikilinked national cricket team article.
ParameterDescriptionTypeStatus
Nation1
Use either the name of the nation or a three-letter country code, as specified by ISO 3166-1, IOC or FIFA (most should work),
Stringrequired
Flag variant2
variant
Specifies an alternate (historical) flag to use. This parameter is documented by the appropriate template in Category:Country data templates.
Stringoptional
Image sizesize
Can be used to change the flag icon size (use sparingly!)
Unknownoptional
Link textname
Can be used to change the wikilink display text.
Lineoptional

Examples

See also