Difference between revisions of "Template:UnitSidebar"

From 30 Minute Missions: Wargame
(Created page with "<div class="infobox"> <div class="infobox-title">{{{title|{{#if:{{{FactionName|}}}|{{{FactionName}}}|{{PAGENAME}}}}}}}</div> {{#if:{{{UnitImg|}}}| <div class="infobox-image">[...")
 
(Added Drone back and made it work)
 
(34 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="infobox">
<div class="infobox">
<div class="infobox-title">{{{title|{{#if:{{{FactionName|}}}|{{{FactionName}}}|{{PAGENAME}}}}}}}</div>
<div class="infobox-title">{{{title|{{#if:{{{Name|}}}|{{{Name}}}|{{PAGENAME}}}}}}}</div>
{{#if:{{{UnitImg|}}}|
{{#if:{{{UnitImg|}}}|
<div class="infobox-image">[[File:{{{UnitImg}}}|144px]]</div>}}
<div class="infobox-image">[[File:{{{UnitImg}}}|225px]]</div>}}
 
<table class="infobox-table">
<tr>
<th>Unit Type:</th><td>{{#if:{{{Mech|}}}|Mech}}{{#if:{{{Vehicle|}}}|Vehicle}}</td>
</tr>
<tr>
<th>Core Type:</th><td>{{{CoreType|}}}</td>
</tr>
<tr>
<th>Total Defense:</th><td>{{{Total Defense|}}}</td>
</tr>
<tr>
<th>Classification:</th><td>{{{Classification|}}}</td>
</tr>
{{#if:{{{Manufacturer|}}}|
<tr> <th> ~ </th> </tr>
<tr>
<th>Manufacturer(s):</th><td>{{{Manufacturer|}}}</td>
</tr>}}
{{#if:{{{Accuracy|}}}|
<tr> <th> ~ </th> </tr>
<tr>
<th> Accuracy:</th><td>{{{Accuracy|}}}</td>
</tr>
<tr>
<th> Assault:</th><td>{{{Assault|}}}</td>
</tr>
<tr>
<th> Evasion:</th><td>{{{Evasion|}}}</td>
</tr>}}
<tr>
</table>
</table>
</div>
</div>
</div>
</div>


{{#switch:{{{UnitSpecialization|}}}
{{#if:{{{Byron|}}}|[[Category:Byron]]}}
| Yes =
{{#if:{{{Earth|}}}|[[Category:Earth]]}}
| No =
{{#if:{{{Maxion|}}}|[[Category:Maxion]]}}
| #default =
{{#if:{{{Mercenary|}}}|[[Category:Mercenary]]}}
{{#if:{{{Warmongers|}}}|[[Category:Warmongers]]}}
{{#if:{{{Peacemakers|}}}|[[Category:Peacemakers]]}}
{{#if:{{{Mech|}}}|[[Category:Mech]]}}
{{#if:{{{Vehicle|}}}|[[Category:Vehicle]]}}
{{#if:{{{Drone|}}}|[[Category:Drone]]}}
<noinclude>
=== Usage ===
<pre>
{{UnitSidebar
| Name =
| UnitImg =
| CoreType =
| Total Defense =
| Classification =
| Manufacturer =
| Accuracy =
| Assault =
| Evasion =
 
| Byron =
| Earth =
| Maxion =
| Mercenary =
| Warmongers =
| Peacemakers =
 
| Mech =
| Vehicle =
| Drone =  
}}
}}
Name
</pre>
Unit Type
 
Core Type
=== Parameters ===
Classification
 
Unit Origin
<table class="wikitable">
Service History
<tr>
Current Pilot (if statement)
<th>Parameter</th><th>Explanation</th>
Past Pilots (if Statement)
</tr>
<tr>
<td>Name:</td><td></td>
</tr>
<tr>
<td>UnitImg:</td><td></td>
</tr>
<tr>
<td>CoreType:</td><td></td>
</tr>
<tr>
<td>Total Defense:</td><td></td>
</tr>
<tr>
<td>Classification:</td><td></td>
</tr>
<tr>
<td>Manufacturer:</td><td></td>
</tr>
<tr>
<tr><td>Accuracy</td><td></td></tr>
<tr><td>Assault</td><td></td></tr>
<tr><td>Evasion</td><td></td></tr>
<tr><td>Byron</td><td></td></tr>
<tr><td>Earth</td><td></td></tr>
<tr><td>Maxion</td><td></td></tr>
<tr><td>Mercenary</td><td></td></tr>
<tr><td>Warmongers</td><td></td></tr>
<tr><td>Peacemakers</td><td></td></tr>
<tr><td>Mech</td><td></td></tr>
<tr><td>Vehicle</td><td></td></tr>
<tr><td>Drone</td><td></td></tr>
</table>
 
[[Category:Template]]
</noinclude>
[[Category:Units]]

Latest revision as of 22:18, 19 December 2023

UnitSidebar
Unit Type:
Core Type:
Total Defense:
Classification:






Usage

{{UnitSidebar
| Name =
| UnitImg =
| CoreType =
| Total Defense =
| Classification =
| Manufacturer =
| Accuracy =
| Assault =
| Evasion =

| Byron =
| Earth =
| Maxion =
| Mercenary =
| Warmongers =
| Peacemakers =

| Mech =
| Vehicle =
| Drone = 
}}

Parameters

ParameterExplanation
Name:
UnitImg:
CoreType:
Total Defense:
Classification:
Manufacturer:
Accuracy
Assault
Evasion
Byron
Earth
Maxion
Mercenary
Warmongers
Peacemakers
Mech
Vehicle
Drone