Template:War infobox: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(category for ranked wars) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
! colspan="2" class="infobox-header infobox-blue-bg" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} | ! colspan="2" class="infobox-header infobox-blue-bg" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} | ||
|- | |- | ||
{{#if:{{{partof|}}}| | |||
! colspan="2" class="infobox-blue-bg" {{!}} Part of: | |||
{{!}}- class="infobox-blue-bg center-row" | |||
{{!}} colspan="2" {{!}} [[{{{partof}}}]] | |||
{{!}}- | |||
}} | |||
! Started | ! Started | ||
| {{{start}}} | | {{{start}}} | ||
Line 8: | Line 14: | ||
! Ended | ! Ended | ||
{{!}} {{{end}}} | {{!}} {{{end}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
! Cause | ! Cause | ||
| {{{cause}}} | | | ||
{{{cause}}} | |||
|- | |- | ||
{{#if:{{{result|}}}| | {{#if:{{{result|}}}| | ||
! Result | ! Result | ||
{{!}} {{{result}}} | {{!}} | ||
{{{result}}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
Line 37: | Line 40: | ||
{{!}} {{{aka}}} | {{!}} {{{aka}}} | ||
}} | }} | ||
|- | |- | ||
! colspan="2" class="infobox-blue-bg" | Combatants | ! colspan="2" class="infobox-blue-bg" | Combatants | ||
{{#if:{{{combatants|}}}|{{#if:{{{side1|}}}{{{side2|}}}|{{error|mixed infobox usage (combatants)}}}} | {{#if:{{{combatants|}}}|{{#if:{{{side1|}}}{{{side2|}}}|{{error|mixed infobox usage (combatants)}}}} | ||
Line 51: | Line 54: | ||
}} | }} | ||
{{#if:{{{leadership1|}}}{{{leadership2|}}}| | {{#if:{{{leadership1|}}}{{{leadership2|}}}| | ||
{{!}}- | {{!}}- | ||
! colspan="2" class="infobox-blue-bg" {{!}} Commanders | ! colspan="2" class="infobox-blue-bg" {{!}} Commanders | ||
{{!}}- | {{!}}- | ||
Line 60: | Line 63: | ||
}} | }} | ||
{{#if:{{{ribbon|}}}| | {{#if:{{{ribbon|}}}| | ||
{{!}}- | {{!}}- | ||
! colspan="2" class="infobox-blue-bg" {{!}} Ribbon Awarded | ! colspan="2" class="infobox-blue-bg" {{!}} Ribbon Awarded | ||
{{!}}- class=" | {{!}}- class="infobox-images" | ||
{{!}} colspan="2" {{!}} [[File:{{{ribbon}}}|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} War Ribbon]] | {{!}} colspan="2" {{!}} [[File:{{{ribbon}}}|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} War Ribbon]] | ||
}} | |||
{{#if:{{{notes|}}}| | |||
{{!}}- | |||
! colspan="2" class="infobox-blue-bg" {{!}} Notes | |||
{{!}}- | |||
{{!}} colspan="2" {{!}} {{{notes}}} | |||
}} | }} | ||
|}{{if ns|main| | |}{{if ns|main| | ||
[[Category:{{#if:{{{game|}}}|Wars in {{{game}}}|Wars}}]] | [[Category:{{#if:{{{game|}}}|{{#ifexpr:{{#ifeq:{{{game|}}}|Torn|1|0}} and {{#ifeq:{{#sub:{{PAGENAME}}|-10}}|Ranked War|1|0}}|Ranked wars|Wars}} in {{{game}}}|Wars}}]] | ||
}}</includeonly><noinclude>{{documentation}}</noinclude> | }}</includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 11:21, 26 June 2023
Documentation [edit]
This infobox is for conflicts between two or more entities. See also
{{flaglink}}
which can be used for the combatants and leaders (use format=small [the default], or format=tag for Torn).
Parameters
- game - the game in which the war took place.
- name - (optional) the name of the war. Defaults to the page name.
- partof - if applicable, the larger conflict from which this one branched off.
- start - the date the war started.
- end - if applicable, the date the war ended.
- cause - the reason the war started.
- result - if the war has ended, a brief summary of the results of the war.
- precededby - (optional) the war that preceded this one in the relevant timeline, if applicable.
- succeededby - (optional) the war that succeeded this one in the relevant timeline, if applicable.
- combatants - only use this if there are not exactly two sides in the war. This is a freeform field.
- side1 and side2 - if not using combatants, these are the two sides of the war. These are also freeform fields.
- leadership1 and leadership2 - (optional) list the commanders during the combat.
- aka - (optional) other names by which the war is known.
- ribbon - (optional) upload the war ribbon and use just the name and file extension, eg: Copyright War ribbon.jpg
- notes - (optional) if there are any specific notes (eg: one combatant is a member of two treaties and both are fighting in the same war, they can only be listed once).
Skeleton
{{War infobox |game = |start = |end = |cause = |result = |aka = |precededby = |succeededby = |side1 = |side2 = |leadership1 = |leadership2 = |ribbon = |notes = }}
The above documentation is transcluded from Template:War infobox/doc.