Template:War: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(21 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <templatestyles src=" |
+ | <templatestyles src="War/styles.css" /> |
<includeonly>{{Infobox/begin}} |
<includeonly>{{Infobox/begin}} |
||
− | {{Infobox/Header|title={{{ |
+ | {{Infobox/Header|title={{#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}|subtitle={{#if:{{{greater_conflict|}}}|{{{greater_conflict|}}}|}}}} |
− | {{Infobox/Illustration|file=[[File: |
+ | {{Infobox/Illustration|file={{#if:{{{image|}}}|[[File:{{{image}}}]]|}}|caption={{{image_desc|}}}}} |
− | {{Infobox/Item|key= |
+ | {{Infobox/Vertical Item|key=Period|value={{#if:{{{start_date|}}}|{{#if:{{{end_date|}}}|{{{start_date}}} - {{{end_date}}}}}}}}} |
− | {{Infobox/Item|key=Location|value={{{location}}}}} |
+ | {{Infobox/Item|key=Location|value={{{location|}}}}} |
{{Infobox/Item|key=Result|value={{{treaty/outcome}}}}} |
{{Infobox/Item|key=Result|value={{{treaty/outcome}}}}} |
||
− | {{Infobox/Item|key=Territorial Changes|value={{{changes}}}}} |
+ | {{Infobox/Item|key=Territorial Changes|value={{{changes|}}}}} |
{{Infobox/SectionHeader|section=Belligerents}} |
{{Infobox/SectionHeader|section=Belligerents}} |
||
− | {{Infobox/Column| |
+ | {{Infobox/Column|leftValue={{#if:{{{force_1_header|}}}|'''{{{force_1_header|}}}'''|}}|rightValue={{#if:{{{force_2_header|}}}|'''{{{force_2_header|}}}'''|}}}} |
+ | {{#if:{{{force_1_list|}}}{{{force_2_list|}}}|{{Infobox/Bar}}|}} |
||
+ | {{Infobox/Column|leftValue={{{force_1_list|}}}|rightValue={{{force_2_list|}}}}} |
||
{{Infobox/SectionHeader|section=Strength}} |
{{Infobox/SectionHeader|section=Strength}} |
||
− | {{Infobox/Column| |
+ | {{Infobox/Column|leftValue={{{force_1_strength|}}}|rightValue={{{force_2_strength|}}}}} |
{{Infobox/SectionHeader|section=Casualties and Losses}} |
{{Infobox/SectionHeader|section=Casualties and Losses}} |
||
− | {{Infobox/Column| |
+ | {{Infobox/Column|leftValue={{{force_1_losses|}}}|rightValue={{{force_2_losses|}}}}} |
{{Infobox/end}}</includeonly> |
{{Infobox/end}}</includeonly> |
||
<noinclude> |
<noinclude> |
||
− | {{ |
+ | {{War}} |
+ | |||
− | {{Infobox/Header|title={{{name}}}|subtitle={{{greater_conflict}}}}} |
||
+ | {{War |
||
− | {{Infobox/Illustration|file=[[File:KP dark.png]]|caption={{{mapdesc}}}}} |
||
+ | |title = {{PAGENAME}}|greater_conflict = [greater_conflict] |
||
− | {{Infobox/Item|key=Date|value={{{date}}}}} |
||
+ | |image = KP dark.png|image_desc = [description] |
||
− | {{Infobox/Item|key=Location|value={{{location}}}}} |
||
+ | |start_date = [start_date]|end_date = [end_date] |
||
− | {{Infobox/Item|key=Result|value={{{treaty/outcome}}}}} |
||
+ | |location = [location] |
||
− | {{Infobox/Item|key=Territorial Changes|value={{{changes}}}}} |
||
+ | |treaty/outcome = [treaty/outcome] |
||
− | {{Infobox/SectionHeader|section=Belligerents}} |
||
+ | |changes = [changes] |
||
− | {{Infobox/Column|leftCap={{{force_1_caption}}}|rightCap={{[force_2_caption}}}|leftBody={{{force_1_list}}}|rightBody={{{force_2_list}}}}} |
||
+ | |force_1_header = [force_1_header]|force_2_header = [force_2_header] |
||
− | {{Infobox/SectionHeader|section=Strength}} |
||
+ | |force_1_list = [force_1_list]|force_2_list = [force_2_list] |
||
− | {{Infobox/Column|leftCap={{{left caption}}}|rightCap={{{right caption}}}|leftBody={{{left text body}}}|rightBody={{{right text body}}}}} |
||
+ | |force_1_strength = [force_1_strength]|force_2_strength = [force_2_strength] |
||
− | {{Infobox/SectionHeader|section=Casualties and Losses}} |
||
+ | |force_1_losses = [force_1_losses]|force_2_losses = [force_2_losses] |
||
− | {{Infobox/Column|leftCap={{{left caption}}}|rightCap={{{right caption}}}|leftBody={{{left text body}}}|rightBody={{{right text body}}}}} |
||
+ | }} |
||
− | {{Infobox/end}} |
||
[[Category:Infoboxes]] |
[[Category:Infoboxes]] |
||
Line 38: | Line 40: | ||
{ |
{ |
||
"params": { |
"params": { |
||
− | " |
+ | "title": {}, |
+ | "greater_conflict": {}, |
||
− | "label": "Company Name", |
||
− | + | "illustration": {}, |
|
− | + | "illustration_desc": {}, |
|
− | }, |
+ | "start_date": {}, |
− | " |
+ | "end_date": {}, |
− | + | "location": {}, |
|
− | + | "treaty/outcome": {}, |
|
− | }, |
+ | "changes": {}, |
− | " |
+ | "force_1_header": { |
− | "label": " |
+ | "label": "Force A Name" |
− | "type": "wiki-file-name", |
||
− | "required": true |
||
− | }, |
||
− | "logodesc": { |
||
− | "label": "Logo description", |
||
− | "description": "A short description of the logos features", |
||
− | "type": "string", |
||
− | "suggested": true |
||
− | }, |
||
− | "industry": { |
||
− | "label": "Industry", |
||
− | "description": "Industry the company specialises in", |
||
− | "type": "string", |
||
− | "required": true |
||
− | }, |
||
− | "founded": { |
||
− | "label": "Year Founded", |
||
− | "type": "string" |
||
}, |
}, |
||
− | " |
+ | "force_2_header": { |
− | "label": " |
+ | "label": "Force B Name" |
− | "type": "string" |
||
}, |
}, |
||
− | " |
+ | "force_1_list": { |
− | "label": " |
+ | "label": "Force A List" |
− | "type": "string", |
||
− | "required": true |
||
}, |
}, |
||
− | " |
+ | "force_2_list": { |
− | "label": " |
+ | "label": "Force B List" |
− | "type": "string", |
||
− | "suggested": true |
||
}, |
}, |
||
− | " |
+ | "force_1_strength": {}, |
+ | "force_2_strength": {}, |
||
− | "label": "Subsidiary Groups", |
||
+ | "force_1_losses": {}, |
||
− | "type": "string" |
||
+ | "force_2_losses": {} |
||
− | } |
||
− | } |
+ | } |
− | "description": "Infobox for Corporations", |
||
− | "format": "block", |
||
− | "paramOrder": [ |
||
− | "name", |
||
− | "localized_name", |
||
− | "logo", |
||
− | "logodesc", |
||
− | "industry", |
||
− | "headquarters", |
||
− | "area_served", |
||
− | "founded", |
||
− | "ceo", |
||
− | "subsidiaries" |
||
− | ] |
||
} |
} |
||
</templatedata> |
</templatedata> |
Latest revision as of 12:14, 28 October 2022
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 |
illustration | illustration | no description | Unknown | optional |
illustration_desc | illustration_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 |