Difference between revisions of "Template:System"

From Discovery Wiki
Jump to navigationJump to search
(seperated the template base code from the example)
(renamed variables and feilds for clarity)
Line 4: Line 4:
 
| colspan="2" style="text-align: center; font-size: larger; background: #f6f6f6;"|'''{{{systemname}}}'''
 
| colspan="2" style="text-align: center; font-size: larger; background: #f6f6f6;"|'''{{{systemname}}}'''
 
|-
 
|-
| colspan="2" style="padding: 4px; text-align: center;"|[[Image:{{{image|noimage.png}}}|center|250px]]
+
| colspan="2" style="padding: 4px; text-align: center;"|{{#if: {{{image|}}}
 +
| [[image:{{{image}}}|center|250px]]
 +
| ''No image''
 +
}}
 
|-
 
|-
|style="vertical-align: top; width: 30%; background: #f6f6f6;" | '''World'''
+
|style="vertical-align: top; width: 30%; background: #f6f6f6;" | '''Region'''
|style="padding-right: 1em;" | {{{systemworld|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{region|}}} | {{{region}}} | ''unknown''}}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Owned by'''
+
|style="vertical-align: top; background: #f6f6f6;" | '''Owner'''
|style="padding-right: 1em;" | {{{systemowner|''unknown''}}}
+
|style="padding-right: 1em;" | {{#if: {{{owner|}}} | {{{owner}}} | ''unknown''}}}
 
|-
 
|-
 
|style="vertical-align: top; background: #f6f6f6;" | '''Settled Planets'''
 
|style="vertical-align: top; background: #f6f6f6;" | '''Settled Planets'''
 
|style="padding-right: 1em;" |
 
|style="padding-right: 1em;" |
{{{systemplanets|''None''}}}
+
{{#if: {{{settledplanets|}}} | {{{settledplanets}}} | ''None''}}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Bases'''
+
|style="vertical-align: top; background: #f6f6f6;" | '''Stations'''
 
|style="padding-right: 1em;" |
 
