Difference between revisions of "Template:Factioninfo"

From 30 Minute Missions: Wargame
Line 1: Line 1:
{| class="wikitable" style="float:right; margin-left: 10px;"
<div class="infobox">
|-
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{FactionIcon|}}}|
! colspan=2 style="text-align:center; font-size:150%;" |{{#if:{{{FactionName|}}} | {{{FactionName}}} | {{PAGENAME}}}}
<div class="infobox-image">[[File:{{{FactionIcon}}}|300px]]</div>}}
|-
<table>
{{#if:{{{FactionIcon|}}}|
! colspan=2 [[File:{{{FactionIcon}}}|thumb|200px]]
}}
|-
{{#if:{{{Motto|}}}|
{{#if:{{{Motto|}}}|
! Motto:
<th> Motto:</th>
{{{!}}} {{{Motto}}}}}
<td> {{{Motto}}}}}</td></tr>
|-
<tr>
{{#if:{{{ParentFaction|}}}|
{{#if:{{{ParentFaction|}}}|
! Parent Faction:  
<th> Parent Faction:  
{{{!}}} {{{ParentFaction}}}}}
</th><td> {{{ParentFaction}}}}}</td></tr>
|-
<tr>
{{#if:{{{ActiveStatus|}}}|
{{#if:{{{ActiveStatus|}}}|
! Active Status:
<th> Active Status:</th>
{{{!}}} {{{ActiveStatus}}}}}
<td> {{{ActiveStatus}}}}}</td></tr>
|-
<tr>
! Leader(s):
<th> Leader(s):</th>
| {{#if:{{{Leaders:|}}}| {{{Leaders}}}| No Leader Listed}}
<td> {{#if:{{{Leaders:|}}}| {{{Leaders}}}| No Leader Listed}}</td></tr>
|-
<tr>
! HQ:
<th> HQ:</th>
| {{#if:{{{HQ|}}}| {{{HQ}}} | No Known Location}}
<td> {{#if:{{{HQ|}}}| {{{HQ}}} | No Known Location}}</td></tr>
|}
</table>
</div>
</div>




Line 41: Line 39:


FactionName can be ignored if the user wants to use the page name.
FactionName can be ignored if the user wants to use the page name.
If FactionIcon isn't used or doesn't have data it will not populate in the table.
If FactionIcon isn't used or doesn't have data it will not populate in the table.

Revision as of 11:08, 23 August 2021

Factioninfo
Leader(s): No Leader Listed
HQ: No Known Location


Usage

This is a is how to use the template.

{{Factioninfo
| FactionName = 
| FactionIcon =
| Leaders = 
| HQ = 
| FactionInfo = 
| Company = 
}}

FactionName can be ignored if the user wants to use the page name.

If FactionIcon isn't used or doesn't have data it will not populate in the table.