Difference between revisions of "Template:Faction Infobox"

From Discovery Wiki
Jump to navigationJump to search
Line 1: Line 1:
 
<noinclude><!--</noinclude>
 
<noinclude><!--</noinclude>
<table class="infobox bordered" style="float: right; margin-left: 1em; margin-bottom: 10px; width: 250px; font-size: 11px; line-height: 14px; border: 1px solid #dddddd;" cellpadding="3">
+
{| class="infobox bordered" style="float: right; margin-left: 1em; margin-bottom: 10px; width: 250px; font-size: 11px; line-height: 14px; border: 1px solid #dddddd;" cellpadding="3"
<tr><td colspan="2" style="text-align: center; font-size: 14px; background: #f6f6f6;">'''{{{name}}}'''</td></tr>
+
|-
<tr><td colspan="2" style="padding: 0px; text-align: center;">{{#if: {{{image|}}}
+
| colspan="2" style="text-align: center; font-size: 14px; background: #f6f6f6;" | '''{{{name}}}'''
 +
|-
 +
| colspan="2" style="padding: 0px; text-align: center;" | {{#if: {{{image|}}}
 
| [[image:{{{image}}}|center|244px]]
 
| [[image:{{{image}}}|center|244px]]
 
| [[Image:Nofactionimage.jpg|center|244px]]
 
| [[Image:Nofactionimage.jpg|center|244px]]
}}</td></tr>
+
}}
<tr><td style="background: #f6f6f6;">'''Origin'''</td>
+
|-
<td style="padding-right: 1em;">{{#if: {{{origin|}}}
+
| style="background: #f6f6f6;" | '''Origin'''
 +
| style="padding-right: 1em;" | {{#if: {{{origin|}}}
 
| {{{origin}}}
 
| {{{origin}}}
 
| ''unknown''
 
| ''unknown''
}}</td></tr>
+
}}
<tr><td style="background: #f6f6f6;">'''Alignment'''</td>
+
|-
<td style="padding-right: 1em;">{{#switch: {{{alignment}}}
+
| style="background: #f6f6f6;" | '''Alignment'''
 +
| style="padding-right: 1em;" | {{#switch: {{{alignment}}}
 
| LAWFUL = Lawful
 
| LAWFUL = Lawful
 
| UNLAWFUL = Unlawful
 
| UNLAWFUL = Unlawful
Line 19: Line 23:
 
| INDEPENDENT = Independent
 
| INDEPENDENT = Independent
 
| #default = {{{alignment}}}
 
| #default = {{{alignment}}}
}}</td></tr>
+
}}
<tr><td colspan="2" style="vertical-align: top; font-weight: bold; text-align: center;">Profile</td></tr>
+
|-
<tr><td style="background: #f6f6f6;">'''Date of founding'''</td>
+
| colspan="2" style="vertical-align: top; font-weight: bold; text-align: center;" | Profile
<tr><td style="padding-right: 1em;">{{#if: {{{founding_date|}}}
+
|-
 +
| style="background: #f6f6f6;" | '''Date of founding'''
 +
|-
 +
| style="padding-right: 1em;" | {{#if: {{{founding_date|}}}
 
| {{{founding_date}}} [[A.S.]]
 
| {{{founding_date}}} [[A.S.]]
 
| ''unknown''
 
| ''unknown''
}}</td></tr>
+
}}
 
{{#if: {{{dissolution_date|}}}
 
{{#if: {{{dissolution_date|}}}
| <tr><td style="background: #f6f6f6;">'''Date of dissolution'''</td>
+
| {{!}}-
<td style="padding-right: 1em;">{{{dissolution_date}}} [[A.S.]]</td></tr>
+
{{!}} style="background: #f6f6f6;" {{!}} '''Date of dissolution'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{dissolution_date}}} [[A.S.]]
 
}}
 
}}
<tr><td style="background: #f6f6f6;">'''Current leader'''</td>
+
|-
<tr><td style="padding-right: 1em;">{{#if: {{{leader|}}}
+
| style="background: #f6f6f6;" | '''Current leader'''
 +
|-
 +
| style="padding-right: 1em;" | {{#if: {{{leader|}}}
 
| {{{leader}}}
 
| {{{leader}}}
 
| ''unknown''
 
| ''unknown''
}}</td></tr>
+
}}
 
{{#if: {{{founder|}}}
 
{{#if: {{{founder|}}}
| <tr><td style="background: #f6f6f6;">'''Founder'''</td>
+
| {{!}}-
<td style="padding-right: 1em;">{{{founder}}}</td></tr>
+
{{!}} style="background: #f6f6f6;" {{!}} '''Founder'''
 +
{{!}} style="padding-right: 1em;" {{!}} {{{founder}}}
 
}}
 
}}
<tr><td style="background: #f6f6f6;">'''Base of operations'''</td>
+
|-
<tr><td style="padding-right: 1em;">{{#if: {{{base|}}}
+
| style="background: #f6f6f6;" | '''Base of operations'''
 +
|-
 +
| style="padding-right: 1em;" | {{#if: {{{base|}}}
 
| {{{base}}}
 
| {{{base}}}
 
| ''unknown''
 
| ''unknown''
}}</td></tr>{{#if: {{{primary_role|}}}
+
}}
| <tr><td colspan="2" style="font-weight: bold; text-align: center;">Primary role</td></tr>
+
{{#if: {{{primary_role|}}}
<tr><td colspan="2">{{{primary_role}}}</td></tr>}}{{#if: {{{secondary_role|}}}
+
| {{!}}-
| <tr><td colspan="2" style="font-weight: bold; text-align: center;">Secondary role</td></tr>
+
{{!}} colspan="2" style="font-weight: bold; text-align: center;" {{!}} Primary role
<tr><td colspan="2">{{{secondary_role}}}</td></tr>}}
+
{{!}}-
</table>
+
{{!}} colspan="2" {{!}} {{{primary_role}}}
 +
}}
 +
{{#if: {{{secondary_role|}}}
 +
| {{!}}-
 +
{{!}} colspan="2" style="font-weight: bold; text-align: center;" {{!}} Secondary role
 +
{{!}}-
 +
{{!}} colspan="2" {{!}} {{{secondary_role}}}
 +
}}
 +
|}
 
[[Category: Factions]]{{#if: {{{image|}}} | | [[Category: Pages without profile images]]}}
 
[[Category: Factions]]{{#if: {{{image|}}} | | [[Category: Pages without profile images]]}}
 
<noinclude>
 
<noinclude>

Revision as of 11:43, 4 December 2008

Usage

{{Faction_Infobox
|name=Red Hessian Army
|image=Freital.jpg
|type=Revolutionary Military
|founding_date=''unknown''
|dissolution_date=
|leader=[[Kaspar Meisnerr]]
|founder=[[Heinrich Kessler]]
|primary_role=Liberating Rheinland
|secondary_role=Undermining corrupt Rheinland corporations, containing the Corsair expansion
|base=[[Vogtland]], [[Dresden|Dresden system]]}}

Result

Red Hessians
Origin Flag-rheinland.png Rheinland
Alignment Unlawful
Profile
Date of founding
700 A.S.
Current leader
unknown
Base of operations
Vogtland, Dresden
Primary role
Liberation of Rheinland
Secondary role
Undermining corrupt Rheinland corporations, containing the Corsair expansion