Template:Planet infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} {{!}}- {{#if:{{{image|}}}|" to "{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} |- {{#if:{{{image|}}}|")
m (Text replacement - "dummy edit" to "Category:Infobox templates")
Tag: Manual revert
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox" style="width:260px; background:{{{BG|#9AB973}}}; color:{{{color1|#000}}}" cellspacing="0"
{{Infobox|start|bg=#9AB973|color=#000}}
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:{{{color2|#000}}}" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{Infobox|title|name={{{name|}}}}}
|-
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}}}
{{#if:{{{image|}}}|
 
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}} {{{image|}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
{{Infobox|section|title={{{section1-title|Astrographical}}}|bg=#ADDFAD|entries=
{{Infobox|entry|title={{{system-title|System}}}|content={{{system|}}}}}
{{Infobox|entry|title={{{body-title|Orbiting}}}|content={{{body|}}}}}
{{Infobox|entry|title={{{position-title|Orbital position}}}|content={{{position|}}}}}
{{Infobox|entry|title={{{moon(s)-title|Moon(s)}}}|content={{{moon(s)|}}}}}
}}
 
{{Infobox|section|title={{{section2-title|Physical}}}|bg=#ADDFAD|entries=
{{Infobox|entry|title={{{diameter-title|Diameter}}}|content={{{diameter|}}}}}
{{Infobox|entry|title={{{gravity-title|Gravity}}}|content={{{gravity|}}}}}
{{Infobox|entry|title={{{daylength-title|Length of day}}}|content={{{daylength|}}}}}
{{Infobox|entry|title={{{yearlength-title|Length of year}}}|content={{{yearlength|}}}}}
{{Infobox|entry|title={{{atmosphere-title|Atmosphere}}}|content={{{atmosphere|}}}}}
{{Infobox|entry|title={{{temperature-title|Surface temperature}}}|content={{{temperature|}}}}}
}}
 
{{Infobox|section|title={{{section3-title|Societal}}}|bg=#ADDFAD|entries=
{{Infobox|entry|title={{{demonym-title|Demonym}}}|content={{{demonym|}}}}}
{{Infobox|entry|title={{{species-title|Species}}}|content={{{species|}}}}}
{{Infobox|entry|title={{{population-title|Population}}}|content={{{population|}}}}}
{{Infobox|entry|title={{{colonized-title|Colonized}}}|content={{{colonized|}}}}}
{{Infobox|entry|title={{{government-title|Government}}}|content={{{government|}}}}}
{{Infobox|entry|title={{{significance-title|UNSC strategic significance}}}|content={{{significance|}}}}}
{{Infobox|entry|title={{{threat-title|UNSC threat level}}}|content={{{threat|}}}}}
}}
}}
{{!}}-
{{#if:{{{hidea|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#ADDFAD}}}" {{!}} {{{section1-title|Astrographical}}}}}
{{!}}-
{{#if:{{{system|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{system-title|System}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{system|}}}
{{!}}-}}
{{#if:{{{body|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{body-title|Orbiting}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{body|}}}
{{!}}-}}
{{#if:{{{position|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{position-title|Orbital position}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{position|}}}
{{!}}-}}
{{#if:{{{moon(s)|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{moon(s)-title|Moon(s)}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{moon(s)|}}}
{{!}}-}}
{{#if:{{{hideb|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#ADDFAD}}}" {{!}} {{{section3-title|Physical}}}}}
{{!}}-
{{#if:{{{diameter|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{diameter-title|Diameter}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{diameter|}}}
{{!}}-}}
{{#if:{{{gravity|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{gravity-title|Gravity}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{gravity|}}}
{{!}}-}}
{{#if:{{{daylength|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{daylength-title|Length of day}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{daylength|}}}
{{!}}-}}
{{#if:{{{yearlength|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{yearlength-title|Length of year}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{yearlength|}}}
{{!}}-}}
{{#if:{{{atmosphere|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{atmosphere-title|Atmosphere}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{atmosphere|}}}
{{!}}-}}
{{#if:{{{temperature|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{temperature-title|Surface temperature}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{temperature|}}}
{{!}}-}}
{{#if:{{{hidec|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#ADDFAD}}}" {{!}} {{{section2-title|Societal}}}}}
{{!}}-
{{#if:{{{demonym|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{demonym-title|Demonym}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{demonym|}}}
{{!}}-}}
{{#if:{{{species|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{species-title|Species}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{species|}}}
{{!}}-}}
{{#if:{{{population|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{population-title|Population}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{population|}}}
{{!}}-}}
{{#if:{{{colonized|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{colonized-title|Colonized}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{colonized|}}}
{{!}}-}}
{{#if:{{{government|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{government-title|Government}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{government|}}}
{{!}}-}}
{{#if:{{{significance|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{significance-title|UNSC strategic significance}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{significance|}}}
{{!}}-}}
{{#if:{{{threat|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{threat-title|UNSC threat level}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{threat|}}}
{{!}}-}}
| class="infoboxfooter" colspan="2" |  
|}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Planet {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}</includeonly><noinclude>
==Usage==


{{Infobox|end}}<includeonly>{{Infobox/pagetitle|name={{{pagename|{{{name|}}}}}}|label={{{pagelabel|Planet}}}}}</includeonly><noinclude>{{clear}}
==Usage instructions==
<pre>
<pre>
{{Planet infobox
{{Planet infobox
Line 143: Line 53:
|threat=
|threat=
}}
}}
</pre>
==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>
</pre>


[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Latest revision as of 10:11, June 14, 2024

Planet infobox
 

Usage instructions

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