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;"|[[ | + | | colspan="2" style="padding: 4px; text-align: center;"|{{#if: {{{image|}}} |
+ | | [[image:{{{image}}}|center|250px]] | ||
+ | | ''No image'' | ||
+ | }} | ||
|- | |- | ||
− | |style="vertical-align: top; width: 30%; background: #f6f6f6;" | ''' | + | |style="vertical-align: top; width: 30%; background: #f6f6f6;" | '''Region''' |
− | |style="padding-right: 1em;" | {{{ | + | |style="padding-right: 1em;" | {{#if: {{{region|}}} | {{{region}}} | ''unknown''}}} |
|- | |- | ||
− | |style="vertical-align: top; background: #f6f6f6;" | ''' | + | |style="vertical-align: top; background: #f6f6f6;" | '''Owner''' |
− | |style="padding-right: 1em;" | {{{ | + | |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;" | | ||
− | {{{ | + | {{#if: {{{settledplanets|}}} | {{{settledplanets}}} | ''None''}}} |
|- | |- | ||
− | |style="vertical-align: top; background: #f6f6f6;" | ''' | + | |style="vertical-align: top; background: #f6f6f6;" | '''Stations''' |
|style="padding-right: 1em;" | | |style="padding-right: 1em;" | | ||
− | {{{ | + | {{#if: {{{stations|}}} | {{{stations}}} | ''None''}}} |
|- | |- | ||
− | |style="vertical-align: top; background: #f6f6f6;" | ''' | + | |style="vertical-align: top; background: #f6f6f6;" | '''Unsettled Planets''' |
|style="padding-right: 1em;" | | |style="padding-right: 1em;" | | ||
− | {{{ | + | {{#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;" | | ||
− | {{{ | + | {{#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;" | | ||
− | {{{ | + | {{#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;" | | ||
− | {{{ | + | {{#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;" | | ||
− | {{{ | + | {{#if: {{{mineable|}}} | {{{mineable}}} | ''None''}}} |
|} | |} | ||
<noinclude> | <noinclude> | ||
Line 47: | Line 50: | ||
|systemname = | |systemname = | ||
|image = | |image = | ||
− | | | + | |region = |
− | | | + | |owner = |
− | | | + | |settledplanets = |
− | | | + | |stations = |
− | | | + | |unsettledplanets = |
− | | | + | |lawfulnpcs = |
− | | | + | |unlawfulnpcs = |
− | | | + | |commodities = |
− | | | + | |mineable = |
}} | }} | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 63: | Line 66: | ||
|systemname = New York | |systemname = New York | ||
|image = manhattan.jpg | |image = manhattan.jpg | ||
− | | | + | |region = [[Liberty]] |
− | | | + | |owner = [[Liberty Republic]] |
− | | | + | |settledplanets = |
*[[Planet Manhattan]] | *[[Planet Manhattan]] | ||
*[[Planet Pittsburgh]] | *[[Planet Pittsburgh]] | ||
− | | | + | |stations = |
*[[Planet Manhattan]] | *[[Planet Manhattan]] | ||
*[[Planet Pittsburgh]] | *[[Planet Pittsburgh]] | ||
− | | | + | |unsettledplanets = *[[Maine]] |
− | | | + | |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]] | ||
− | | | + | |unlawfulnpcs = |
*[[Junkers]] | *[[Junkers]] | ||
*[[Liberty Rogues]] | *[[Liberty Rogues]] | ||
Line 86: | Line 89: | ||
*[[Outcasts]] | *[[Outcasts]] | ||
*[[Xenos]] | *[[Xenos]] | ||
− | | | + | |commodities = |
− | | | + | |mineable = |
}} | }} | ||
<pre><nowiki> | <pre><nowiki> | ||
Line 93: | Line 96: | ||
|systemname = New York | |systemname = New York | ||
|image = manhattan.jpg | |image = manhattan.jpg | ||
− | | | + | |region = [[Liberty]] |
− | | | + | |owner = [[Liberty Republic]] |
− | | | + | |settledplanets = |
*[[Planet Manhattan]] | *[[Planet Manhattan]] | ||
*[[Planet Pittsburgh]] | *[[Planet Pittsburgh]] | ||
− | | | + | |stations = |
*[[Planet Manhattan]] | *[[Planet Manhattan]] | ||
*[[Planet Pittsburgh]] | *[[Planet Pittsburgh]] | ||
− | | | + | |unsettledplanets = *[[Maine]] |
− | | | + | |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]] | ||
− | | | + | |unlawfulnpcs = |
*[[Junkers]] | *[[Junkers]] | ||
*[[Liberty Rogues]] | *[[Liberty Rogues]] | ||
Line 116: | Line 119: | ||
*[[Outcasts]] | *[[Outcasts]] | ||
*[[Xenos]] | *[[Xenos]] | ||
− | + | |commodities = | |
− | | | + | |mineable = |
− | |||
− | | | ||
− | |||
− | |||
}} | }} | ||
</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}}} | |
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 = }}