Difference between revisions of "Template:Planet infobox"

From HaloStation Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><infobox> <image source="image"/> <title source="name"><default>{{PAGENAME}}</default></title> <data source="star, position"> <label>Star, Position</label>...")
 
 
Line 1: Line 1:
<includeonly><infobox>
+
{| cellspacing="0" cellpadding="0" border="0" style="float:right; clear:right; width:260px; margin:0 0 5px 10px; padding:2px; background:{{{BG|#9AB973}}}; border-radius: 0 0 .7em .7em; color:{{{color1|#000}}};"
<image source="image"/>
+
{{!}}-
<title source="name"><default>{{PAGENAME}}</default></title>
+
! style="background:{{{nameBG|transparent}}}; color:{{{color2|#000000}}}; text-align:center; font-size:120%;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
<data source="star, position">
+
{{!}}-
<label>Star, Position</label>
+
{{#if:{{{image|}}}|
</data>
+
! style="background:{{{imageBG|#F0F0F0}}}; text-align:center; border-bottom:1px solid {{{lineBG|#999999}}};" colspan="2" {{!}} {{{image|}}}
<data source="moon(s)">
+
}}
<label>Moon(s)</label>
+
{{!}}-
</data>
+
{{#if:{{{hidea|}}}|{{!}}-|{{!}}-
<data source="satellite(s)">
+
! colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|#ADDFAD}}}" {{!}} {{{section1-title|Astrographical}}}}}
<label>Satellite(s)</label>
+
{{!}}-
</data>
+
{{#if:{{{system|}}}|
<data source="diameter">
+
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
<label>Diameter</label>
+
'''{{{system-title|System}}}''':
</data>
+
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
<data source="daylength">
+
{{{system|}}}
<label>Length of Day</label>
+
{{!}}-}}
</data>
+
{{#if:{{{body|}}}|
<data source="yearlength">
+
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
<label>Length of Year</label>
+
'''{{{body-title|Orbiting}}}''':
</data>
+
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
<data source="gravity">
+
{{{body|}}}
<label>Gravity</label>
+
{{!}}-}}
</data>
+
{{#if:{{{position|}}}|
<data source="atmosphere">
+
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
<label>Atmosphere</label>
+
'''{{{position-title|Orbital position}}}''':
</data>
+
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
<data source="temperature">
+
{{{position|}}}
<label>Temperature</label>
+
{{!}}-}}
</data>
+
{{#if:{{{moon(s)|}}}|
<data source="adjective">
+
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
<label>Adjective</label>
+
'''{{{moon(s)-title|Moon(s)}}}''':
</data>
+
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
<data source="population">
+
{{{moon(s)|}}}
<label>Population</label>
+
{{!}}-}}
</data>
+
{{#if:{{{hideb|}}}|{{!}}-|{{!}}-
<data source="species">
+
! colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|#ADDFAD}}}" {{!}} {{{section3-title|Physical}}}}}
<label>Species</label>
+
{{!}}-
</data>
+
{{#if:{{{diameter|}}}|
<data source="societal approximation">
+
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
<label>Society</label>
+
'''{{{diameter-title|Diameter}}}''':
</data>
+
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
<data source="government">
+
{{{diameter|}}}
<label>Government</label>
+
{{!}}-}}
</data>
+
{{#if:{{{gravity|}}}|
<data source="technology tier">
+
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
<label>Technology Tier</label>
+
'''{{{gravity-title|Gravity}}}''':
</data>
+
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
<data source="current threat to array">
+
{{{gravity|}}}
<label>Threat to Array</label>
+
{{!}}-}}
</data>
+
{{#if:{{{daylength|}}}|
<navigation>[[Template:Infobox planet|[Source]]] &bull; [[Template talk:Infobox planet|[Talk]]]</navigation>
+
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
</infobox></includeonly><noinclude>
+
'''{{{daylength-title|Length of day}}}''':
 +
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
 +
{{{daylength|}}}
 +
{{!}}-}}
 +
{{#if:{{{yearlength|}}}|
 +
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
 +
'''{{{yearlength-title|Length of year}}}''':
 +
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
 +
{{{yearlength|}}}
 +
{{!}}-}}
 +
{{#if:{{{atmosphere|}}}|
 +
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
 +
'''{{{atmosphere-title|Atmosphere}}}''':
 +
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
 +
{{{atmosphere|}}}
 +
{{!}}-}}
 +
{{#if:{{{temperature|}}}|
 +
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
 +
'''{{{temperature-title|Surface temperature}}}''':
 +
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
 +
{{{temperature|}}}
 +
{{!}}-}}
 +
{{#if:{{{hidec|}}}|{{!}}-|{{!}}-
 +
! colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|#ADDFAD}}}" {{!}} {{{section2-title|Societal}}}}}
 +
{{!}}-
 +
{{#if:{{{demonym|}}}|
 +
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
 +
'''{{{demonym-title|Demonym}}}''':
 +
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
 +
{{{demonym|}}}
 +
{{!}}-}}
 +
{{#if:{{{species|}}}|
 +
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
 +
'''{{{species-title|Species}}}''':
 +
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
 +
{{{species|}}}
 +
{{!}}-}}
 +
{{#if:{{{population|}}}|
 +
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
 +
'''{{{population-title|Population}}}''':
 +
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
 +
{{{population|}}}
 +
{{!}}-}}
 +
{{#if:{{{colonized|}}}|
 +
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
 +
'''{{{colonized-title|Colonized}}}''':
 +
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
 +
{{{colonized|}}}
 +
{{!}}-}}
 +
{{#if:{{{government|}}}|
 +
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
 +
'''{{{government-title|Government}}}''':
 +
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
 +
{{{government|}}}
 +
{{!}}-}}
 +
| colspan=2 style="text-align:center; background:{{{BG|transparent}}}; padding:0px; font-size:10px; line-height:10px;" |&nbsp;
 +
|}<noinclude>
 
==Usage==
 
==Usage==
<pre><nowiki>{{Infobox planet
+
<pre>
 +
{{Planet infobox
 
|name=
 
|name=
 
|image=
 
|image=
|star, position=  
+
|system=
 +
|body=
 +
|position=
 
|moon(s)=
 
|moon(s)=
|satellite(s)=  
+
|diameter=
|gravity=
+
|gravity=
|diameter=  
 
 
|daylength=
 
|daylength=
 
|yearlength=
 
|yearlength=
|atmosphere=  
+
|atmosphere=
 
|temperature=
 
|temperature=
|adjective=
+
|demonym=
 +
|species=
 
|population=
 
|population=
|species=
+
|colonized=
|societal approximation=
 
 
|government=
 
|government=
|technology tier=
+
}}
|current threat to array=
+
</pre>
}}</nowiki></pre>
+
 
[[Category:Infoboxes|Planet]]
+
==Display parameters==
 +
The following allows you to hide the section header
 +
*hidea (hides Astrographical section header)
 +
*hideb (hides Physical section header)
 +
*hideb (hides Societal section header)
 +
 
 +
<pre>
 +
|hidea=
 +
|hideb=
 +
|hidec=
 +
</pre>
 +
[[Category:Updated infoboxes|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 02:13, 21 January 2019

Planet infobox
Astrographical
Physical
Societal
 

Usage

{{Planet infobox
|name=
|image=
|system=
|body=
|position=
|moon(s)=
|diameter=
|gravity=
|daylength=
|yearlength=
|atmosphere=
|temperature=
|demonym=
|species=
|population=
|colonized=
|government=
}}

Display parameters

The following allows you to hide the section header

  • hidea (hides Astrographical section header)
  • hideb (hides Physical section header)
  • hideb (hides Societal section header)
|hidea=
|hideb=
|hidec=