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:Planet Infobox"
From Discovery Wiki
Jump to navigationJump to searchm (Made the template add the page to Category: Planets without profile images instead of Category: Pages without profile images.) |
|||
(22 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude><!--</noinclude> | + | <noinclude>{{Style Guide navigation}}<!--</noinclude>{{#if: {{{image|}}}||{{Stub|This Article needs a Picture for the '''Planet'''. This is an automatically generated message that will disappear when an image is used.}}}} |
− | {| class="infobox bordered" style="float: right; margin-left: 1em; margin-bottom: 10px; width: | + | {| 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" |
|- | |- | ||
− | | colspan="2" | + | | colspan="2" class="infobox-name"|'''{{{name}}}''' |
|- | |- | ||
− | | colspan="2" style="padding: | + | | colspan="2" style="padding: 0px; text-align: center;"|{{#if: {{{image|}}} |
+ | | [[image:{{{image}}}|center|244px]] | ||
+ | | ''No image'' | ||
+ | }}{{#ifeq: {{{docking}}} | No |{{#if:{{{owner|}}}|<br /> | ||
+ | {{!}}- | ||
+ | {{!}}class="infobox-data-title" {{!}} '''Owner''' | ||
+ | {{!}}style="padding-right: 1em;" {{!}} {{{owner}}} | }}|<br /> | ||
+ | {{!}}- | ||
+ | {{!}}class="infobox-data-title" {{!}} '''Owner''' | ||
+ | {{!}}style="padding-right: 1em;" {{!}} {{#if: {{{owner|}}} | {{{owner}}} | ''unknown'' }} }} | ||
|- | |- | ||
− | | | + | |class="infobox-data-title" | '''Location''' |
− | |style="padding-right: 1em;" | | + | |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 |
− | + | {{#ifeq: {{{docking}}} | No | |{{!}}- | |
+ | {{!}}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" | '''Docking''' |
− | |style="padding-right: 1em;" | {{{ | + | |style="padding-right: 1em;" | {{#if: {{{docking|}}} |
+ | | {{ #ifeq: {{{docking}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{docking}}} }} | ||
+ | | ''unknown'' | ||
+ | }} | ||
|- | |- | ||
− | | | + | |class="infobox-data-title" | '''Terrain''' |
− | |style="padding-right: 1em;" | {{{ | + | |style="padding-right: 1em;" | {{#if: {{{terrain|}}} |
+ | | {{ #ifeq: {{{terrain}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{terrain}}} }} | ||
+ | | ''unknown'' | ||
+ | }} | ||
|- | |- | ||
− | | | + | |class="infobox-data-title" | '''Diameter''' |
− | |style="padding-right: 1em;" | {{{ | + | |style="padding-right: 1em;" | {{#if: {{{diameter|}}} |
+ | | {{ #ifeq: {{{diameter}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{diameter}}} }} | ||
+ | | ''unknown'' | ||
+ | }} | ||
|- | |- | ||
− | | | + | |class="infobox-data-title" | '''Mass''' |
− | |style="padding-right: 1em;" | {{{ | + | |style="padding-right: 1em;" | {{#if: {{{mass|}}} |
+ | | {{ #ifeq: {{{mass}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{mass}}} }} | ||
+ | | ''unknown'' | ||
+ | }} | ||
|- | |- | ||
− | | | + | |class="infobox-data-title" | '''Temperature''' |
− | |style="padding-right: 1em;" | {{{ | + | |style="padding-right: 1em;" | {{#if: {{{temperature|}}} |
+ | | {{ #ifeq: {{{temperature}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{temperature}}} }} | ||
+ | | ''unknown'' | ||
+ | }} | ||
|- | |- | ||
− | | | + | |class="infobox-data-title" | '''Escape velocity''' |
− | |style="padding-right: 1em;" | {{{ | + | |style="padding-right: 1em;" | {{#if: {{{escape_velocity|}}} |
− | | | + | | {{ #ifeq: {{{escape_velocity}}} | CLASSIFIED | <span style="color: #dd0000;">''CLASSIFIED''</span> | {{{escape_velocity}}} }} |
− | |style=" | + | | ''unknown'' |
− | + | }} | |
|} | |} | ||
− | <noinclude> | + | {{#ifeq: {{{docking}}} | No | |
+ | [[Category: Uninhabited Planets]] | | ||
+ | [[Category: Bases]] | ||
+ | [[Category: Planets]]}}{{#if: {{{image|}}} | |<br />[[Category: Planets without profile images]]}}<noinclude> | ||
* Diameter: 12,753 Km | * Diameter: 12,753 Km | ||
* Mass: 5.98 x 10e24 Kg | * Mass: 5.98 x 10e24 Kg | ||
Line 44: | Line 76: | ||
--> | --> | ||
==Usage== | ==Usage== | ||
− | <pre><nowiki>{{ | + | <pre><nowiki>{{Planet Infobox |
− | |name = Manhattan | + | | name = Manhattan |
− | |image = manhattan.jpg | + | | image = manhattan.jpg |
− | |system = [[New | + | | owner = {{House Link | Rheinland}} |
− | |sector = | + | | system = [[New Berlin]] |
− | + | | sector = C/D4 | |
− | | | + | | house = |
− | |population = | + | | population = At least 100 |
− | |docking = | + | | docking = No |
− | |terrain = | + | | terrain = None |
− | |diameter = | + | | diameter = 1.2 Zelots |
− | |mass = 5,98 x 10e24 kg | + | | mass = 5,98 x 10e24 kg |
− | |temperature = -46°C to 43°C | + | | temperature = -46°C to 43°C |
− | | | + | | escape_velocity = 60 mph |
}}</nowiki></pre> | }}</nowiki></pre> | ||
+ | |||
==Result== | ==Result== | ||
− | {{ | + | {{Planet Infobox |
− | |name = Manhattan | + | | name = Manhattan |
− | |image = manhattan.jpg | + | | image = manhattan.jpg |
− | |system = [[New | + | | owner = {{House Link | Rheinland}} |
− | |sector = | + | | system = [[New Berlin]] |
− | + | | sector = C/D4 | |
− | | | + | | house = |
− | |population = | + | | population = At least 100 |
− | |docking = | + | | docking = No |
− | |terrain = | + | | terrain = None |
− | |diameter = | + | | diameter = 1.2 Zelots |
− | |mass = 5,98 x 10e24 kg | + | | mass = 5,98 x 10e24 kg |
− | |temperature = -46°C to 43°C | + | | temperature = -46°C to 43°C |
− | | | + | | escape_velocity = 60 mph |
}} | }} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 14:26, 8 March 2013
Other Templates available to read: |
The Basics • Ships • Factions • Bases • Planets • Systems • Commodities |
Usage
{{Planet Infobox | name = Manhattan | image = manhattan.jpg | owner = {{House Link | Rheinland}} | system = [[New Berlin]] | sector = C/D4 | house = | population = At least 100 | docking = No | terrain = None | diameter = 1.2 Zelots | mass = 5,98 x 10e24 kg | temperature = -46°C to 43°C | escape_velocity = 60 mph }}
Result
Manhattan | |
Owner | Rheinland |
Location | C/D4, New Berlin |
Technical information | |
Docking | No |
Terrain | None |
Diameter | 1.2 Zelots |
Mass | 5,98 x 10e24 kg |
Temperature | -46°C to 43°C |
Escape velocity | 60 mph |