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:Region Infobox"
From Discovery Wiki
Jump to navigationJump to searchLine 1: | Line 1: | ||
− | <noinclude>{{Style Guide navigation}} | + | <noinclude>{{Style Guide navigation}}</noinclude> |
{| 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" | ||
|- | |- | ||
Line 6: | Line 6: | ||
| colspan="2" style="padding: 0px; text-align: center;"|{{#if: {{{image|}}} | | colspan="2" style="padding: 0px; text-align: center;"|{{#if: {{{image|}}} | ||
| [[image:{{{image}}}|center|244px]] | | [[image:{{{image}}}|center|244px]] | ||
− | | ''No image'' | + | | ''No image''}} |
− | }}{{ | + | |- |
+ | {{!}}class="infobox-data-title" {{!}} '''Owner''' | ||
+ | {{!}}style="padding-right: 1em;" {{!}} {{#if: {{{owner|}}} | {{{owner}}} | ''unknown'' }} | ||
{{!}}- | {{!}}- | ||
− | {{!}}class="infobox-data-title" {{!}} ''' | + | {{!}}class="infobox-data-title" {{!}} '''Location''' |
− | {{!}}style="padding-right: 1em;" {{!}} {{{ | + | {{!}}style="padding-right: 1em;" {{!}} {{#if: {{{parent|}}}{{{system|}}} |
+ | {{!}} {{#if: {{{parent|}}} | {{{system}}}, }} {{#if: {{{parent|}}} | {{{system}}} | ''unknown'' }} | ||
+ | | ''unknown''}} | ||
+ | {{!}}- | ||
+ | {{!}} colspan="2" class="infobox-section" {{!}} Technical Information | ||
+ | {{!}}- | ||
+ | {{!}}class="infobox-data-title" {{!}} '''Access''' | ||
+ | {{!}}style="padding-right: 1em" {{!}} {{#if: {{{access|}}} | ||
+ | {{!}} {{ #ifeq: {{{access}}} | RESTRICTED | <span style-"color: #dd0000;">''RESTRICTED''</span> | {{{access}}} }} | ||
+ | | ''unknown'' }} | ||
{{!}}- | {{!}}- | ||
− | {{!}}class="infobox-data-title" {{!}} ''' | + | {{!}}class="infobox-data-title" {{!}} '''Population''' |
− | {{!}}style="padding-right: 1em | + | {{!}}style="padding-right: 1em" {{!}} {{#if: {{{population|}}} |
− | + | {{!}} {{ #ifeq: {{{population}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{population}}} }} | |
− | + | | ''unknown'' }} | |
− | + | |} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | ''unknown'' | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | | | ||
− | |||
− | |||
− | |||
==Usage== | ==Usage== | ||
<pre><nowiki>{{Region Infobox | <pre><nowiki>{{Region Infobox | ||
− | | name = | + | | name = Korakies Valley |
− | | image = | + | | image = korakies_A.jpg |
− | | owner = | + | | owner = [[La familia de Dominique]] |
− | | | + | | parent = [[Planet Crete]] |
− | | system = [[Omicron | + | | system = [[Omicron Gamma]] |
− | | | + | | access = restricted |
− | | | + | | population = classified |
}}</nowiki></pre> | }}</nowiki></pre> | ||
==Result== | ==Result== | ||
{{Region Infobox | {{Region Infobox | ||
− | | name = | + | | name = Korakies Valley |
− | | image = | + | | image = korakies_A.jpg |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| owner = | | owner = | ||
− | | | + | | parent = |
| system = | | system = | ||
− | | | + | | access = |
− | | | + | | population = |
}} | }} | ||
− | + | ||
− | + | Why are there spare brackets here, and why has it changed the infobox contents? |
Revision as of 18:00, 13 August 2014
Other Templates available to read: |
The Basics • Ships • Factions • Bases • Planets • Systems • Commodities |
{{{name}}} | |
No image | |
Owner | unknown |
Location | unknown |
Technical Information | |
Access | unknown |
Population | unknown |
Usage
{{Region Infobox | name = Korakies Valley | image = korakies_A.jpg | owner = [[La familia de Dominique]] | parent = [[Planet Crete]] | system = [[Omicron Gamma]] | access = restricted | population = classified }}
Result
Korakies Valley | |
Owner | unknown |
Location | unknown |
Technical Information | |
Access | unknown |
Population | unknown |
Usage
{{Region Infobox | name = Korakies Valley | image = korakies_A.jpg | owner = [[La familia de Dominique]] | parent = [[Planet Crete]] | system = [[Omicron Gamma]] | access = restricted | population = classified }}
Result
Template loop detected: Template:Region Infobox
Why are there spare brackets here, and why has it changed the infobox contents?
Why are there spare brackets here, and why has it changed the infobox contents?