Difference between revisions of "Template:Faction Infobox"

From Discovery Wiki
Jump to navigationJump to search
(seperated to own without images page)
Line 2: Line 2:
 
{| class="infobox bordered" style="float: right; margin-left: 1em; margin-bottom: 10px; width: 270px; 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: 270px; font-size: 11px; line-height: 14px; border: 1px solid #dddddd;" cellpadding="3"
 
|-
 
|-
| colspan="2" style="text-align: center; font-size: 14px; background: #f6f6f6;" | '''{{{name}}}'''
+
| colspan="2" class="infobox-name" | '''{{{name}}}'''
 
|-
 
|-
 
| colspan="2" style="padding: 0px; text-align: center;" | {{#if: {{{image|}}}
 
| colspan="2" style="padding: 0px; text-align: center;" | {{#if: {{{image|}}}
Line 9: Line 9:
 
}}
 
}}
 
|-
 
|-
| style="background: #f6f6f6; width: 105px;" | '''Origin'''
+
| class="infobox-data-title" | '''Origin'''
 
| style="padding-right: 1em;" | {{#if: {{{origin|}}}
 
| style="padding-right: 1em;" | {{#if: {{{origin|}}}
 
| {{{origin}}}
 
| {{{origin}}}
Line 15: Line 15:
 
}}
 
}}
 
|-
 
|-
| style="background: #f6f6f6;" | '''Alignment'''
+
| class="infobox-data-title" | '''Alignment'''
 
| style="padding-right: 1em;" | {{#switch: {{{alignment}}}
 
| style="padding-right: 1em;" | {{#switch: {{{alignment}}}
 
| LAWFUL = Lawful
 
| LAWFUL = Lawful
Line 25: Line 25:
 
}}
 
}}
 
|-
 
|-
| colspan="2" style="font-weight: bold; text-align: center; background: #ebdab9;" | Profile
+
| colspan="2" class="infobox-section" | Profile
 
|-
 
|-
| style="background: #f6f6f6;" | '''Date of founding'''
+
| class="infobox-data-title" | '''Date of founding'''
 
| style="padding-right: 1em;" | {{#if: {{{founding_date|}}}
 
| style="padding-right: 1em;" | {{#if: {{{founding_date|}}}
 
| {{{founding_date}}} [[A.S.]]
 
| {{{founding_date}}} [[A.S.]]
Line 34: Line 34:
 
{{#if: {{{dissolution_date|}}}
 
{{#if: {{{dissolution_date|}}}
 
| {{!}}-
 
| {{!}}-
{{!}} style="background: #f6f6f6;" {{!}} '''Date of dissolution'''
+
{{!}} class="infobox-data-title" {{!}} '''Date of dissolution'''
 
{{!}} style="padding-right: 1em;" {{!}} {{{dissolution_date}}} [[A.S.]]
 
{{!}} style="padding-right: 1em;" {{!}} {{{dissolution_date}}} [[A.S.]]
 
}}
 
}}
 
|-
 
|-
| style="background: #f6f6f6;" | '''Founder(s)'''
+
| class="infobox-data-title" | '''Founder(s)'''
 
| style="padding-right: 1em;" | {{#if: {{{founder}}}
 
| style="padding-right: 1em;" | {{#if: {{{founder}}}
 
| {{{founder}}}
 
| {{{founder}}}
Line 44: Line 44:
 
}}
 
}}
 
{{#if: {{{founder|}}} | {{!}}-
 
{{#if: {{{founder|}}} | {{!}}-
{{!}} style="background: #f6f6f6;" {{!}} '''Current leader(s)'''
+
{{!}} class="infobox-data-title" {{!}} '''Current leader(s)'''
 
{{!}} style="padding-right: 1em;" {{!}} {{{leader|}}}
 
{{!}} style="padding-right: 1em;" {{!}} {{{leader|}}}
 
}}
 
}}
 
|-
 
|-
| style="background: #f6f6f6;" | '''Base of operations'''
+
| class="infobox-data-title" | '''Base of operations'''
 
| style="padding-right: 1em;" | {{#if: {{{base|}}}
 
| style="padding-right: 1em;" | {{#if: {{{base|}}}
 
| {{{base}}}
 
| {{{base}}}
Line 54: Line 54:
 
}}{{#if: {{{primary_role|}}} | <nowiki />
 
}}{{#if: {{{primary_role|}}} | <nowiki />
 
{{!}}-
 
{{!}}-
{{!}} colspan="2" style="font-weight: bold; text-align: center; background: #ebdab9;" {{!}} Primary role
+
{{!}} colspan="2" class="infobox-section" {{!}} Primary role
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="2" {{!}} {{{primary_role}}}
 
{{!}} colspan="2" {{!}} {{{primary_role}}}
 
}}{{#if: {{{secondary_role|}}} | <nowiki />
 
}}{{#if: {{{secondary_role|}}} | <nowiki />
 
{{!}}-
 
{{!}}-
{{!}} colspan="2" style="font-weight: bold; text-align: center; background: #ebdab9;" {{!}} Secondary role
+
{{!}} colspan="2" class="infobox-section" {{!}} Secondary role
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="2" {{!}} {{{secondary_role}}} }}
 
{{!}} colspan="2" {{!}} {{{secondary_role}}} }}

Revision as of 21:33, 19 August 2009

Usage

{{Faction Infobox
| name = Red Hessians
| image = Freital.jpg
| imgsz =
| origin = {{House Link | Rheinland}}
| alignment = UNLAWFUL
| founding_date = 700
| dissolution_date = 
| leader = 
| founder = 
| primary_role = Liberation of Rheinland
| secondary_role = Undermining corrupt Rheinland corporations, containing the Corsair expansion
| base = [[Vogtland Base]], [[Dresden]]
}}

Note: The imgsz variable allows you to specify the size an image is displayed at (Example: 128px) and is best used to keep an image from being stretched and distorted. If no value is placed in this field the image will be sized to the default value of 264px.

Result

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