Template:Army/doc
This is a documentation subpage for Template:Army. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 16,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Usage
[edit]{{army|nation|variant|size=optional|name=optional}}
Produces a flag icon attached to a wikilinked national army article.
- Parameters
- nation — Use either the name of the nation or the three-letter ISO 3166-1 alpha-3 country code
- variant (optional) — Specifies an alternate (historical) army flag to use. This parameter is documented by the appropriate template in Category:Country data templates. Note that the standard behaviour of this template is to use the
army
variant if present, so there is no need to specify this variant in the template call. - size (optional) — Can be used to change the flag icon size
- name (optional) — Can be used to change the wikilink display text
Examples
[edit]- {{army|United Kingdom}} → British Army
- {{army|US}} → United States Army
- {{army|CHN}} → People's Liberation Army Ground Force
- {{army|Republic of China (1912–1949)}} → Republic of China Army
- {{army|Empire of Japan}} → Imperial Japanese Army
- {{army|Empire of Japan|name=Japan}} → Japan
- {{army|India}} → Indian Army
- {{army|Pakistan}} → Pakistan Army
- {{army|Bangladesh}} → Bangladesh Army
- {{army|Canada}} → Canadian Army
- {{army|Spain}} → Spanish Army
- {{army|France}} → French Army
- {{army|Switzerland}} → Swiss Army
Other related templates
[edit]The {{flag icon}} template can be used to display the flag by itself, using the army variant as a template parameter:
- {{flag icon|United Kingdom|army}} →
- {{flag icon|United States|army}} →
- {{flag icon|Empire of Japan|army}} →
- {{flag icon|Taiwan|army}} →
Implementation notes
[edit]By default, this template shows the standard national flag for the selected country, following by a wikilink to "Country Army". Either or both of these items can be changed by adding specific parameters to the appropriate country_data template (complete set found in Category:Country data templates).
To use a different flag, such as an army-specific flag for the nation, use:
- flag alias-army = image name
To use a different name for the wikilinked army article, use:
- link alias-army = article name
Template Data
[edit]TemplateData for Army
Produces a flag icon attached to a wikilinked national army article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
nation | 1 | Use either the name of the nation or the three-letter ISO 3166-1 alpha-3 country code
| Line | required |
variant | 2 variant | Specifies an alternate (historical) army flag to use. This parameter is documented by the appropriate template in [[Category:Country data templates]]. Note that the standard behaviour of this template is to use the <code>army</code> variant if present, so there is no need to specify this variant in the template call. | Line | optional |
size | size | (optional) Can be used to change the flag icon size | String | optional |
name | name | (optional) Can be used to change the wikilink display text | Line | optional |
See also
[edit]