Template:Planet: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(Added a bit to make the image appear only if it's provided)
(converted to Template:Infobox Wiki)
Line 1: Line 1:
{| class="toccolours" style="clear:left; float:right; margin:0 0 0.5em 1em; width:22em; font-size:smaller;"
{{Infobox Wiki
|-
|image={{#if:{{{image|}}}|[[File:{{{image|}}}|{{{image size|210px}}}]]}}|image text={{{image text|}}}|header color=#999|header text color=white|name={{{name|{{PAGENAME}}}}}}}
|colspan=2 style="text-align:center;" | {{#if: {{{image|}}}|[[File:{{{image}}}|210px]]}}
{{Infobox row|type=subheader|color=#ccc|Stellar Cartography}}
|-
{{Infobox row|title=Region|{{{region|}}}}}
!colspan=2 bgcolor="#999999" style="color:#fff; font-size:larger;" |{{{name}}}
{{Infobox row|title=Sector|{{{sector|}}}}}
|-
{{Infobox row|title=System|{{{system|}}}}}
! colspan=2 style="text-align:left; font-weight:normal; background:#cccccc;" | Stellar Cartography
{{Infobox row|title=Sun(s)|{{{suns|}}}}}
|- style="vertical-align:top;"
{{Infobox row|title=Moon(s)|{{{moons|}}}}}
| Region  
{{Infobox row|title=Orbital Radius|{{#if:{{{radius|}}}|{{{radius|}}} AU}}}}
| {{{region}}}
{{Infobox row|title=Eccentricity|{{{eccentricity|}}}}}
|- style="vertical-align:top; background:#f0f0f0;"
{{Infobox row|title=[[Planetary Classification|Class]]|{{{class|}}}}}
| Sector  
{{Infobox row|type=subheader|color=#ccc|Physical}}
| {{{sector}}}
{{Infobox row|title=Diameter|{{{diameter|}}}}}
|- style="vertical-align:top;"
{{Infobox row|title=Atmosphere|{{{atmosphere|}}}}}
| System  
{{Infobox row|title=Hydrosphere|{{{hydrosphere|}}}}}
| {{{system}}}
{{Infobox row|title=Climate|{{{climate|}}}}}
|- style="vertical-align:top; background:#f0f0f0;"
{{Infobox row|title=Blackbody Temp|{{#if:{{{blackbody|}}}|{{{blackbody}}}°K ({{#expr:{{{blackbody|}}}-272.15}}°C)}}}}
| Sun(s)  
{{Infobox row|title=Gravity|{{{gravity|}}}}}
| {{{suns}}}
{{Infobox row|title=Primary terrain|{{{terrain|}}}}}
|- style="vertical-align:top;"
{{Infobox row|title=Points of interest|{{{interest|}}}}}
| Moon(s)  
{{Infobox row|title=Length of Day|{{{lengthday|}}}}}
| {{{moons}}}
{{Infobox row|title=Length of Year|{{{lengthyear|}}}}}
|- style="vertical-align:top;"
{{Infobox row|title=Native species|{{{species|}}}}}
| Orbital Radius  
{{Infobox row|title=Other species|{{{otherspecies|}}}}}
| {{#if:{{{radius|}}}|{{{radius|}}} AU|????}}
{{Infobox row|type=subheader|color=#ccc|Societal}}
|- style="vertical-align:top;"
{{Infobox row|title=Official Language|{{{language|}}}}}
| Eccentricity
{{Infobox row|title=Population|{{{population|}}}}}
| {{{eccentricity}}}
{{Infobox row|title=[[Planetary Development Scale|Technological Classification]]|{{{techclass|}}}}}
|- style="vertical-align:top; background:#f0f0f0;"
{{Infobox row|title=Major cities|{{{cities|}}}}}
| [[Planetary Classification|Class]]  
{{Infobox row|title=Imports|{{{imports|}}}}}
| {{{class}}}
{{Infobox row|title=Exports|{{{exports|}}}}}
|-
{{Infobox row|title=Affiliation|{{{affiliation|}}}}}
! colspan=2 style="text-align:left; font-weight:normal; background:#cccccc;" | Physical
{{Infobox row|title=Government|{{{government|}}}}}
|- style="vertical-align:top;"
| Diameter
| {{{diameter}}}
|- style="vertical-align:top; background:#f0f0f0;"
| Atmosphere
| {{{atmosphere}}}
|- style="vertical-align:top;"
| Hydrosphere
| {{{hydrosphere}}}
|- style="vertical-align:top; background:#f0f0f0;"
| Climate
| {{{climate}}}
|- style="vertical-align:top; background:#f0f0f0;"
| Blackbody Temp
| {{#if:{{{blackbody|}}}|{{{blackbody}}}°K ({{#expr:{{{blackbody|}}}-272.15}}°C)|???}}
|- style="vertical-align:top;"
| Gravity
| {{{gravity}}}
|- style="vertical-align:top; background:#f0f0f0;"
| Primary terrain
| {{{terrain}}}
|- style="vertical-align:top;"
| Points of interest
| {{{interest}}}
|- style="vertical-align:top; background:#f0f0f0;"
| Length of Day
| {{{lengthday}}}
|- style="vertical-align:top;"
| Length of Year
| {{{lengthyear}}}
|- style="vertical-align:top; background:#f0f0f0;"
| Native species
| {{{species}}}
|- style="vertical-align:top;"
| Other species
| {{{otherspecies}}}
|-
! colspan=2 style="text-align:left; font-weight:normal; background:#cccccc;" | Societal
|- style="vertical-align:top; background:#f0f0f0;"
| Official Language
| {{{language}}}
|- style="vertical-align:top;"
| Population
| {{{population}}}
|- style="vertical-align:top; background:#f0f0f0;"
| [[Planetary Development Scale|Technological Classification]]
| {{{techclass}}}
|- style="vertical-align:top;"
| Major cities
| {{{cities}}}
|- style="vertical-align:top; background:#f0f0f0;"
| Imports
| {{{imports}}}
|- style="vertical-align:top;"
| Exports
| {{{exports}}}
|- style="vertical-align:top; background:#f0f0f0;"
| Affiliation
| {{{affiliation}}}
|- style="vertical-align:top;"
| Government
| {{{government}}}
|}
|}
[[Category:Planets]]
[[Category:Planets]]

Revision as of 08:33, 24 November 2023

Planet
Stellar Cartography
Physical
Societal

Usage instructions

Paste the following code into the top of an article, filling all known fields:

(Note: Only put the Kelvin number in blackbody, it will auto calculate the Celsius. If you don't know either, leave it blank.). It will also auto include AU for orbital radius.

{{planet
|name=
|image=
|region=
|sector=
|system=
|suns=
|moons=
|radius=
|eccentricity=0
|class=
|diameter=
|atmosphere=
|hydrosphere=
|gravity=
|blackbody= 
|climate=
|terrain=
|interest=
|lengthday=
|lengthyear=
|species=
|otherspecies=
|language=
|population=
|techclass=
|cities=
|imports=
|exports=
|affiliation=
|government=
}}