Difference between revisions of "Template:InfoBoxConflict"
m (Adding the Planet Row to the box) |
m |
||
(16 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{#if:{{{campaignbox|}}} | + | <includeonly>{{#if:{{{campaignbox|}}} |
− | |<table | + | |<table style="float:right; clear:right; background: transparent; margin: 0; padding: 0;"> |
<tr><td> | <tr><td> | ||
}} | }} | ||
− | <table class="infobox" > | + | <table class="infobox"> |
<tr class="infoboxrow"> | <tr class="infoboxrow"> | ||
− | <th class="summary" colspan="{{#if:{{{faction3|}}}|3|2}}" class="infoboxheading" >{{{conflict|{{PAGENAME}}}}}</th> | + | <th style="text-align: center;" class="summary" colspan="{{#if:{{{faction3|}}}|3|2}}" class="infoboxheading" >{{{conflict|{{PAGENAME}}}}}</th> |
</tr> | </tr> | ||
{{#if:{{{partof|}}} | {{#if:{{{partof|}}} | ||
|<tr> | |<tr> | ||
− | <td | + | <td style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" >Part of {{{partof}}}</td> |
</tr> | </tr> | ||
}} | }} | ||
<!--{{#if:{{{image|}}} | <!--{{#if:{{{image|}}} | ||
|<tr> | |<tr> | ||
− | <td colspan="{{#if:{{{faction3|}}}|3|2}}" > [[Image:{{{image}}}|280px]]{{#if:{{{caption|}}}|<br />{{{caption}}}}}</td> | + | <td style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" > [[Image:{{{image}}}|280px]]{{#if:{{{caption|}}}|<br />{{{caption}}}}}</td> |
</tr> | </tr> | ||
}}--> | }}--> | ||
Line 22: | Line 22: | ||
{{#if:{{{date|}}} | {{#if:{{{date|}}} | ||
|<tr class="infoboxrow"> | |<tr class="infoboxrow"> | ||
− | <th style="border:1px solid #A1AFBF;">Date</th> | + | <th style="border:1px solid #A1AFBF;">Start Date</th> |
<td >{{{date}}}</td> | <td >{{{date}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
− | <tr class="infoboxrow"> | + | {{#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> | <th style="border:1px solid #A1AFBF;">Location</th> | ||
<td><span class="location">{{{place}}}</span></td> | <td><span class="location">{{{place}}}</span></td> | ||
</tr> | </tr> | ||
+ | }} | ||
{{#if:{{{planet|}}} | {{#if:{{{planet|}}} | ||
|<tr class="infoboxrow"> | |<tr class="infoboxrow"> | ||
Line 36: | Line 44: | ||
</tr> | </tr> | ||
}} | }} | ||
− | {{#if: | + | {{#if:{{{result|}}} |
|<tr class="infoboxrow"> | |<tr class="infoboxrow"> | ||
− | <th style="border:1px solid #A1AFBF;"> | + | <th style="border:1px solid #A1AFBF;">Result</th> |
− | <td > | + | <td >{{{result}}}</td> |
</tr> | </tr> | ||
}} | }} | ||
Line 53: | Line 61: | ||
{{#if:{{{faction1|}}}{{{faction2|}}}{{{faction3|}}} | {{#if:{{{faction1|}}}{{{faction2|}}}{{{faction3|}}} | ||
|<tr class="infoboxrow"> | |<tr class="infoboxrow"> | ||
− | <th colspan="{{#if:{{{faction3|}}}|3|2}}" class="infoboxheading">Factions</th> | + | <th style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" class="infoboxheading">Factions</th> |
</tr> | </tr> | ||
<tr class="infoboxrow"> | <tr class="infoboxrow"> | ||
Line 78: | Line 86: | ||
{{#if:{{{commander1|}}}{{{commander2|}}}{{{commander3|}}} | {{#if:{{{commander1|}}}{{{commander2|}}}{{{commander3|}}} | ||
|<tr class="infoboxrow"> | |<tr class="infoboxrow"> | ||
− | <th colspan="{{#if:{{{faction3|}}}|3|2}}" class="infoboxheading">Commanders and leaders</th> | + | <th style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" class="infoboxheading">Commanders and leaders</th> |
</tr> | </tr> | ||
<tr class="infoboxrow"> | <tr class="infoboxrow"> | ||
Line 90: | Line 98: | ||
{{#if:{{{forces1|}}}{{{forces2|}}}{{{forces3|}}} | {{#if:{{{forces1|}}}{{{forces2|}}}{{{forces3|}}} | ||
|<tr class="infoboxrow"> | |<tr class="infoboxrow"> | ||
− | <th colspan="{{#if:{{{faction3|}}}|3|2}}" class="infoboxheading">Forces involved</th> | + | <th style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" class="infoboxheading">Forces involved</th> |
</tr> | </tr> | ||
<tr class="infoboxrow"> | <tr class="infoboxrow"> | ||
Line 102: | Line 110: | ||
{{#if:{{{environment|}}}| | {{#if:{{{environment|}}}| | ||
<tr class="infoboxrow"> | <tr class="infoboxrow"> | ||
− | <th | + | <th style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" style="border:1px solid #A1AFBF;" class="infoboxheading"> Environment </th> |
</tr> | </tr> | ||
<tr class="infoboxrow"> | <tr class="infoboxrow"> | ||
− | <td | + | <td colspan="{{#if:{{{faction3|}}}|3|2}}"> {{{environment|}}}</td> |
</tr> | </tr> | ||
}} | }} | ||
Line 111: | Line 119: | ||
{{#if:{{{conditions|}}}| | {{#if:{{{conditions|}}}| | ||
<tr class="infoboxrow"> | <tr class="infoboxrow"> | ||
− | <th | + | <th style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" style="border:1px solid #A1AFBF;" class="infoboxheading"> Conditions </th> |
</tr> | </tr> | ||
<tr class="infoboxrow"> | <tr class="infoboxrow"> | ||
− | <td | + | <td colspan="{{#if:{{{faction3|}}}|3|2}}"> {{{conditions|}}}</td> |
</tr> | </tr> | ||
}} | }} | ||
Line 127: | Line 135: | ||
}} | }} | ||
</table> | </table> | ||
+ | </includeonly><noinclude>{{documentation}}</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?