Template:Infobox military operation: Difference between revisions

Jump to navigation Jump to search
imported>Hebsen
(Added support for multiple locations. If several coordinates and locations are given, then there will be more marks on the map, and there will be more locations in the location list (with coordinates after each location). See 2020 Iranian attack on U.S. forces in Iraq for a situation where this was relevant.)
imported>Phuzion
(Added subtitle to check for unknown parameters)
 
(3 intermediate revisions by 3 users not shown)
Line 7: Line 7:
|above = {{if empty|{{{title|}}}|{{{name|}}}|{{PAGENAMEBASE}}}}
|above = {{if empty|{{{title|}}}|{{{name|}}}|{{PAGENAMEBASE}}}}
|subheaderstyle = {{WPMILHIST Infobox style|sub_header_raw}}
|subheaderstyle = {{WPMILHIST Infobox style|sub_header_raw}}
|subheader = {{#if:{{{partof|}}}{{{conflict|}}} | Part of {{if empty|{{{conflict|}}}|{{{partof|}}}}} }}
|subheader = {{br separated entries|{{{subtitle|}}}|{{#if:{{{partof|}}}{{{conflict|}}}|Part of {{if empty|{{{conflict|}}}|{{{partof|}}}}} }}}}
|labelstyle = padding-right: 1em;
|labelstyle = padding-right: 1em;
|imagestyle = {{WPMILHIST Infobox style|image_box_raw}}
|imagestyle = {{WPMILHIST Infobox style|image_box_raw}}
Line 21: Line 21:
  |2 = {{{coordinates|}}}
  |2 = {{{coordinates|}}}
  |3 = {{#if:{{{location2|}}}|<div style="display:inline;" class="location">{{{location2|}}}</div>}}
  |3 = {{#if:{{{location2|}}}|<div style="display:inline;" class="location">{{{location2|}}}</div>}}
  |4 = {{#if:{{{location2|}}}|{{{coordinates2|}}}</div>}}
  |4 = {{#if:{{{location2|}}}|{{{coordinates2|}}}}}
  |5 = {{#if:{{{location3|}}}|<div style="display:inline;" class="location">{{{location3|}}}</div>}}
  |5 = {{#if:{{{location3|}}}|<div style="display:inline;" class="location">{{{location3|}}}</div>}}
  |6 = {{#if:{{{location3|}}}|{{{coordinates3|}}}</div>}}
  |6 = {{#if:{{{location3|}}}|{{{coordinates3|}}}}}
  |7 = {{#if:{{{location4|}}}|<div style="display:inline;" class="location">{{{location4|}}}</div>}}
  |7 = {{#if:{{{location4|}}}|<div style="display:inline;" class="location">{{{location4|}}}</div>}}
  |8 = {{#if:{{{location4|}}}|{{{coordinates4|}}}</div>}}
  |8 = {{#if:{{{location4|}}}|{{{coordinates4|}}}}}
  |9 = {{#if:{{{location5|}}}|<div style="display:inline;" class="location">{{{location5|}}}</div>}}
  |9 = {{#if:{{{location5|}}}|<div style="display:inline;" class="location">{{{location5|}}}</div>}}
  |10= {{#if:{{{location5|}}}|{{{coordinates5|}}}</div>}}
  |10= {{#if:{{{location5|}}}|{{{coordinates5|}}}}}
  |11= {{#if:{{{location6|}}}|<div style="display:inline;" class="location">{{{location6|}}}</div>}}
  |11= {{#if:{{{location6|}}}|<div style="display:inline;" class="location">{{{location6|}}}</div>}}
  |12= {{#if:{{{location6|}}}|{{{coordinates6|}}}</div>}}
  |12= {{#if:{{{location6|}}}|{{{coordinates6|}}}}}
  |13= {{#if:{{{location7|}}}|<div style="display:inline;" class="location">{{{location7|}}}</div>}}
  |13= {{#if:{{{location7|}}}|<div style="display:inline;" class="location">{{{location7|}}}</div>}}
  |14= {{#if:{{{location7|}}}|{{{coordinates7|}}}</div>}}
  |14= {{#if:{{{location7|}}}|{{{coordinates7|}}}}}
  |15= {{#if:{{{location8|}}}|<div style="display:inline;" class="location">{{{location8|}}}</div>}}
  |15= {{#if:{{{location8|}}}|<div style="display:inline;" class="location">{{{location8|}}}</div>}}
  |16= {{#if:{{{location8|}}}|{{{coordinates8|}}}</div>}}
  |16= {{#if:{{{location8|}}}|{{{coordinates8|}}}}}
  |17= {{#if:{{{location9|}}}|<div style="display:inline;" class="location">{{{location9|}}}</div>}}
  |17= {{#if:{{{location9|}}}|<div style="display:inline;" class="location">{{{location9|}}}</div>}}
  |18= {{#if:{{{location9|}}}|{{{coordinates9|}}}</div>}}
  |18= {{#if:{{{location9|}}}|{{{coordinates9|}}}}}
  |19= {{#if:{{{location10|}}}|<div style="display:inline;" class="location">{{{location10|}}}</div>}}
  |19= {{#if:{{{location10|}}}|<div style="display:inline;" class="location">{{{location10|}}}</div>}}
  |20= {{#if:{{{location10|}}}|{{{coordinates10|}}}</div>}}
  |20= {{#if:{{{location10|}}}|{{{coordinates10|}}}}}
}}
}}


Line 89: Line 89:
}}
}}


}}{{{campaignbox|}}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox military operation with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox military operation]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | campaignbox | caption | casualties | commanded_by | conflict | coordinates | date | executed | executed_by | fatalities | image | image_size | image_upright | injuries | instigator | location | map_caption | map_coord | map_label | map_size | map_type | name | objective | outcome | partof | planned | planned_by | scope | target | time | time-begin | time-end | timezone | title | type | coordinates2 | coordinates3 | coordinates4 | coordinates5 | coordinates6 | coordinates7 | coordinates8 | coordinates9 | coordinates10 | map_label2 | map_label3 | map_label4 | map_label5 | map_label6 | map_label7 | map_label8 | map_label9 | map_label10 | location2 | location3 | location4 | location5 | location6 | location7 | location8 | location9 | location10 }}<noinclude>
}}{{{campaignbox|}}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox military operation with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox military operation]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | campaignbox | caption | casualties | commanded_by | conflict | coordinates | date | executed | executed_by | fatalities | image | image_size | image_upright | injuries | instigator | location | map_caption | map_coord | map_label | map_size | map_type | name | objective | outcome | partof | planned | planned_by | scope | subtitle | target | time | time-begin | time-end | timezone | title | type | coordinates2 | coordinates3 | coordinates4 | coordinates5 | coordinates6 | coordinates7 | coordinates8 | coordinates9 | coordinates10 | map_label2 | map_label3 | map_label4 | map_label5 | map_label6 | map_label7 | map_label8 | map_label9 | map_label10 | location2 | location3 | location4 | location5 | location6 | location7 | location8 | location9 | location10 }}<noinclude>
{{template doc}}
{{template doc}}
</noinclude>
</noinclude>

Latest revision as of 15:43, 15 February 2023

Infobox military operation

Template:Template doc