Template:Infobox military unit/doc: Difference between revisions

No edit summary
Unlink imported Wikipedia interwiki documentation links
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Usage ==
=== Military unit infobox ===
A military unit infobox may be used to summarize information about an individual military unit or formation, such as a regiment or division.
The infobox should be added using the {{tlx|Infobox military unit}} template, as shown below:
{{Parameter names example
{{Parameter names example
| unit_name
| unit_name
Line 209: Line 203:
* '''image''' &ndash; ''optional'' &ndash; An image of the unit insignia ([[cap badge]]s, [[tartan]] or [[Colours, standards and guidons|colours]]), if available; other images may be used if this cannot be obtained. The image should be given in the form <code>Example.jpg</code>.
* '''image''' &ndash; ''optional'' &ndash; An image of the unit insignia ([[cap badge]]s, [[tartan]] or [[Colours, standards and guidons|colours]]), if available; other images may be used if this cannot be obtained. The image should be given in the form <code>Example.jpg</code>.
* '''image_size''' &ndash; ''optional'' &ndash; Used to override the default image width of 200 pixels. It should be written as <code>200px</code>.
* '''image_size''' &ndash; ''optional'' &ndash; Used to override the default image width of 200 pixels. It should be written as <code>200px</code>.
* '''alt''' &ndash; ''optional'' &ndash; Alternative text for visually impaired users, see [[WP:ALT]].
* '''alt''' &ndash; ''optional'' &ndash; Alternative text for visually impaired users.
* '''caption''' &ndash; ''optional'' &ndash; The text to be placed below the image.
* '''caption''' &ndash; ''optional'' &ndash; The text to be placed below the image.
* '''dates''' &ndash; 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.
* '''dates''' &ndash; 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.
Line 314: Line 308:
| ceremonial_chief =
| ceremonial_chief =
| type = [[Parachute infantry]]
| type = [[Parachute infantry]]
| branch = [[United States Army|Army]]
| branch = Army
| dates = {{As of|since=y|1942}}
| dates = {{As of|since=y|1942}}
| country = United States
| country = United States
Line 347: Line 341:
| ceremonial_chief =
| ceremonial_chief =
| type = [[Parachute infantry]]
| type = [[Parachute infantry]]
| branch = [[United States Army|Army]]
| branch = Army
| dates = {{As of|since=y|1942}}
| dates = {{As of|since=y|1942}}
| country = United States
| country = United States
Line 376: Line 370:


== TemplateData ==
== TemplateData ==
{{collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
{{collapse top|TemplateData documentation used by VisualEditor and other tools}}
{{TemplateData header|noheader=1}}
{{TemplateData header|noheader=1}}
<templatedata>
<templatedata>
Line 402: Line 396:
"type": "string",
"type": "string",
"label": "Alternative text for image",
"label": "Alternative text for image",
"description": "Alternative text for visually impaired users, see WP:ALT."
"description": "Alternative text for visually impaired users"
},
},
"caption": {
"caption": {