Template:War: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image1"> <caption source="caption1"/> </image> <data source="date">..." |
mNo edit summary |
||
| (28 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<templatestyles src="War/styles.css" /> |
|||
<infobox> |
|||
<title source="title1"> |
|||
<includeonly>{{Infobox/begin}} |
|||
<default>{{PAGENAME}}</default> |
|||
{{Infobox/Header|title={{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}|subtitle={{#if:{{{greater_conflict|}}}|{{{greater_conflict|}}}|}}}} |
|||
</title> |
|||
{{Infobox/Illustration|file={{#if:{{{image|}}}|[[File:{{{image}}}]]|}}|caption={{{image_desc|}}}}} |
|||
<image source="image1"> |
|||
{{Infobox/Vertical Item|key=Period|value={{#if:{{{start_date|}}}|{{#if:{{{end_date|}}}|{{{start_date}}} - {{{end_date}}}}}}}}} |
|||
<caption source="caption1"/> |
|||
{{Infobox/Item|key=Location|value={{{location|}}}}} |
|||
</image> |
|||
{{Infobox/Item|key=Result|value={{{treaty/outcome}}}}} |
|||
<data source="date"> |
|||
{{Infobox/Item|key=Territorial Changes|value={{{changes|}}}}} |
|||
<label>Date</label> |
|||
{{Infobox/SectionHeader|section=Belligerents}} |
|||
</data> |
|||
{{Infobox/Column|leftValue={{#if:{{{force_1_header|}}}|'''{{{force_1_header|}}}'''|}}|rightValue={{#if:{{{force_2_header|}}}|'''{{{force_2_header|}}}'''|}}}} |
|||
<data source="location"> |
|||
{{#if:{{{force_1_list|}}}{{{force_2_list|}}}|{{Infobox/Bar}}|}} |
|||
<label>Location</label> |
|||
{{Infobox/Column|leftValue={{{force_1_list|}}}|rightValue={{{force_2_list|}}}}} |
|||
</data> |
|||
{{Infobox/SectionHeader|section=Strength}} |
|||
<data source="outcome"> |
|||
{{Infobox/Column|leftValue={{{force_1_strength|}}}|rightValue={{{force_2_strength|}}}}} |
|||
<label>Outcome</label> |
|||
{{Infobox/SectionHeader|section=Casualties and Losses}} |
|||
</data> |
|||
{{Infobox/Column|leftValue={{{force_1_losses|}}}|rightValue={{{force_2_losses|}}}}} |
|||
<group layout="horizontal"> |
|||
{{Infobox/end}}</includeonly> |
|||
<header>Belligerents</header> |
|||
<data source="side a"/> |
|||
<data source="sideb" /> |
|||
</group> |
|||
<group layout="horizontal"> |
|||
<header>Units involved</header> |
|||
<data source="units from side a"/> |
|||
<data source="units from side b"/> |
|||
</group> |
|||
<group layout="horizontal"> |
|||
<header>Strength</header> |
|||
<data source="sidea strength"/> |
|||
<data source="sideb strength"/> |
|||
</group> |
|||
<group layout="horizontal"> |
|||
<header>Casualties and losses</header> |
|||
<data source="sidea loss"/> |
|||
<data source="sideb loss"/> |
|||
</group> |
|||
</infobox> |
|||
<noinclude> |
<noinclude> |
||
{{War}} |
|||
Example usage:<pre> |
|||
{{Battle (fixed) |
|||
{{War |
|||
|title1=Example |
|||
|title = {{PAGENAME}}|greater_conflict = [greater_conflict] |
|||
|image1=Example |
|||
|image = KP dark.png|image_desc = [description] |
|||
|caption1=Example |
|||
|start_date = [start_date]|end_date = [end_date] |
|||
|date=Example |
|||
|location= |
|location = [location] |
||
|outcome= |
|treaty/outcome = [treaty/outcome] |
||
|changes = [changes] |
|||
|row4=Example |
|||
|force_1_header = [force_1_header]|force_2_header = [force_2_header] |
|||
|row5=Example |
|||
|force_1_list = [force_1_list]|force_2_list = [force_2_list] |
|||
|row6=Example |
|||
|force_1_strength = [force_1_strength]|force_2_strength = [force_2_strength] |
|||
|row7=Example |
|||
|force_1_losses = [force_1_losses]|force_2_losses = [force_2_losses] |
|||
}} |
}} |
||
</pre> |
|||
[[Category:Infoboxes]] |
|||
[[Category:Templates]] |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"title": {}, |
|||
"greater_conflict": {}, |
|||
"image": {}, |
|||
"image_desc": {}, |
|||
"start_date": {}, |
|||
"end_date": {}, |
|||
"location": {}, |
|||
"treaty/outcome": {}, |
|||
"changes": {}, |
|||
"force_1_header": { |
|||
"label": "Force A Name" |
|||
}, |
|||
"force_2_header": { |
|||
"label": "Force B Name" |
|||
}, |
|||
"force_1_list": { |
|||
"label": "Force A List" |
|||
}, |
|||
"force_2_list": { |
|||
"label": "Force B List" |
|||
}, |
|||
"force_1_strength": {}, |
|||
"force_2_strength": {}, |
|||
"force_1_losses": {}, |
|||
"force_2_losses": {} |
|||
} |
|||
} |
|||
</templatedata> |
|||
</noinclude> |
</noinclude> |
||
Latest revision as of 00:32, 18 January 2025
|
War
|
|||||
|---|---|---|---|---|---|
| Result | {{{treaty/outcome}}} | ||||
| Belligerents | |||||
| Strength | |||||
| Casualties and Losses | |||||
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| title | title | no description | Unknown | optional |
| greater_conflict | greater_conflict | no description | Unknown | optional |
| image | image | no description | Unknown | optional |
| image_desc | image_desc | no description | Unknown | optional |
| start_date | start_date | no description | Unknown | optional |
| end_date | end_date | no description | Unknown | optional |
| location | location | no description | Unknown | optional |
| treaty/outcome | treaty/outcome | no description | Unknown | optional |
| changes | changes | no description | Unknown | optional |
| Force A Name | force_1_header | no description | Unknown | optional |
| Force B Name | force_2_header | no description | Unknown | optional |
| Force A List | force_1_list | no description | Unknown | optional |
| Force B List | force_2_list | no description | Unknown | optional |
| force_1_strength | force_1_strength | no description | Unknown | optional |
| force_2_strength | force_2_strength | no description | Unknown | optional |
| force_1_losses | force_1_losses | no description | Unknown | optional |
| force_2_losses | force_2_losses | no description | Unknown | optional |
