Template:Infobox military operation/doc: Difference between revisions

Jump to navigation Jump to search
Undid revision 1176943521 by EnderWatcher95 (talk) this is the documentation page of a template
m (1 revision imported)
(Undid revision 1176943521 by EnderWatcher95 (talk) this is the documentation page of a template)
Line 8: Line 8:
=== Usage ===
=== Usage ===
{{Parameter names example|_template = Infobox military operation |title |name |partof |conflict |image |image_size |image_upright |alt |caption |coordinates = {{coord|0|0}} |map_type=Earth |map_size= |map_label |map_caption |scope |type |location |coordinates |planned |planned_by |commanded_by |target |objective |date |time |time-begin |time-end |timezone |executed_by |outcome |casualties |fatalities |injuries}}
{{Parameter names example|_template = Infobox military operation |title |name |partof |conflict |image |image_size |image_upright |alt |caption |coordinates = {{coord|0|0}} |map_type=Earth |map_size= |map_label |map_caption |scope |type |location |coordinates |planned |planned_by |commanded_by |target |objective |date |time |time-begin |time-end |timezone |executed_by |outcome |casualties |fatalities |injuries}}
<pre style="overflow:auto;">
<syntaxhighlight lang="wikitext" style="overflow:auto;">
{{Infobox military operation
{{Infobox military operation
  |name          =  
  |name          =  
  |partof        =  
  |partof        =  
|subtitle      =
  |image        =  
  |image        =  
  |image_upright =  
  |image_upright =  
Line 19: Line 20:
  |type          =  
  |type          =  
  |location      =  
  |location      =  
|location2    = <!-- 2 through 10 for more locations -->
  |coordinates  =  
  |coordinates  =  
|coordinates2  = <!-- 2 through 10 for more locations -->
  |map_type      =  
  |map_type      =  
  |map_size      =  
  |map_size      =  
  |map_caption  =  
  |map_caption  =  
  |map_label    =  
  |map_label    =  
|map_label2    = <!-- 2 through 10 for more locations -->
  |planned      =  
  |planned      =  
  |planned_by    =  
  |planned_by    =  
Line 39: Line 43:
  |fatalities    =  
  |fatalities    =  
  |injuries      =  
  |injuries      =  
}}</pre>
}}</syntaxhighlight>


=== Example ===
=== Example ===
Line 50: Line 54:
  |executed_by = [[Army Group South]]
  |executed_by = [[Army Group South]]
}}
}}
<pre style="overflow:auto;">
<syntaxhighlight lang="wikitext" style="overflow:auto;">
{{Infobox military operation
{{Infobox military operation
  |name        = Case Blue
  |name        = Case Blue
Line 58: Line 62:
  |executed    = Began {{start date|1942|06|28|df=y}}
  |executed    = Began {{start date|1942|06|28|df=y}}
  |executed_by = [[Army Group South]]
  |executed_by = [[Army Group South]]
}}</pre>
}}</syntaxhighlight>


=== Parameters ===
=== Parameters ===
Line 64: Line 68:


* '''name''' – the name of the operational plan; names in multiple languages may be provided.  
* '''name''' – the name of the operational plan; names in multiple languages may be provided.  
* '''subtitle''' – alternative name of the conflict being described.
* '''partof''' – ''optional'' – the larger conflict containing the event described in the article.
* '''partof''' – ''optional'' – the larger conflict containing the event described in the article.
* '''image''' – ''optional'' – an image for the warbox.  Given in the form <code>File:Example.jpg</code>
* '''image''' – ''optional'' – an image for the warbox.  Given in the form <code>File:Example.jpg</code>
Line 70: Line 75:
* '''caption''' – ''optional'' – the text to be placed below the image.
* '''caption''' – ''optional'' – the text to be placed below the image.
* '''location''' – ''optional'' – the location of the operation.
* '''location''' – ''optional'' – the location of the operation.
* '''coordinates''' – ''optional'' – the coordinates for the location above, given as {{tl|coord}} with ''|display=inline,title''. Used to display the geographic location of the conflict and the location on a map added with the <code>map_type</code> parameter.
* '''coordinates''' – ''optional'' – the coordinates for the location above, given as {{tl|coord}} with ''|display=inline,title''. Used to display the geographic location of the conflict and the location on a map added with the <code>map_type</code> parameter. If coordinates for several locations are given, consider if hany shall have the title display.
* '''map_type''' &ndash; ''optional'' &ndash; the base map to be used for the location map, e.g. "Scotland"; see {{tl|location map}} for more details.
* '''map_type''' &ndash; ''optional'' &ndash; the base map to be used for the location map, e.g. "Scotland"; see {{tl|location map}} for more details.
* '''map_size''' &ndash; ''optional'' &ndash; width of the location map in pixels (px), e.g. "150"; defaults to: "220".   
* '''map_size''' &ndash; ''optional'' &ndash; width of the location map in pixels (px), e.g. "150"; defaults to: "220".   
Line 94: Line 99:
=== Microformat ===
=== Microformat ===
{{UF-hcal}}
{{UF-hcal}}
=== TemplateData ===
{{collapse top|title=[[Wikipedia:TemplateData|TemplateData]] for this template used by [[mw:Extension:TemplateWizard|TemplateWizard]], [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
{{TemplateData header|noheader=y}}
<templatedata>
{
    "description": "This infobox may be used to describe a particular planned or executed military operation or attack.",
"format": "{{_\n| _____________ = _\n}}\n",
"params": {
"name": {
"label": "Name",
"description": "The name of the military operation",
"type": "string",
"suggested": true
}
},
"paramOrder": [
"name"
]
}
</templatedata>
{{collapse bottom}}


=== See also ===
=== See also ===
Line 100: Line 127:
* {{tl|Infobox military conflict}}<noinclude>
* {{tl|Infobox military conflict}}<noinclude>
[[Category:WikiProject Military history template instructions|Military operation]]
[[Category:WikiProject Military history template instructions|Military operation]]
</noinclude><includeonly>{{#ifeq:{{{noheader|}}}|yes||
</noinclude>
<includeonly>
{{Sandbox other||{{#ifeq:{{{noheader|}}}|yes||
<!-- Categories below this line; interwikis at Wikidata -->
 
[[Category:Templates with coordinates fields]]
[[Category:Military auxiliary infobox templates|Military operation]]
[[Category:Military auxiliary infobox templates|Military operation]]
[[Category:Templates that add a tracking category]]
[[Category:Templates that add a tracking category|{{PAGENAME}}]]
}}</includeonly>
}}}}</includeonly>
Anonymous user

Navigation menu