Template:Planet: Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
mNo edit summary
mNo edit summary
 
(20 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<table border="0" cellspacing="0" cellpadding="0" style="float:right; clear:right; margin: 0 0 .5em 1em; width:250px; background:#ffffff; border-collapse:collapse; border:1px solid #999999; font-size:smaller; line-height:1.5;">
{| class="infoboxtemp" width="250" align="right" cellpadding="3" cellspacing="0"
<tr><td colspan="2"><div id="infoboxinternal">
|-
<table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 0 0; width:100%; background:#ffffff; border-collapse:collapse;">
{{#if: {{{image|}}}|
<tr style="text-align:center;"><td colspan="2" style="padding:0; background:#000;">{{{image|}}}</td></tr>
{{!}} class="infoboximage" colspan="2" bgcolor={{{bgcolor_value|#222222;}}} {{!}} {{{image}}} }}
<tr style="text-align:center; color:#ffffff; background:#000; font-size:larger;"><th colspan="2">{{{name}}}</th></tr> {{t|1=|1{{{hidea|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#996;">'''Astrographical'''</th></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Region</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{region|}}}
| class="name system" colspan="2" | '''{{{name}}}'''
</td></tr>|1{{{region|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Sector</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{sector|}}}
| class="header system" colspan="2" | '''Astrographical'''
</td></tr>|1{{{sector|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">System</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{system|}}}
{{#if: {{{region|}}}|
</td></tr>|1{{{system|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Suns</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Region:
{{{suns|}}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
</td></tr>|1{{{suns|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Moons</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{region}}}}}
{{{moons|}}}
|-
</td></tr>|1{{{moons|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Coordinates</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{#if: {{{sector|}}}|
{{{coord|}}}
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Sector:
</td></tr>|1{{{coord|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Distance&nbsp;from&nbsp;Core</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{distance|}}}
{{{sector}}}}}
</td></tr>|1{{{distance|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Rotation&nbsp;period</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{lengthday|}}}
{{#if: {{{system|}}}|
</td></tr>|1{{{lengthday|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Orbital&nbsp;period</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}}System:
{{{lengthyear|}}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
</td></tr>|1{{{lengthyear|}}}=}} {{t|1=|1{{{hidep|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#996;">'''Physical'''</th></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Class</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{system}}}}}
{{{class|}}}
|-
</td></tr>|1{{{class|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Diameter</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{#if: {{{suns|}}}|
{{{diameter|}}}
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Suns:
</td></tr>|1{{{diameter|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Atmosphere</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{atmosphere|}}}
{{{suns}}}}}
</td></tr>|1{{{atmosphere|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Climate</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{climate|}}}
{{#if: {{{moons|}}}|
</td></tr>|1{{{climate|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Gravity</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Moons:
{{{gravity|}}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
</td></tr>|1{{{gravity|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Primary&nbsp;terrain</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{moons}}}}}
{{{terrain|}}}
|-
</td></tr>|1{{{terrain|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Points&nbsp;of&nbsp;interest</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{#if: {{{coord|}}}|
{{{interest|}}}
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Coordinates:
</td></tr>|1{{{interest|}}}=}} {{t|1=|1{{{hides|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#996;">'''Societal'''</th></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Native&nbsp;species</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{species|}}}
{{{coord}}}}}
</td></tr>|1{{{species|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Immigrated&nbsp;species</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{otherspecies|}}}
{{#if: {{{distance|}}}|
</td></tr>|1{{{otherspecies|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Official&nbsp;language</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Distance from Core:
{{{language|}}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
</td></tr>|1{{{language|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Population</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{{distance}}}}}
{{{population|}}}
|-
</td></tr>|1{{{population|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Major&nbsp;cities</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{#if: {{{lengthday|}}}|
{{{cities|}}}
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Rotation period:
</td></tr>|1{{{cities|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Major&nbsp;imports</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{imports|}}}
{{{lengthday}}}}}
</td></tr>|1{{{imports|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Major&nbsp;exports</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{exports|}}}
{{#if: {{{lengthyear|}}}|
</td></tr>|1{{{exports|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#333}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Affiliation</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Orbital period:
{{{affiliation|}}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
</td></tr>|1{{{affiliation|}}}=}} </table></div></td></tr><tr style="background:#000;"><td id="infoboxend" class="plainlinks" style="text-align:right; width:49%;"></td><td style="text-align:left; width:51%;">&nbsp;&nbsp;[[Template:Planet|[Source]]]</td></tr></table><noinclude>
{{{lengthyear}}}}}
{{clear}}
|-
==Usage instructions==
| class="header system" colspan="2" | '''Physical'''
Copy and paste the following code into the top of the article, filling the appropriate fields. Omitted or blank fields will not be shown on the article page.
|-
<pre><nowiki>
{{#if: {{{class|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Class:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{class}}}}}
|-
{{#if: {{{diameter|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Diameter:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{diameter}}}}}
|-
{{#if: {{{atmosphere|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Atmosphere:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{atmosphere}}}}}
|-
{{#if: {{{climate|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Climates:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{climate}}}}}
|-
{{#if: {{{gravity|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Gravity:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{gravity}}}}}
|-
{{#if: {{{terrain|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Primary Terrain:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{terrain}}}}}
|-
{{#if: {{{water|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Surface Water:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{water}}}}}
|-
{{#if: {{{interest|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Points of interest:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{interest}}}}}
|-
| class="header system" colspan="2" | '''Societal'''
|-
{{#if: {{{species|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Native species:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{species}}}}}
|-
{{#if: {{{otherspecies|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Immigrated species:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{otherspecies}}}}}
|-
{{#if: {{{language|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Primary language(s):
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{language}}}}}
|-
{{#if: {{{population|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Population:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{population}}}}}
|-
{{#if: {{{government|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Government:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{government}}}}}
|-
{{#if: {{{cities|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Major cities:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{cities}}}}}
|-
{{#if: {{{locations|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Notable locations:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{locations}}}}}
|-
{{#if: {{{imports|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Major imports:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{imports}}}}}
|-
{{#if: {{{exports|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Major exports:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}  
{{{exports}}}}}
|-
{{#if: {{{affiliation|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Affiliation:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{affiliation}}}}}
|-
{{#if: {{{item|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Possession Item:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{item}}}}}
|-
|class="infoboxfooter system" colspan="2" | {{Link color|Template:Planet|#C0C08F|[ Source ]}}
|}
<noinclude>
== Usage ==
To use: Paste the following text into the desired character article, and fill in the appropriate fields.
<pre>
{{Planet
{{Planet
|image=
|image=
Line 66: Line 168:
|coord=
|coord=
|distance=
|distance=
|lengthday=
|lengthyear=
|class=
|class=
|diameter=
|diameter=
Line 72: Line 176:
|gravity=
|gravity=
|terrain=
|terrain=
|water=
|interest=
|interest=
|lengthday=
|lengthyear=
|species=
|species=
|otherspecies=
|otherspecies=
Line 80: Line 183:
|population=
|population=
|cities=
|cities=
|locations=
|government=
|imports=
|imports=
|exports=
|exports=
|affiliation=
|affiliation=
}}</nowiki></pre>
|item=}}
 
</pre>
===Display parameters===
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
*hidea
*hidep
*hides
 
===Source===
<nowiki>{{subst:slh|#996|250px}} {{subst:sls|Astrographical|#996|hidea}} {{subst:sld|Region|region}} {{subst:sld|Sector|sector}} {{subst:sld|System|system}} {{subst:sld|Suns|suns}} {{subst:sld|Moons|moons}} {{subst:sld|Coordinates|coord}} {{subst:sld|Distance&nbsp;from&nbsp;Core|distance}} {{subst:sld|Rotation&nbsp;period|lengthday}} {{subst:sld|Orbital&nbsp;period|lengthyear}} {{subst:sls|Physical|#996|hidep}} {{subst:sld|Class|class}} {{subst:sld|Diameter|diameter}} {{subst:sld|Atmosphere|atmosphere}} {{subst:sld|Climate|climate}} {{subst:sld|Gravity|gravity}} {{subst:sld|Primary&nbsp;terrain|terrain}} {{subst:sld|Points&nbsp;of&nbsp;interest|interest}} {{subst:sls|Societal|#996|hides}} {{subst:sld|Native&nbsp;species|species}} {{subst:sld|Immigrated&nbsp;species|otherspecies}} {{subst:sld|Official&nbsp;language|language}} {{subst:sld|Population|population}} {{subst:sld|Major&nbsp;cities|cities}} {{subst:sld|Major&nbsp;imports|imports}} {{subst:sld|Major&nbsp;exports|exports}} {{subst:sld|Affiliation|affiliation}} {{subst:slf}}</nowiki>
 
[[Category:Infobox templates|Planet]]
</noinclude>

Latest revision as of 10:37, 4 December 2021

{{{name}}}
Astrographical
Physical
Societal
[ Source ]

Usage

To use: Paste the following text into the desired character article, and fill in the appropriate fields.

{{Planet
|image=
|name=
|region=
|sector=
|system=
|suns=
|moons=
|coord=
|distance=
|lengthday=
|lengthyear=
|class=
|diameter=
|atmosphere=
|climate=
|gravity=
|terrain=
|water=
|interest=
|species=
|otherspecies=
|language=
|population=
|cities=
|locations=
|government=
|imports=
|exports=
|affiliation=
|item=}}