YellowWarningTriangle.png This wiki is closed in favour of the new wiki. Information shown is likely to be very out of date.

Difference between revisions of "Template:Faction Infobox"

From Discovery Wiki
Jump to navigationJump to search
(Replaced previous placeholder faction image with a transparent version.)
 
(4 intermediate revisions by 4 users not shown)
Line 7: Line 7:
 
| colspan="2" style="padding: 0px; text-align: center;" | {{#if: {{{image|}}}
 
| colspan="2" style="padding: 0px; text-align: center;" | {{#if: {{{image|}}}
 
| [[image:{{{image}}}|center|{{#if: {{{imgsz|}}} | {{{imgsz}}} | 264px}}]]
 
| [[image:{{{image}}}|center|{{#if: {{{imgsz|}}} | {{{imgsz}}} | 264px}}]]
| [[Image:Nofactionimage.jpg|center|264px]]
+
| [[Image:FactionPlaceholderImage.png|center|264px]]
 
}}
 
}}
 
|-
 
|-
Line 31: Line 31:
 
| Gallia = {{House Link | Gallia | long}}
 
| Gallia = {{House Link | Gallia | long}}
 
| Nomads = {{House Link | Nomads | long}}
 
| Nomads = {{House Link | Nomads | long}}
 +
| colonials = {{House Link | Colonial Republic | long}}
 +
| Colonials = {{House Link | Colonial Republic | long}}
 
| #default = {{{origin}}}}}
 
| #default = {{{origin}}}}}
 
}}
 
}}
Line 53: Line 55:
 
| CLOSED = <span style="color:#F00;">'''CLOSED'''</span>
 
| CLOSED = <span style="color:#F00;">'''CLOSED'''</span>
 
| INVITE = <span style="color:#FF0;">'''By invitation ONLY'''</span>
 
| INVITE = <span style="color:#FF0;">'''By invitation ONLY'''</span>
| #default =  '''[[dgctopic:{{{recruitment}}}|Click to join]]'''}}}}
+
| #default =  {{#iferror: {{#expr: {{{recruitment}}}*2}} | {{{recruitment}}} | '''[[dgctopic:{{{recruitment}}}|Click to join]]'''}}}}}}
 
|-
 
|-
 
| colspan="2" class="infobox-section" | Profile
 
| colspan="2" class="infobox-section" | Profile
Line 69: Line 71:
 
|-
 
|-
 
| class="infobox-data-title" | '''Founder(s)'''
 
| class="infobox-data-title" | '''Founder(s)'''
| style="padding-right: 1em;" | {{#if: {{{founder}}}
+
| style="padding-right: 1em;" | {{#if: {{{founder|}}}
 
| {{{founder}}}
 
| {{{founder}}}
 
| ''unknown''
 
| ''unknown''
 
}}
 
}}
{{#if: {{{founder|}}} | {{!}}-
+
{{#if: {{{leader|}}} | {{!}}-
 
{{!}} class="infobox-data-title" {{!}} '''Current leader(s)'''
 
{{!}} class="infobox-data-title" {{!}} '''Current leader(s)'''
{{!}} style="padding-right: 1em;" {{!}} {{{leader|}}}
+
{{!}} style="padding-right: 1em;" {{!}} {{{leader}}}
 
}}
 
}}
 
|-
 
|-
Line 165: Line 167:
 
* CLOSED - will display "<span style="color:#F00;">'''CLOSED'''</span>"
 
* CLOSED - will display "<span style="color:#F00;">'''CLOSED'''</span>"
 
* INVITE - will display "<span style="color:#FF0;">'''By invitation ONLY'''</span>"
 
* INVITE - will display "<span style="color:#FF0;">'''By invitation ONLY'''</span>"
* A URL - will display "Click to join" linked to the address provided
+
* A Discovery GC topic ID - will display "Click to join" linked to the topic provided
 
* Leave blank - the recruitment line will not appear.
 
* Leave blank - the recruitment line will not appear.
  

Latest revision as of 11:18, 28 February 2016

Other Templates available to read:

The Basics  • Ships  • Factions  • Bases  • Planets  • Systems  • Commodities


Usage

{{Faction Infobox
| name = 
| type = 
| affiliation = 
| image = 
| imgsz =
| origin = 
| alignment = 
| founding_date = 
| dissolution_date = 
| leader = 
| founder = 
| primary_role = 
| secondary_role = 
| base = 
| base2 = 
| primaryID = 
| secondaryID = 
| IFF = 
| tag = 
| recruitment = 
| toc = 
}}

"Alignment" can be one of these:

  • LAWFUL
  • UNLAWFUL
  • QUASI-LEGAL
  • CORPORATION
  • INDEPENDENT

"Type" can be

  • NPC
  • OFFICIAL
  • GROUP

(Currently does nothing, but mark it as whichever is correct.)

"Recruitment" can be

  • CLOSED - will display "CLOSED"
  • INVITE - will display "By invitation ONLY"
  • A Discovery GC topic ID - will display "Click to join" linked to the topic provided
  • Leave blank - the recruitment line will not appear.

"Origin" can be:

"PrimaryID" can be: and "SecondaryID" are pretty self explanatory but there is a feature built into the secondaryID variable.

  • primaryID - Primary ID used for the faction
  • secondaryID - For those factions that use a secondary ID

"IFF" can be:

  • Normally you would use a link to the NPC page related to your faction.
  • On NPC faction pages you should simply enter what appears on NPC ships.
    Example: House police factions typically show as simply "Police".

"toc" can be: can be:

  • YES - display the Table of Contents for your page at the bottom of the infobox. (Anything in this variable will be seen as "YES".)
  • leave blank - The Table of Contents will be displayed (or not) normally.

Example

{{Faction Infobox
| name = Red Hessians
| type = NPC
| affiliation = [[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]]
| base2 = [[Freital Base]], [[Omega-11]]
| primaryID = Red Hessian
| secondaryID = Smuggler
| IFF = Hessians
| tag = [RHA]
| recruitment = http://discoverygc.com/forums/index.php?showtopic=36136
| toc = yes
}}

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
Affiliation Red Hessians
Alignment Unlawful
Recruitment http://discoverygc.com/forums/index.php?showtopic=36136
Profile
Date of founding 700 A.S.
Founder(s) unknown
Base of operations Vogtland Base, Dresden
Secondary Base Freital Base, Omega-11
Identification
Primary ID Red Hessian ID
Secondary ID Smuggler ID
IFF Hessians
Tag(s) [RHA]
Primary role
Liberation of Rheinland
Secondary role
Undermining corrupt Rheinland corporations, containing the Corsair expansion
Table of contents