Difference between revisions of "Template:Factioninfo"

From 30 Minute Missions: Wargame
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="wikitable" style="float:right; margin-left: 10px;"
<div class="infobox">
|-
<div class="infobox-title">{{{title|{{#if:{{{FactionName|}}}|{{{FactionName}}}|{{PAGENAME}}}}}}}</div>{{#if:{{{FactionIcon|}}}|
! colspan=2 style="text-align:center; font-size:150%;" |{{#if:{{{FactionName|}}} | {{{FactionName}}} | {{PAGENAME}}}}
<div class="infobox-image">[[File:{{{FactionIcon}}}|144px]]</div>}}
|-
<table>
{{#if:{{{FactionIcon|}}}|
! colspan=2 style="text-align:center;" {{{FactionIcon}}}
}}
|-
{{#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>
|-
 
! HQ:
{{#if:{{{HQ|}}}|
| {{#if:{{{HQ|}}}| {{{HQ}}} | No Known Location}}
<th> HQ:</th>
|}
<td> {{{HQ}}}}}</td></tr>
 
</table>
</div>
</div>




Line 32: Line 32:
{{Factioninfo
{{Factioninfo
| FactionName =  
| FactionName =  
| FactionIcon =
| FactionIcon = Must be exactly 144px x144px
| Motto =
| ParentFaction =
| ActiveStatus =
| Leaders =  
| Leaders =  
| HQ =  
| HQ =  
| FactionInfo =
| Company =
}}
}}
</pre>
</pre>


FactionName can be ignored if the user wants to use the page name.
== Parameters ==
If FactionIcon isn't used or doesn't have data it will not populate in the table.
 
<table class="wikitable">
<tr>
<th>Parameter</th><th>Explanation</th>
</tr>
<tr>
<td>FactionName</td><td>This is the name of the faction Should be fixed</td>
</tr>
<tr>
<td>FactionIcon</td><td>Icon of the faction. Use just the name . extension not the full method of referencing images. [Optional]</td>
</tr>
<tr>
<td>Motto</td><td>Faction's motto [Optional]</td>
</tr>
<tr>
<td>ParentFaction</td><td>Link to the faction higher in the hierarchy. Make sure to use the internal link to the page. [Optional]</td>
</tr>
<tr>
<td>ActiveStatus</td><td> Active/Inactive [Optional]</td>
</tr>
<tr>
<td>Leaders</td><td>Link to Leader's page. Use internal links and commas. [Optional]</td>
</tr>
<tr>
<td>HQ</td><td>HQ location. User internal link if possible. If not just link a city or country. [Optional]</td>
</tr>
</table>
[[Category:Template]] [[Category:Factions]]
</noinclude>

Latest revision as of 19:20, 13 September 2021

Factioninfo
Leader(s): No Leader Listed


Usage

This is a is how to use the template.

{{Factioninfo
| FactionName = 
| FactionIcon = Must be exactly 144px x144px
| Motto =
| ParentFaction =
| ActiveStatus =
| Leaders = 
| HQ = 
}}

Parameters

ParameterExplanation
FactionNameThis is the name of the faction Should be fixed
FactionIconIcon of the faction. Use just the name . extension not the full method of referencing images. [Optional]
MottoFaction's motto [Optional]
ParentFactionLink to the faction higher in the hierarchy. Make sure to use the internal link to the page. [Optional]
ActiveStatus Active/Inactive [Optional]
LeadersLink to Leader's page. Use internal links and commas. [Optional]
HQHQ location. User internal link if possible. If not just link a city or country. [Optional]