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:Region Infobox"

From Discovery Wiki
Jump to navigationJump to search
Line 1: Line 1:
<noinclude>{{Style Guide navigation}}<!--</noinclude>
+
<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''}}
}}{{#ifeq: {{{docking}}} | No |{{#if:{{{owner|}}}|<br />
+
|-
 +
{{!}}class="infobox-data-title" {{!}} '''Owner'''
 +
{{!}}style="padding-right: 1em;" {{!}} {{#if: {{{owner|}}} | {{{owner}}} | ''unknown'' }}
 
{{!}}-
 
{{!}}-
{{!}}class="infobox-data-title" {{!}} '''Owner'''
+
{{!}}class="infobox-data-title" {{!}} '''Location'''
{{!}}style="padding-right: 1em;" {{!}} {{{owner}}} | }}|<br />
+
{{!}}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" {{!}} '''Owner'''
+
{{!}}class="infobox-data-title" {{!}} '''Population'''
{{!}}style="padding-right: 1em;" {{!}} {{#if: {{{owner|}}} | {{{owner}}} | ''unknown'' }} }}
+
{{!}}style="padding-right: 1em" {{!}} {{#if: {{{population|}}}
|-
+
{{!}} {{ #ifeq: {{{population}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{population}}} }}
|class="infobox-data-title" | '''Location'''
+
| ''unknown'' }}
|style="padding-right: 1em; line-height: 17px;" | {{#if: {{{system|}}}{{{sector|}}}{{{house|}}}
+
|}
| {{#if: {{{sector|}}} | '''{{{sector}}}''', }} {{#if: {{{system|}}} | {{{system}}} | ''unknown'' }}{{#if: {{{house|}}} | <br>''{{{house}}}'' }}
 
| ''unknown''
 
}}
 
|-
 
| colspan="2" class="infobox-section" | Technical information
 
{{!}}-class="infobox-data-title" {{!}} '''Population'''
 
{{!}}style="padding-right: 1em;" {{!}}- {{#if: {{{population|}}}
 
| {{ #ifeq: {{{population}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{population}}} }}
 
| ''unknown''
 
}}}}
 
|-
 
|class="infobox-data-title" | '''Terrain'''
 
|style="padding-right: 1em;" | {{#if: {{{terrain|}}}
 
| {{ #ifeq: {{{terrain}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{terrain}}} }}
 
| ''unknown''
 
}}
 
|-
 
[[Category: Bases]]
 
[[Category: Planets]]}}<noinclude>
 
-->
 
  
 
==Usage==
 
==Usage==
 
<pre><nowiki>{{Region Infobox
 
<pre><nowiki>{{Region Infobox
| name = Ramirez Plantation
+
| name = Korakies Valley
| image = Planet_Malta.jpg
+
| image = korakies_A.jpg
| owner = Atis Ramirez; [[Outcasts]]
+
| owner = [[La familia de Dominique]]
| location = [[Planet Malta]]
+
| parent = [[Planet Crete]]
| system = [[Omicron Alpha]]
+
| system = [[Omicron Gamma]]
| population = 13
+
| access = restricted
| terrain = Plains
+
| population = classified
 
}}</nowiki></pre>
 
}}</nowiki></pre>
  
 
==Result==
 
==Result==
 
{{Region Infobox
 
{{Region Infobox
| name = Ramirez Plantation
+
| name = Korakies Valley
| image = Planet_Malta.jpg
+
| image = korakies_A.jpg
| owner = Atis Ramirez; [[Outcasts]]
 
| location = [[Planet Malta]]
 
| system = [[Omicron Alpha]]
 
| population = 13
 
| terrain = Plains
 
}}
 
 
 
 
 
{{Region Infobox
 
| name = Blank infobox
 
| image =
 
 
| owner =  
 
| owner =  
| location =  
+
| parent =  
 
| system =  
 
| system =  
| population =  
+
| access =  
| terrain =  
+
| population =
 
}}
 
}}
[[Category:Templates]]
+
 
</noinclude>
+
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
Korakies A.jpg
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?