Template:Planet infobox: Difference between revisions

From Halopedia, the Halo wiki

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