Template:Infobox Military Structure: Difference between revisions
wikademia>Leolaursen m move center end tag inside conditional, 3 empty lines was generated |
wikademia>Zyxw show infobox with optional parameter names and headings displayed (on this page only - does not affect pages using the infobox) |
||
| Line 1: | Line 1: | ||
< | <noinclude>{{Template sandbox notice}} | ||
{| {{WPMILHIST Infobox style|main_box|vcard}} | <!-- Please do not remove this section: it only displays when viewed from template sandbox and leaving it in allows template code to be copied to and from sandbox.--> | ||
</noinclude>{| {{WPMILHIST Infobox style|main_box|vcard}} | |||
|- | |- | ||
! colspan="2" {{WPMILHIST Infobox style|header_bar}} class="fn org"| {{{name|{{PAGENAME}}}}} | ! colspan="2" {{WPMILHIST Infobox style|header_bar}} class="fn org" | {{{name<includeonly>|{{PAGENAME}}</includeonly>}}} | ||
|- | |- | ||
{{#if:{{{partof|}}} | | {{#if: {{{partof<includeonly>|</includeonly>}}} | | ||
{{!}} colspan="2" {{WPMILHIST Infobox style|header_bar}} {{!}} Part of {{{partof | {{!}} colspan="2" {{WPMILHIST Infobox style|header_bar}} {{!}} Part of {{{partof}}} | ||
}} | }} | ||
|- | |- | ||
| colspan="2" {{WPMILHIST Infobox style|header_bar}} class="label"| {{{location}}} | | colspan="2" {{WPMILHIST Infobox style|header_bar}} class="label" | {{{location}}} | ||
|- | |- | ||
{{#if:{{{image|}}} | | {{#if: {{{image<includeonly>|</includeonly>}}} | | ||
{{!}} colspan="2" {{WPMILHIST Infobox style|image_box}} {{!}} {{{image | {{!}} colspan="2" {{WPMILHIST Infobox style|image_box}} {{!}} {{{image}}}<br/>{{{caption<includeonly>|</includeonly>}}} | ||
}} | }} | ||
{{#if: {{{map_type|}}}| | {{#if: {{{map_type|}}} | | ||
{{!}}- | {{!}}- | ||
{{!}} colspan="2" {{WPMILHIST Infobox style|image_box}} {{!}} <center>{{Location map|{{{map_type}}}|lat={{{latitude}}}|long={{{longitude}}}|width={{{map_size|220}}}|float=center|border=none|caption={{{map_caption|Shown within {{{map_type}}}}}}}}</center>}} | {{!}} colspan="2" {{WPMILHIST Infobox style|image_box}} {{!}} <center>{{Location map|{{{map_type}}}|lat={{{latitude}}}|long={{{longitude}}}|width={{{map_size|220}}}|float=center|border=none|caption={{{map_caption|Shown within {{{map_type}}}}}}}}</center>}} | ||
|- | |- | ||
{{#if:{{{type|}}} | | {{#if: {{{type<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} Type | ! style="padding-right: 1em;" {{!}} Type | ||
{{!}} {{{type | {{!}} {{{type}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{coordinates|}}} | | {{#if: {{{coordinates<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} Coordinates | ! style="padding-right: 1em;" {{!}} Coordinates | ||
{{!}} {{{coordinates | {{!}} {{{coordinates}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{code|}}} | | {{#if: {{{code<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} Location code | ! style="padding-right: 1em;" {{!}} Location code | ||
{{!}} {{{code | {{!}} {{{code}}} | ||
}} | }} | ||
|- class="note" | |- class="note" | ||
! style="padding-right: 1em;" | {{#if: {{{built<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} Built | |||
{{!}} {{{built}}} | |||
}} | |||
|- class="note" | |- class="note" | ||
{{#if:{{{builder|}}} | | {{#if: {{{builder<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} Built by | ! style="padding-right: 1em;" {{!}} Built by | ||
{{!}} {{{builder | {{!}} {{{builder}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{materials|}}} | | {{#if: {{{materials<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} Construction<br/>materials | ! style="padding-right: 1em;" {{!}} Construction<br/>materials | ||
{{!}} {{{materials | {{!}} {{{materials}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{height|}}} | | {{#if: {{{height<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} Height | ! style="padding-right: 1em;" {{!}} Height | ||
{{!}} {{{height | {{!}} {{{height}}} | ||
}} | }} | ||
|- | |- | ||
! style="padding-right: 1em;" | {{#if: {{{used<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} In use | |||
{{!}} {{{used}}} | |||
}} | |||
|- class="note" | |- class="note" | ||
{{#if:{{{demolished|}}} | | {{#if: {{{demolished<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} Demolished | ! style="padding-right: 1em;" {{!}} Demolished | ||
{{!}} {{{demolished | {{!}} {{{demolished}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{condition|}}} | | {{#if: {{{condition<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} Current<br/>condition | ! style="padding-right: 1em;" {{!}} Current<br/>condition | ||
{{!}} {{{condition | {{!}} {{{condition}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{ownership|}}} | | {{#if: {{{ownership<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} Current<br/>owner | ! style="padding-right: 1em;" {{!}} Current<br/>owner | ||
{{!}} {{{ownership | {{!}} {{{ownership}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{open_to_public|}}} | | {{#if: {{{open_to_public<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} Open to<br/>the public | ! style="padding-right: 1em;" {{!}} Open to<br/>the public | ||
{{!}} {{{open_to_public | {{!}} {{{open_to_public}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{controlledby|}}} | | {{#if: {{{controlledby<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} Controlled by | ! style="padding-right: 1em;" {{!}} Controlled by | ||
{{!}} {{{controlledby | {{!}} {{{controlledby}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{garrison|}}} | | {{#if: {{{garrison<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} Garrison | ! style="padding-right: 1em;" {{!}} Garrison | ||
{{!}} {{{garrison | {{!}} {{{garrison}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{current_commander|}}} | | {{#if: {{{current_commander<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} Current<br/>commander | ! style="padding-right: 1em;" {{!}} Current<br/>commander | ||
{{!}} {{{current_commander | {{!}} {{{current_commander}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{commanders|}}} | | {{#if: {{{commanders<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} Commanders | ! style="padding-right: 1em;" {{!}} Commanders | ||
{{!}} {{{commanders | {{!}} {{{commanders}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{occupants|}}} | | {{#if: {{{occupants<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} Occupants | ! style="padding-right: 1em;" {{!}} Occupants | ||
{{!}} {{{occupants | {{!}} {{{occupants}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{battles|}}} | | {{#if: {{{battles<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} Battles/wars | ! style="padding-right: 1em;" {{!}} Battles/wars | ||
{{!}} {{{battles | {{!}} {{{battles}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{events|}}} | | {{#if: {{{events<includeonly>|</includeonly>}}} | | ||
! style="padding-right: 1em;" {{!}} Events | ! style="padding-right: 1em;" {{!}} Events | ||
{{!}} {{{events | {{!}} {{{events}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{image2|}}} | | {{#if: {{{image2<includeonly>|</includeonly>}}} | | ||
{{!}} colspan="2" {{WPMILHIST Infobox style|image_box_plain}} {{!}} {{{image2 | {{!}} colspan="2" {{WPMILHIST Infobox style|image_box_plain}} {{!}} {{{image2}}}<br/>{{{caption2<includeonly>|</includeonly>}}} | ||
}} | }} | ||
|} | |}<noinclude> | ||
{{Documentation | {{Documentation}} | ||
<!-- Please add categories and interwikis to the /doc subpage, not here. --> | |||
</noinclude> | </noinclude> | ||
Revision as of 22:57, 9 September 2008
Template:Template sandbox notice
| {{{name}}} | |
|---|---|
| Part of {{{partof}}} | |
| {{{location}}} | |
| {{{image}}} {{{caption}}} | |
| Type | {{{type}}} |
| Coordinates | {{{coordinates}}} |
| Location code | {{{code}}} |
| Built | {{{built}}} |
| Built by | {{{builder}}} |
| Construction materials |
{{{materials}}} |
| Height | {{{height}}} |
| In use | {{{used}}} |
| Demolished | {{{demolished}}} |
| Current condition |
{{{condition}}} |
| Current owner |
{{{ownership}}} |
| Open to the public |
{{{open_to_public}}} |
| Controlled by | {{{controlledby}}} |
| Garrison | {{{garrison}}} |
| Current commander |
{{{current_commander}}} |
| Commanders | {{{commanders}}} |
| Occupants | {{{occupants}}} |
| Battles/wars | {{{battles}}} |
| Events | {{{events}}} |
| {{{image2}}} {{{caption2}}} | |
Usage
| Maginot Line | |
|---|---|
| Eastern France | |
The entrance to Ouvrage Schoenenbourg along the Maginot Line in Alsace. | |
| Type | Defensive line |
| Built | 1930–35 |
| Construction materials |
Concrete, steel |
| In use | 1935–69 |
| Controlled by | France |
| Battles/wars | Battle of France |
| Edzell Castle | |
|---|---|
| Near Edzell, Angus, Scotland grid reference Template:Oscoor | |
Edzell Castle and gardens | |
[[Image:Template:Location map Scotland|150px]]
<div style="position:absolute;z-index:200; top:Expression error: Unrecognized punctuation character "[".%; left:Expression error: Unrecognized punctuation character "[".%;height:0;width:0;margin:0;padding:0;"> {{{label}}}
Shown within Scotland
| |
| Type | Tower house and courtyard |
| Built | c.1520-1610 |
| Built by | David Lindsay, 9th Earl of Crawford |
| Construction materials |
Old Red Sandstone |
| In use | Until 1715 |
| Current condition |
Ruined |
| Current owner |
Earl of Dalhousie, managed by Historic Scotland |
| Open to the public |
Yes |
| Controlled by | Lindsays of Edzell |
A military structure infobox may be used to summarize information about a military structure or facility, such as a fortification or military base.
The infobox should be added using the {{Infobox Military Structure}} template, as shown below:
{{Infobox Military Structure
|name =
|partof =
|location =
|image =
|caption =
|map_type =
|latitude =
|longitude =
|map_size =
|map_caption =
|type =
|coordinates =
|code =
|built =
|builder =
|materials =
|height =
|used =
|demolished =
|condition =
|ownership =
|open_to_public =
|controlledby =
|garrison =
|current_commander =
|commanders =
|occupants =
|battles =
|events =
|image2 =
|caption2 =
}}
Note: When using parameters, avoid the ambiguous abbreviation "N/A", and instead use "unknown" or "none". All subjective or qualitative judgements and numerical quantities or statistics must be cited to a reliable source (see WP:MILMOS#CITE).
- name – the name of the structure or facility.
- partof – optional – the larger structure or complex the given structure is part of, if any. For proper grammar, it may be necessary to insert "the" before the name used here.
- location – the geographical location of the structure.
- image – optional – an image of the structure. The image must be given in the form [[Image:Example.jpg|300px]]; in particular, the thumb attribute must not be selected.
- caption – optional – the text to be placed below the image.
- map_type – optional – the base map to be used for the location map, e.g. "Scotland"; see {{location map}} for more details.
- latitude – optional – latitude for placing the marker on the location map, e.g. "56.81".
- longitude – optional – longitude for placing the marker on the location map, e.g. "-2.68".
- map_size – optional – width of the location map in pixels (px), e.g. "150"; defaults to: "220".
- map_caption – optional – caption displayed below the location map; defaults to "Shown within {{{map_type}}}", e.g. "Shown within Scotland".
- type – optional – the general type of structure ("Castle", "Fortress", "Bunker", "Military base", "Wall", "Defensive line", etc.).
- coordinates – optional – the location of the structure, given as a coordinate pair by using {{coord}} with display=inline,title.
- code – optional – the location or facility code, such as the ILC or ILK code.
- built – optional – the date when the structure was built (usually given in years).
- builder – optional – the person or group responsible for building the structure.
- materials – optional – the materials used to construct the structure.
- height – optional – where relevant (e.g. for towers), the height of the structure.
- used – optional – the period during which the structure was in active military use, usually given in years.
- demolished – optional – the date when the structure was demolished, if applicable.
- condition – optional – the current condition of the structure.
- ownership – optional – the current owner of the structure, if relevant.
- open_to_public – optional – whether the structure is currently open to the general public, if relevant; indicated by "yes" or "no".
- controlledby – optional – the country or other power controlling the structure. Multiple powers may be indicated together with the corresponding dates.
- garrison – optional – the military forces garrisoning the structure. Specific units may be indicated if known; general numbers should be given otherwise.
- current_commander – optional – for structures currently in military use, the current commanding officer.
- commanders – optional – any notable individuals that commanded the forces using this structure; the choice of which commanders qualify as notable is left to the editors of a particular article.
- occupants – optional – any notable occupants of the structure other than its commanders; as above, the choice of which occupants qualify as notable is left to the editors of a particular article.
- battles – optional – any notable battles (usually sieges) that took place in or are closely associated with the structure; as above, the choice of which battles qualify as notable is left to the article editors.
- events – optional – any notable non-battle events that took place in or are closely associated with the structure. As above, the choice of which events are notable is left to the article editors.
- image2 – optional – a second image of the structure. The image must be given in the form [[Image:Example.jpg|300px]]; in particular, the thumb attribute must not be selected.
- caption2 – optional – the text to be placed below the second image.
es:Plantilla:Infobox Estructura Militar fr:Modèle:Infobox structure militaire sl:Predloga:Infopolje Vojaška zgradba zh:Template:Infobox Military Structure