Sarna News: Bad 'Mechs - Icestorm

Difference between revisions of "Template:InfoBoxConflict"

(stealing from InfoboxProduct)
m
 
(61 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| border="0" cellpadding="0" class="infoBoxNew"
+
<includeonly>{{#if:{{{campaignbox|}}}
|-
+
|<table style="float:right; clear:right; background: transparent; margin: 0; padding: 0;">
{{#if:{{{image|}}}|
+
<tr><td>
{{!}} colspan="2" style="padding:0px" {{!}} [[Image:{{{image}}}|280px]]
 
 
}}
 
}}
|-
+
<table class="infobox">
! colspan="2" style="background-color:#BDB76B; color:#FFF; font-size:larger; font-style:italic; padding:5px; text-align:center" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}} }}
+
<tr class="infoboxrow">
|-
+
<th style="text-align: center;" class="summary" colspan="{{#if:{{{faction3|}}}|3|2}}" class="infoboxheading" >{{{conflict|{{PAGENAME}}}}}</th>
! colspan="2" | {{#if:{{{partof|}}}|
+
</tr>
{{!}} '''Part of the'''
+
{{#if:{{{partof|}}}
{{!}} {{{partof|}}}
+
|<tr>
 +
<td style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" >Part of {{{partof}}}</td>
 +
</tr>
 
}}
 
}}
|-
+
<!--{{#if:{{{image|}}}
! colspan="2" | Product information
+
|<tr>
|-
+
<td style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" > [[Image:{{{image}}}|280px]]{{#if:{{{caption|}}}|<br />{{{caption}}}}}</td>
| Type
+
</tr>
| {{{type|}}}
+
}}-->
|-
+
<tr class="infoboxrow">
{{#if:{{{author|}}}|
+
<td  colspan="{{#if:{{{faction3|}}}|3|2}}">
{{!}} Author
+
<table style="width:100%; margin:0; padding:0; border:0">
{{!}} {{{author|}}}
+
{{#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>
 
}}
 
}}
|-
+
{{#if:{{{faction1d|}}}{{{faction2d|}}}{{{faction3d|}}}
{{#if:{{{development|}}}|
+
|<tr class="infoboxrow">
{{!}} Development
+
<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>
{{!}} {{{development|}}}
+
{{#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|}}}
{{#if:{{{primarywriting|}}}|
+
|<tr class="infoboxrow">
{{!}} Primary writing
+
<th style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" class="infoboxheading">Commanders and leaders</th>
{{!}} {{{primarywriting|}}}
+
</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|}}}
{{#if:{{{pages|}}}|
+
|<tr class="infoboxrow">
{{!}} Pages
+
<th style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" class="infoboxheading">Forces involved</th>
{{!}} {{{pages|}}}
+
</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:{{{cover|}}}|
+
<tr class="infoboxrow">
{{!}} Cover artwork
+
<th style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" style="border:1px solid #A1AFBF;" class="infoboxheading"> Environment </th>
{{!}} {{{cover|}}}
+
</tr>
 +
<tr class="infoboxrow">
 +
<td colspan="{{#if:{{{faction3|}}}|3|2}}"> {{{environment|}}}</td>
 +
</tr>
 
}}
 
}}
|-
+
 
{{#if:{{{interiorart|}}}|
+
{{#if:{{{conditions|}}}|
{{!}} Interior artwork
+
<tr class="infoboxrow">
{{!}} {{{interiorart|}}}
+
<th style="text-align: center;" colspan="{{#if:{{{faction3|}}}|3|2}}" style="border:1px solid #A1AFBF;" class="infoboxheading"> Conditions </th>
}}
+
</tr>
|-
+
<tr class="infoboxrow">
{{#if:{{{illustrations|}}}|
+
<td colspan="{{#if:{{{faction3|}}}|3|2}}"> {{{conditions|}}}</td>
{{!}} Illustrations
+
</tr>
{{!}} {{{illustrations|}}}
 
}}
 
|-
 
! colspan="2" | Publication information
 
|-
 
| Publisher
 
| {{{publisher|}}}
 
|-
 
{{#if:{{{productioncode|}}}|
 
{{!}} Product code
 
{{!}} {{{productioncode|}}}
 
}}
 
|-
 
| First published
 
| {{{year|}}}
 
|-
 
{{#if:{{{ISBN10|}}}|
 
{{!}} [[w:International Standard Book Number|ISBN-10]]
 
{{!}} {{#if:{{{ISBN10|}}}|[[Special:Booksources/isbn={{{ISBN10|}}}|{{{ISBN10|}}}]]}}
 
}}
 
|-
 
{{#if:{{{ISBN13|}}}|
 
{{!}} ISBN-13
 
{{!}} {{{ISBN13|}}}
 
}}
 
|-
 
{{#if:{{{MSRP|}}}|
 
{{!}} [[w:Suggested retail price|MSRP]]
 
{{!}} {{{MSRP|}}}
 
}}
 
|-
 
! colspan="2" | Content
 
|-
 
{{#if:{{{content|}}}|
 
{{!}} Content
 
{{!}} {{{content|}}}
 
}}
 
|-
 
{{#if:{{{era|}}}|
 
{{!}} Era
 
{{!}} {{{era|}}}
 
}}
 
|-
 
{{#if:{{{timeline|}}}|
 
{{!}} Timeline
 
{{!}} {{{timeline|}}}
 
}}
 
|-
 
{{#if:{{{series|}}}|
 
{{!}} Series
 
{{!}} {{{series|}}}
 
}}
 
|-
 
{{#if:{{{precededby|}}}|
 
{{!}} Preceded by
 
{{!}} style="font-style:italic" {{!}} {{{precededby|}}}
 
}}
 
|-
 
{{#if:{{{followedby|}}}|
 
{{!}} Followed by
 
{{!}} style="font-style:italic" {{!}} {{{followedby|}}}
 
 
}}
 
}}
|-
+
{{#if:{{{campaignbox|}}}
| colspan="2" style="background-color:#EEE8AA; padding:0px; height:3px" |  
+
|</table>
|-
+
</tr>
|}
+
<tr>
 
+
<td >
 
+
{{{campaignbox|}}}
<noinclude>
+
</td>
==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.
 
<pre><nowiki>
 
{{InfoBoxConflict
 
| conflict =
 
| 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