Template:Infobox military unit: Difference between revisions
(Created page with " <noinclude> <templatedata> { "params": { "Unit Name": { "description": "The formal name of the unit.", "required": true }, "Unit Insignia": { "description": "An image of the unit insignia (cap badges, tartan or colours), if available; other images may be used if this cannot be obtained. The image must be given in the form Example.jpg.", "type": "content" }, "Caption": { "description": "The text to be placed below the image." } }, "descripti...") |
No edit summary |
||
Line 4: | Line 4: | ||
{ | { | ||
"params": { | "params": { | ||
"Unit Name" | "unit_name": { | ||
"label": "Unit Name", | |||
"description": "The formal name of the unit.", | "description": "The formal name of the unit.", | ||
"type": "line", | |||
"required": true | "required": true | ||
}, | }, | ||
"Unit Insignia" | "native_name": {}, | ||
"image": { | |||
"label": "Unit Insignia Image", | |||
"description": "An image of the unit insignia (cap badges, tartan or colours), if available; other images may be used if this cannot be obtained. The image must be given in the form Example.jpg.", | "description": "An image of the unit insignia (cap badges, tartan or colours), if available; other images may be used if this cannot be obtained. The image must be given in the form Example.jpg.", | ||
"type": " | "type": "wiki-file-name" | ||
}, | }, | ||
" | "image_size": { | ||
"description": "The text to be placed below the image." | "label": "Image Size", | ||
"description": "Used to override the default image width of 200 pixels. It should be written as 200px.", | |||
"type": "string" | |||
}, | |||
"alt": { | |||
"label": "Alternative text for image", | |||
"description": "Alternative text for visually impaired users.", | |||
"type": "string" | |||
}, | |||
"caption": { | |||
"label": "Caption", | |||
"description": "The text to be placed below the image.", | |||
"type": "string" | |||
}, | |||
"dates": { | |||
"aliases": [ | |||
"start_date", | |||
"end_date" | |||
], | |||
"label": "Time Period Active", | |||
"description": "The period (usually in years) when the unit was active; alternately, the dates may be indicated by using one—or both—of the separate Start Date and End Date parameters.", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"disbanded": { | |||
"label": "Disbanded Date", | |||
"description": "For units that have been disbanded, the dates and any other relevant notes regarding the disbanding.", | |||
"type": "date" | |||
}, | |||
"country": { | |||
"label": "Country", | |||
"description": "If the unit is part of the armed forces of a sovereign state, the name of that state." | |||
}, | |||
"countries": { | |||
"label": "Countries drawn from", | |||
"description": "For multinational forces, the countries the unit is drawn from. {{Flag|<country>}} format is preferred.", | |||
"type": "string" | |||
}, | |||
"allegiance": { | |||
"label": "Allegiance", | |||
"description": "Used to indicate the allegiance of units which are not part of the regular armed forces of a sovereign state; can usually be omitted otherwise. In the case of National Guard or Naval Militia units, the State of origin should be indicated." | |||
}, | |||
"branch": { | |||
"label": "Branch", | |||
"description": "The service branch, in militaries that have them; typically army, navy, air force, etc." | |||
} | } | ||
}, | }, | ||
"description": "This template provides information about a military unit.", | "description": "This template provides information about a military unit.", | ||
"format": " | "format": "{{_\n| _____________________________ = _\n}}\n", | ||
"paramOrder": [ | |||
"unit_name", | |||
"native_name", | |||
"image", | |||
"image_size", | |||
"alt", | |||
"caption", | |||
"dates", | |||
"disbanded", | |||
"country", | |||
"countries", | |||
"allegiance", | |||
"branch" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Revision as of 01:29, 23 June 2023
This template provides information about a military unit.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Unit Name | unit_name | The formal name of the unit. | Line | required |
native_name | native_name | no description | Unknown | optional |
Unit Insignia Image | image | An image of the unit insignia (cap badges, tartan or colours), if available; other images may be used if this cannot be obtained. The image must be given in the form Example.jpg. | File | optional |
Image Size | image_size | Used to override the default image width of 200 pixels. It should be written as 200px. | String | optional |
Alternative text for image | alt | Alternative text for visually impaired users. | String | optional |
Caption | caption | The text to be placed below the image. | String | optional |
Time Period Active | dates start_date end_date | The period (usually in years) when the unit was active; alternately, the dates may be indicated by using one—or both—of the separate Start Date and End Date parameters. | String | required |
Disbanded Date | disbanded | For units that have been disbanded, the dates and any other relevant notes regarding the disbanding. | Date | optional |
Country | country | If the unit is part of the armed forces of a sovereign state, the name of that state. | Unknown | optional |
Countries drawn from | countries | For multinational forces, the countries the unit is drawn from. {{Flag|<country>}} format is preferred. | String | optional |
Allegiance | allegiance | Used to indicate the allegiance of units which are not part of the regular armed forces of a sovereign state; can usually be omitted otherwise. In the case of National Guard or Naval Militia units, the State of origin should be indicated. | Unknown | optional |
Branch | branch | The service branch, in militaries that have them; typically army, navy, air force, etc. | Unknown | optional |