Sarna News: Bad 'Mechs - Icestorm

Difference between revisions of "Template:InfoBoxConflict"

(partof test)
m
 
(83 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| class='infobox'
+
<includeonly>{{#if:{{{campaignbox|}}}
|-
+
|<table style="float:right; clear:right; background: transparent; margin: 0; padding: 0;">
| colspan='2' class='infoboxname' | {{{conflict}}}
+
<tr><td>
|-
 
| colspan='2' | {{#if:{{{partof|}}}|
 
{{!}} Part of
 
{{!}} {{{partof|}}}
 
 
}}
 
}}
|-
+
<table class="infobox">
| colspan='2' | {{{image|}}}
+
<tr class="infoboxrow">
|-
+
<th style="text-align: center;" class="summary" colspan="{{#if:{{{faction3|}}}|3|2}}" class="infoboxheading" >{{{conflict|{{PAGENAME}}}}}</th>
| colspan='2' class='infoboxheading' |
+
</tr>
|- class='infoboxrow'
+
{{#if:{{{partof|}}}
| Date || {{{date|}}}
+
|<tr>
|- class='infoboxrow'
+
<td style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" >Part of {{{partof}}}</td>
| Place || {{{place|}}}
+
</tr>
|- class='infoboxrow'
 
| Planet || {{{planet|}}}
 
|-
 
| colspan='2' class='infoboxheading' | '''Aggressors'''
 
|- class='infoboxrow'
 
| Commander || {{{commander1|}}}
 
|- class='infoboxrow'
 
| Forces || {{{forces1|}}}
 
|-
 
| colspan='2' class='infoboxheading' | '''Opposition'''
 
|- class='infoboxrow'
 
| Commander || {{{commander2|}}}
 
|- class='infoboxrow'
 
| Forces || {{{forces2|}}}
 
|-
 
| colspan='2' class='infoboxheading' | {{#if:{{{forces3|}}}|
 
{{!}} '''Additional'''
 
 
}}
 
}}
|- class='infoboxrow'
+
<!--{{#if:{{{image|}}}
{{#if:{{{commander3|}}}|
+
|<tr>
{{!}} Commander
+
<td style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" > [[Image:{{{image}}}|280px]]{{#if:{{{caption|}}}|<br />{{{caption}}}}}</td>
{{!}} {{{commander3|}}}
+
</tr>
 +
}}-->
 +
<tr class="infoboxrow">
 +
<td  colspan="{{#if:{{{faction3|}}}|3|2}}">
 +
<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>
 +
<td><span class="location">{{{place}}}</span></td>
 +
</tr>
 +
}}
 +
        {{#if:{{{planet|}}}
 +
|<tr class="infoboxrow">
 +
<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>
 
}}
 
}}
|- class='infoboxrow'
+
{{#if:{{{faction1d|}}}{{{faction2d|}}}{{{faction3d|}}}
{{#if:{{{forces3|}}}|
+
|<tr class="infoboxrow">
{{!}} Forces
+
<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>
{{!}} {{{forces3|}}}
+
{{#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|}}}
| colspan='2' class='infoboxheading' | '''Details'''
+
|<tr class="infoboxrow">
|- class='infoboxrow'
+
<th style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" class="infoboxheading">Commanders and leaders</th>
| Result || {{{result|}}}
+
</tr>
|- class='infoboxrow'
+
<tr class="infoboxrow">
| Environment || {{{environment|}}}
+
<td {{#if:{{{faction3|}}}|style="width:33%;border:1px solid #A1AFBF;"|style="width:50%;border:1px solid #A1AFBF;"}}>{{{commander1|}}}</td>
|- class='infoboxrow'
+
<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|}}}|
 +
<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|}}}|
{{!}} Conditions
+
<tr class="infoboxrow">
{{!}} {{{conditions|}}}
+
<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>
<noinclude>
+
</tr>
==Usage instructions==
+
<tr>
Copy and paste the following code into the top of the article, filling the appropriate fields. If a field is unknown, delete it.
+
<td >
<pre><nowiki>
+
{{{campaignbox|}}}
{{InfoBoxConflict
+
</td>
| conflict =
+
</tr>
| partof =
 
| image = [[Image:*.***|191px]]
 
| date =
 
| place =
 
| planet =
 
| commander1 =
 
| forces1 =
 
| commander2 =
 
| forces2 =
 
| commander3 =
 
| forces3 =
 
| result =
 
| environment =
 
| conditions =
 
 
}}
 
}}
</nowiki></pre>
+
</table>
 
+
</includeonly><noinclude>{{documentation}}</noinclude>
</noinclude>
 
 
 
<noinclude>
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Infobox templates|Conflict]]
 
</noinclude>
 

Latest revision as of 20:24, 4 April 2024