|style="padding-right: 1em;" |
{{{systembases|''None''}}}
+
{{#if: {{{stations|}}} | {{{stations}}} | ''None''}}}
 
|-
 
|-
|style="vertical-align: top; background: #f6f6f6;" | '''Non-dockable objects'''
+
|style="vertical-align: top; background: #f6f6f6;" | '''Unsettled Planets'''
 
|style="padding-right: 1em;" |
 
|style="padding-right: 1em;" |
{{{systemstuff|''None''}}}
+
{{#if: {{{unsettledplanets|}}} | {{{unsettledplanets}}} | ''None''}}}
 
|-
 
|-
 
|style="vertical-align: top; background: #f6f6f6;" | '''Lawful and Neutral NPC factions'''
 
|style="vertical-align: top; background: #f6f6f6;" | '''Lawful and Neutral NPC factions'''
 
|style="padding-right: 1em;" |
 
|style="padding-right: 1em;" |
{{{systemnpcs|''None''}}}
+
{{#if: {{{lawfulnpcs|}}} | {{{lawfulnpcs}}} | ''None''}}}
 
|-
 
|-
 
|style="vertical-align: top; background: #f6f6f6;" | '''Unlawful and semi-legal NPC factions'''
 
|style="vertical-align: top; background: #f6f6f6;" | '''Unlawful and semi-legal NPC factions'''
 
|style="padding-right: 1em;" |
 
|style="padding-right: 1em;" |
{{{systemunlawfulnpcs|''None''}}}
+
{{#if: {{{unlawfulnpcs|}}} | {{{unlawfulnpcs}}} | ''None''}}}
 
|-
 
|-
 
|style="vertical-align: top; background: #f6f6f6;" | '''Commodities'''
 
|style="vertical-align: top; background: #f6f6f6;" | '''Commodities'''
 
|style="padding-right: 1em;" |
 
|style="padding-right: 1em;" |
{{{systemcommodities|''None''}}}
+
{{#if: {{{commodities|}}} | {{{commodities}}} | ''None''}}}
 
|-
 
|-
 
|style="vertical-align: top; background: #f6f6f6;" | '''Mineable commodities'''
 
|style="vertical-align: top; background: #f6f6f6;" | '''Mineable commodities'''
 
|style="padding-right: 1em;" |
 
|style="padding-right: 1em;" |
{{{systemmineable|''None''}}}
+
{{#if: {{{mineable|}}} | {{{mineable}}} | ''None''}}}
 
|}
 
|}
 
<noinclude>
 
<noinclude>
Line 47: Line 50:
 
|systemname =
 
|systemname =
 
|image =  
 
|image =  
|systemworld =  
+
|region =  
|systemowner =  
+
|owner =  
|systemplanets =
+
|settledplanets =
|systembases =
+
|stations =
|systemstuff =
+
|unsettledplanets =
|systemnpcs =
+
|lawfulnpcs =
|systemunlawfulnpcs =
+
|unlawfulnpcs =
|systemcommodities =
+
|commodities =
|systemmineable =
+
|mineable =
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
Line 63: Line 66:
 
|systemname = New York
 
|systemname = New York
 
|image = manhattan.jpg
 
|image = manhattan.jpg
|systemworld = [[Liberty]]
+
|region = [[Liberty]]
|systemowner = [[Liberty Republic]]
+
|owner = [[Liberty Republic]]
|systemplanets =
+
|settledplanets =
 
*[[Planet Manhattan]]
 
*[[Planet Manhattan]]
 
*[[Planet Pittsburgh]]
 
*[[Planet Pittsburgh]]
|systembases =
+
|stations =
 
*[[Planet Manhattan]]
 
*[[Planet Manhattan]]
 
*[[Planet Pittsburgh]]
 
*[[Planet Pittsburgh]]
|systemstuff = *[[Maine]]
+
|unsettledplanets = *[[Maine]]
|systemnpcs =
+
|lawfulnpcs =
 
*[[Liberty Navy]]
 
*[[Liberty Navy]]
 
*[[Liberty Police Incorporated]]
 
*[[Liberty Police Incorporated]]
Line 80: Line 83:
 
*[[Universal Shipping]]
 
*[[Universal Shipping]]
 
*[[Deep Space Engineering]]
 
*[[Deep Space Engineering]]
|systemunlawfulnpcs =
+
|unlawfulnpcs =
 
*[[Junkers]]
 
*[[Junkers]]
 
*[[Liberty Rogues]]
 
*[[Liberty Rogues]]
Line 86: Line 89:
 
*[[Outcasts]]
 
*[[Outcasts]]
 
*[[Xenos]]
 
*[[Xenos]]
|systemcommodities =
+
|commodities =
|systemmineable =
+
|mineable =
 
}}
 
}}
 
<pre><nowiki>
 
<pre><nowiki>
Line 93: Line 96:
 
|systemname = New York
 
|systemname = New York
 
|image = manhattan.jpg
 
|image = manhattan.jpg
|systemworld = [[Liberty]]
+
|region = [[Liberty]]
|systemowner = [[Liberty Republic]]
+
|owner = [[Liberty Republic]]
|systemplanets =
+
|settledplanets =
 
*[[Planet Manhattan]]
 
*[[Planet Manhattan]]
 
*[[Planet Pittsburgh]]
 
*[[Planet Pittsburgh]]
|systembases =
+
|stations =
 
*[[Planet Manhattan]]
 
*[[Planet Manhattan]]
 
*[[Planet Pittsburgh]]
 
*[[Planet Pittsburgh]]
|systemstuff = *[[Maine]]
+
|unsettledplanets = *[[Maine]]
|systemnpcs =
+
|lawfulnpcs =
 
*[[Liberty Navy]]
 
*[[Liberty Navy]]
 
*[[Liberty Police Incorporated]]
 
*[[Liberty Police Incorporated]]
Line 110: Line 113:
 
*[[Universal Shipping]]
 
*[[Universal Shipping]]
 
*[[Deep Space Engineering]]
 
*[[Deep Space Engineering]]
|systemunlawfulnpcs =
+
|unlawfulnpcs =
 
*[[Junkers]]
 
*[[Junkers]]
 
*[[Liberty Rogues]]
 
*[[Liberty Rogues]]
Line 116: Line 119:
 
*[[Outcasts]]
 
*[[Outcasts]]
 
*[[Xenos]]
 
*[[Xenos]]
*[[Order of Roaring Piratz]]
+
|commodities =
|systemcommodities =
+
|mineable =
*[[Nomad Power Cell]]s
 
|systemmineable =
 
*[[OORP pilots]]
 
*[[Liberty Dreadnoughts]]
 
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>

Revision as of 00:36, 27 June 2009

Usage

{{System_Infobox
|systemname =
|image = 
|region = 
|owner = 
|settledplanets =
|stations =
|unsettledplanets =
|lawfulnpcs =
|unlawfulnpcs =
|commodities =
|mineable =
}}

Example

{{{system}}}
{{{world}}}
Planet Manhattan.jpg
Capital
{{{capital_base}}}
Government factions

{{{government}}}

Corporate factions

{{{corporate}}}

Other factions

{{{other}}}

{{System_Infobox
|systemname = New York
|image = manhattan.jpg
|region = [[Liberty]]
|owner = [[Liberty Republic]]
|settledplanets =
*[[Planet Manhattan]]
*[[Planet Pittsburgh]]
|stations =
*[[Planet Manhattan]]
*[[Planet Pittsburgh]]
|unsettledplanets = *[[Maine]]
|lawfulnpcs =
*[[Liberty Navy]]
*[[Liberty Police Incorporated]]
*[[Detroit Munitions]]
*[[Ageira Technologies]]
*[[Interspace Commerce]]
*[[Universal Shipping]]
*[[Deep Space Engineering]]
|unlawfulnpcs =
*[[Junkers]]
*[[Liberty Rogues]]
*[[Lane Hackers]]
*[[Outcasts]]
*[[Xenos]]
|commodities =
|mineable =
}}