Template:Infobox military unit: Difference between revisions

Jump to navigation Jump to search
no edit summary
(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": "content"
"type": "wiki-file-name"
},
},
"Caption": {
"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": "inline"
"format": "{{_\n| _____________________________ = _\n}}\n",
"paramOrder": [
"unit_name",
"native_name",
"image",
"image_size",
"alt",
"caption",
"dates",
"disbanded",
"country",
"countries",
"allegiance",
"branch"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Navigation menu