Difference between revisions of "Template:InfoBoxConflict"

m (Adding in a end date field)
m
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#if:{{{campaignbox|}}}
+
<includeonly>{{#if:{{{campaignbox|}}}
|<table style="float:right; clear:right; background: transparent; margin: 0; padding: 0;">
+
|<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 colspan="{{#if:{{{faction3|}}}|3|2}}" >Part of {{{partof}}}</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 32: Line 32:
 
</tr>
 
</tr>
 
}}
 
}}
<tr class="infoboxrow">
+
        {{#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 42: Line 44:
 
</tr>
 
</tr>
 
}}
 
}}
{{#if:{{{status|}}}{{{result|}}}
+
{{#if:{{{result|}}}
 
|<tr class="infoboxrow">
 
|<tr class="infoboxrow">
<th style="border:1px solid #A1AFBF;">{{#if:{{{status|}}}|Status|Result}}</th>
+
<th style="border:1px solid #A1AFBF;">Result</th>
<td >{{#if:{{{status|}}}|{{{status}}}|{{{result}}}}}</td>
+
<td >{{{result}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
Line 59: 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 84: 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 96: 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 108: Line 110:
 
{{#if:{{{environment|}}}|
 
{{#if:{{{environment|}}}|
 
<tr class="infoboxrow">
 
<tr class="infoboxrow">
<th colspan="{{#if:{{{faction3|}}}|3|2}}" style="border:1px solid #A1AFBF;" class="infoboxheading"> Environment </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 colspan="{{#if:{{{faction3|}}}|3|2}}"> {{{environment|}}}</td>
+
<td colspan="{{#if:{{{faction3|}}}|3|2}}"> {{{environment|}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
Line 117: Line 119:
 
{{#if:{{{conditions|}}}|
 
{{#if:{{{conditions|}}}|
 
<tr class="infoboxrow">
 
<tr class="infoboxrow">
<th colspan="{{#if:{{{faction3|}}}|3|2}}" style="border:1px solid #A1AFBF;" class="infoboxheading"> Conditions </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 colspan="{{#if:{{{faction3|}}}|3|2}}"> {{{conditions|}}}</td>
+
<td colspan="{{#if:{{{faction3|}}}|3|2}}"> {{{conditions|}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
Line 133: Line 135:
 
}}
 
}}
 
</table>
 
</table>
 +
</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 20:24, 4 April 2024