Difference between revisions of "Template:InfoBoxConflict"

m
m
 
(10 intermediate revisions by 2 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>
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 133: Line 135:
 
}}
 
}}
 
</table>
 
</table>
|}<noinclude>
+
</includeonly><noinclude>{{documentation}}</noinclude>
== Usage ==
 
<pre>
 
{{InfoBoxConflict
 
| conflict =
 
| partof =
 
| image =
 
| caption =
 
| date =
 
| place =
 
| planet =
 
| territory =
 
| faction1 = (Attacker)<br />
 
| faction2 = (Defender)<br />
 
| commander1 =
 
| commander2 =
 
| forces1=
 
| forces2=
 
| result =
 
| environment =
 
| conditions =
 
|}
 
</pre>
 
== Explanation ==
 
[[Category:Templates|InfoBoxConflict]]
 
[[Category:Infobox templates|Conflict]]
 

Latest revision as of 20:24, 4 April 2024