Difference between revisions of "Template:InfoBoxConflict"
m |
|||
(38 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <includeonly>{{#if:{{{campaignbox|}}} | |
− | + | |<table style="float:right; clear:right; background: transparent; margin: 0; padding: 0;"> | |
− | {{#if:{{{ | + | <tr><td> |
− | |||
− | |||
}} | }} | ||
− | + | <table class="infobox"> | |
− | + | <tr class="infoboxrow"> | |
− | + | <th style="text-align: center;" class="summary" colspan="{{#if:{{{faction3|}}}|3|2}}" class="infoboxheading" >{{{conflict|{{PAGENAME}}}}}</th> | |
− | {{#if:{{{partof|}}}| | + | </tr> |
− | {{ | + | {{#if:{{{partof|}}} |
− | {{ | + | |<tr> |
+ | <td style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" >Part of {{{partof}}}</td> | ||
+ | </tr> | ||
}} | }} | ||
− | |- | + | <!--{{#if:{{{image|}}} |
− | + | |<tr> | |
− | | | + | <td style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" > [[Image:{{{image}}}|280px]]{{#if:{{{caption|}}}|<br />{{{caption}}}}}</td> |
− | + | </tr> | |
− | + | }}--> | |
− | | | + | <tr class="infoboxrow"> |
− | | | + | <td colspan="{{#if:{{{faction3|}}}|3|2}}"> |
− | | {{{place|}}} | + | <table style="width:100%; margin:0; padding:0; border:0"> |
− | | | + | {{#if:{{{date|}}} |
− | | | + | |<tr class="infoboxrow"> |
− | | {{{ | + | <th style="border:1px solid #A1AFBF;">Start Date</th> |
− | |- | + | <td >{{{date}}}</td> |
− | + | </tr> | |
− | |- | + | }} |
− | + | {{#if:{{{enddate|}}} | |
− | + | |<tr class="infoboxrow"> | |
− | |- | + | <th style="border:1px solid #A1AFBF;">End Date</th> |
− | | | + | <td >{{{enddate}}}</td> |
− | | {{{ | + | </tr> |
− | | | + | }} |
− | + | {{#if:{{{place|}}} | |
− | |- | + | |<tr class="infoboxrow"> |
− | | | + | <th style="border:1px solid #A1AFBF;">Location</th> |
− | | {{{commander2|}}} | + | <td><span class="location">{{{place}}}</span></td> |
− | |- | + | </tr> |
− | | | + | }} |
− | | {{{ | + | {{#if:{{{planet|}}} |
− | |- | + | |<tr class="infoboxrow"> |
− | {{#if:{{{ | + | <th style="border:1px solid #A1AFBF;">Planet</th> |
− | + | <td >{{{planet}}}</td> | |
− | {{ | + | </tr> |
− | {{ | + | }} |
+ | {{#if:{{{result|}}} | ||
+ | |<tr class="infoboxrow"> | ||
+ | <th style="border:1px solid #A1AFBF;">Result</th> | ||
+ | <td >{{{result}}}</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if:{{{territory|}}} | ||
+ | |<tr class="infoboxrow"> | ||
+ | <th style="border:1px solid #A1AFBF;">Territorial<br />changes</th> | ||
+ | <td >{{{territory}}}</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | </table> | ||
+ | </td> | ||
+ | </tr> | ||
+ | {{#if:{{{faction1|}}}{{{faction2|}}}{{{faction3|}}} | ||
+ | |<tr class="infoboxrow"> | ||
+ | <th style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" class="infoboxheading">Factions</th> | ||
+ | </tr> | ||
+ | <tr class="infoboxrow"> | ||
+ | <td {{#if:{{{faction2|}}}|{{#if:{{{faction3|}}}|style="width:33%;border:1px solid #A1AFBF;"|style="width:50%;border:1px solid #A1AFBF;"}}|colspan="2"}}>{{{faction1|}}}</td> | ||
+ | {{#if:{{{faction2|}}} | ||
+ | |<td {{#if:{{{faction3|}}}|style="width:33%; padding-left:0.25em"|style="width:50%; padding-left:0.25em"}}>{{{faction2}}}</td> | ||
+ | }} | ||
+ | {{#if:{{{faction3|}}} | ||
+ | |<td style="width:33%; padding-left:0.25em; border-left:1px solid #A1AFBF;">{{{faction3}}}</td> | ||
+ | }} | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if:{{{faction1d|}}}{{{faction2d|}}}{{{faction3d|}}} | ||
+ | |<tr class="infoboxrow"> | ||
+ | <td {{#if:{{{faction2d|}}}|{{#if:{{{faction3d|}}}|style="width:33%;border:1px solid #A1AFBF; border:1px solid #A1AFBF;"|style="width:50%;border:1px solid #A1AFBF; border:1px solid #A1AFBF;"}}|colspan="2"}}>{{{faction1d|}}}</td> | ||
+ | {{#if:{{{faction2d|}}} | ||
+ | |<td {{#if:{{{faction3d|}}}|style="width:33%; padding-left:0.25em; border:1px solid #A1AFBF;"|style="width:50%; padding-left:0.25em; border:1px solid #A1AFBF;"}}>{{{faction2d}}}</td> | ||
+ | }} | ||
+ | {{#if:{{{faction3d|}}} | ||
+ | |<td style="width:33%; padding-left:0.25em; border-left:1px solid #A1AFBF; border:1px solid #A1AFBF;">{{{faction3d}}}</td> | ||
+ | }} | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if:{{{commander1|}}}{{{commander2|}}}{{{commander3|}}} | ||
+ | |<tr class="infoboxrow"> | ||
+ | <th style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" class="infoboxheading">Commanders and leaders</th> | ||
+ | </tr> | ||
+ | <tr class="infoboxrow"> | ||
+ | <td {{#if:{{{faction3|}}}|style="width:33%;border:1px solid #A1AFBF;"|style="width:50%;border:1px solid #A1AFBF;"}}>{{{commander1|}}}</td> | ||
+ | <td {{#if:{{{faction3|}}}|style="width:33%; padding-left:0.25em"|style="width:50%; padding-left:0.25em"}}>{{{commander2|}}}</td> | ||
+ | {{#if:{{{faction3|}}} | ||
+ | |<td style="width:33%; padding-left:0.25em; border-left:1px solid #A1AFBF;">{{{commander3|}}}</td> | ||
+ | }} | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if:{{{forces1|}}}{{{forces2|}}}{{{forces3|}}} | ||
+ | |<tr class="infoboxrow"> | ||
+ | <th style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" class="infoboxheading">Forces involved</th> | ||
+ | </tr> | ||
+ | <tr class="infoboxrow"> | ||
+ | <td {{#if:{{{faction3|}}}|style="width:33%;border:1px solid #A1AFBF;"|style="width:50%;border:1px solid #A1AFBF;"}}>{{{forces1|}}}</td> | ||
+ | <td {{#if:{{{faction3|}}}|style="width:33%; padding-left:0.25em"|style="width:50%; padding-left:0.25em"}}>{{{forces2|}}}</td> | ||
+ | {{#if:{{{faction3|}}} | ||
+ | |<td style="width:33%; padding-left:0.25em; border-left:1px solid #A1AFBF;">{{{forces3|}}}</td> | ||
+ | }} | ||
+ | </tr> | ||
}} | }} | ||
− | |||
− | |||
− | |||
{{#if:{{{environment|}}}| | {{#if:{{{environment|}}}| | ||
− | {{ | + | <tr class="infoboxrow"> |
− | {{ | + | <th style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" style="border:1px solid #A1AFBF;" class="infoboxheading"> Environment </th> |
+ | </tr> | ||
+ | <tr class="infoboxrow"> | ||
+ | <td colspan="{{#if:{{{faction3|}}}|3|2}}"> {{{environment|}}}</td> | ||
+ | </tr> | ||
}} | }} | ||
− | + | ||
{{#if:{{{conditions|}}}| | {{#if:{{{conditions|}}}| | ||
− | {{ | + | <tr class="infoboxrow"> |
− | {{ | + | <th style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" style="border:1px solid #A1AFBF;" class="infoboxheading"> Conditions </th> |
+ | </tr> | ||
+ | <tr class="infoboxrow"> | ||
+ | <td colspan="{{#if:{{{faction3|}}}|3|2}}"> {{{conditions|}}}</td> | ||
+ | </tr> | ||
}} | }} | ||
− | + | {{#if:{{{campaignbox|}}} | |
− | + | |</table> | |
− | + | </tr> | |
− | | | + | <tr> |
− | + | <td > | |
− | < | + | {{{campaignbox|}}} |
− | + | </td> | |
− | + | </tr> | |
− | < | ||
− | {{ | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
− | </ | + | </table> |
− | + | </includeonly><noinclude>{{documentation}}</noinclude> | |
− | </ | ||
− | |||
− | <noinclude> | ||
− | |||
− | |||
− | </noinclude> |
Latest revision as of 20:24, 4 April 2024
This template may be suitable for conversion to use {{Infobox}} as a base. |
Usage[edit]
- Copy and paste the following code into the top of the article, filling the appropriate fields. If a field is unknown, leave it blank.
{{InfoBoxConflict | conflict = | partof = | date = | enddate = | place = | planet = | territory = | faction1 = | faction2 = | faction3 = | commander1 = | commander2 = | commander3 = | forces1 = | forces2 = | forces3 = | result = | environment = | conditions = }}
Explanation[edit]
All entries are optional unless noted as "required" below, meaning that the respective row does not appear if the field is left blank. Some fields only apply to certain product types.
- conflict =
- conflict name
- partof =
- relation to a larger conflict (campaign, war, etc.) (optional)
- date =
- date of the conflict; can be a year, a specific date or a range of dates (ex: 07 March - 21 April 3067)
- place =
- specific location on a planet or within a system (ex: Unity Plains) where the conflict occurred
- planet =
- planet (or system) where the conflict occurred
- faction1 =
- First faction involved in fighting
- faction2 =
- Second faction involved in fighting
- faction3 =
- Third faction involved in fighting (optional)
- commander1 =
- the acknowledged commanding officer of the first belligerent's force; if unknown, leave blank
- commander2 =
- the acknowledged commanding officer of the second belligerent's force; if unknown, leave blank
- commander3 =
- the acknowledged commanding officer of the third belligerent's force; if unknown, leave blank (optional)
- forces1 =
- a list of the identifiable units in the first belligerent's force; divide multiple units with the <br> code
- forces2 =
- a list of the identifiable units in the second belligerent's force; divide multiple units with the <br> code
- forces3 =
- a list of the identifiable units in the third belligerent's force; divide multiple units with the <br> code (optional)
- environment =
- generalization of the place of battle (ex: light woods, aerial, space, undersea, desert, etc.) (optional)
- conditions =
- any environmental (or other) conditions that directly affected the battlefield (ex: asteroid field, thunderstorm, heavy snow, darkness, etc.); if unknown, leave blank (optional)
- result =
- the final conclusion of the battle (ex: Aggressor victory, Opposition victory, undecided, etc.)
- territory =
- did any territory change hands?