Difference between revisions of "Template:Planet"
Template page
m |
|||
(19 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div class="infobox"> | <div class="infobox"> | ||
{| | {| class="ibtable" align="right" cellpadding="3" cellspacing="0" | ||
{{#if: {{{image|}}}| | {{#if: {{{image|}}}| | ||
{{!}} colspan="2" | {{!}} class="ibimage" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} {{{image}}} | ||
{{!}}- | |||
{{!}} class="ibname" colspan="2" {{!}} '''{{{name}}}'''| | |||
{{!}} class="ibname" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} '''{{{name}}}''' | |||
}} | |||
|- | |- | ||
| | | class="ibheader" colspan="2" | '''Information''' | ||
|- | |- | ||
{{#if: {{{starsystem|}}}| | {{#if: {{{starsystem|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Star system | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{starsystem }}}}} | {{{starsystem}}} | ||
}} | |||
|- | |- | ||
{{#if: {{{sector|}}}| | {{#if: {{{sector|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Sector | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{ | {{{sector}}} | ||
}} | |||
|- | |||
{{#if: {{{quadrant|}}}| | |||
{{!}} class="ibleft" {{!}} Quadrant | |||
{{!}} class="ibright" {{!}} | |||
{{#switch:{{{quadrant|}}} | |||
|alpha | |||
|Alpha | |||
|Alpha Quadrant = [[Alpha Quadrant]] | |||
|beta | |||
|Beta | |||
|Beta Quadrant = [[Beta Quadrant]] | |||
|gamma | |||
|Gamma | |||
|Gamma Quadrant = [[Gamma Quadrant]] | |||
|delta | |||
|Delta | |||
|Delta Quadrant = [[Delta Quadrant]] | |||
|#default = {{{quadrant}}} | |||
}} | |||
}} | |||
|- | |- | ||
{{#if: {{{class|}}}| | {{#if: {{{class|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Class | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{class}}}}} | {{{class}}} | ||
}} | |||
|- | |- | ||
{{#if: {{{satellites|}}}| | {{#if: {{{satellites|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Satellites | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{satellites}}}}} | {{{satellites}}} | ||
}} | |||
|- | |- | ||
{{#if: {{{atmosphere|}}}| | {{#if: {{{atmosphere|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Atmosphere | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{atmosphere}}}}} | {{{atmosphere}}} | ||
}} | |||
|- | |- | ||
{{#if: {{{climate|}}}| | {{#if: {{{climate|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Climate | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{climate}}}}} | {{{climate}}} | ||
}} | |||
|- | |- | ||
{{#if: {{{hydrosphere|}}}| | {{#if: {{{hydrosphere|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Hydrosphere | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{ | {{{hydrosphere}}} | ||
}} | |||
|- | |- | ||
{{#if: {{{affiliation|}}}| | {{#if: {{{affiliation|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Affiliation | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{affiliation}}}}} | {{{affiliation}}} | ||
}} | |||
|- | |- | ||
{{#if: {{{natives|}}}| | {{#if: {{{natives|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Natives | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{natives}}}}} | {{{natives}}} | ||
}} | |||
|- | |- | ||
{{#if: {{{population|}}}| | {{#if: {{{population|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Population | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{population}}}}} | {{{population}}} | ||
}} | |||
|- | |- | ||
{{#if: {{{capital|}}}| | {{#if: {{{capital|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Capital(s) | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{capital}}}}} | {{{capital}}} | ||
|- class=" | }} | ||
|- | |||
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:Planet]] | |||
|}</div> | |}</div> | ||
<includeonly>[[Category:Planets]] | <includeonly> | ||
{{DEFAULTSORT:{{ | {{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Planets]]{{DEFAULTSORT:{{{name}}}}} | ||
{{#switch:{{{quadrant|}}} | |||
|alpha | |||
|Alpha | |Alpha | ||
|[[Alpha Quadrant]] | |[[Alpha Quadrant]] | ||
|Alpha Quadrant = | |Alpha Quadrant = [[Category:Alpha Quadrant Astrometrics Database]][[Category:Alpha Quadrant]] | ||
|beta | |||
|Beta | |Beta | ||
|[[Beta Quadrant]] | |[[Beta Quadrant]] | ||
|Beta Quadrant = | |Beta Quadrant = [[Category:Beta Quadrant Astrometrics Database]][[Category:Beta Quadrant]] | ||
|gamma | |||
|Gamma | |Gamma | ||
|[[Gamma Quadrant]] | |[[Gamma Quadrant]] | ||
|Gamma Quadrant = | |Gamma Quadrant = [[Category:Gamma Quadrant Astrometrics Database]][[Category:Gamma Quadrant]] | ||
|delta | |||
|Delta | |Delta | ||
|[[Delta Quadrant]] | |[[Delta Quadrant]] | ||
| [[Delta Quadrant]] | |Delta Quadrant = [[Category:Delta Quadrant Astrometrics Database]][[Category:Delta Quadrant]] | ||
}} | }} | ||
{{#switch:{{{affiliation|}}} | |||
|Federation | |Federation | ||
|[[Federation]] | |[[Federation]] | ||
|United Federation of Planets | |United Federation of Planets | ||
|[[United Federation of Planets]] | |||
|UFP | |UFP | ||
|[[ | |[[UFP]] = [[Category:Federation Astrometrics]] | ||
|Breen | |Breen | ||
|Breen Confederacy | |Breen Confederacy | ||
|Breen | |[[Breen Confederacy]] = [[Category:Breen Astrometrics]] | ||
|Cardassian | |Cardassian | ||
|[[Cardassian]] | |||
|Cardassia | |Cardassia | ||
|[[Cardassia]] | |||
|Cardassian Union | |Cardassian Union | ||
|[[Cardassian Union]] = [[Category:Cardassian Astrometrics]] | |||
|[[Cardassian Union]] | |||
|Dominion | |Dominion | ||
|The Dominion | |The Dominion | ||
|[[Dominion]] | |[[Dominion]] | ||
|[[The Dominion]] | |[[The Dominion]] = [[Category:Dominion Astrometrics]] | ||
|Gorn | |Gorn | ||
|Gorn Hegemony | |Gorn Hegemony | ||
|[Gorn Hegemony]] | |[[Gorn Hegemony]] = [[Category:Gorn Astrometrics]] | ||
|Tzenkethi | |Tzenkethi | ||
|Tzenkethi Coalition | |Tzenkethi Coalition | ||
|[Tzenkethi Coalition]] | |[[Tzenkethi Coalition]] = [[Category:Tzenkethi Astrometrics]] | ||
|Kzinti | |Kzinti | ||
|Kzinti Patriarchy | |Kzinti Patriarchy | ||
|[Kzinti Patriarchy]] | |[[Kzinti Patriarchy]] = [[Category:Kzinti Astrometrics]] | ||
|Ferengi | |Ferengi | ||
|Ferengi Alliance | |Ferengi Alliance | ||
|[Ferengi Alliance]] | |[[Ferengi Alliance]] = [[Category:Ferengi Astrometrics]] | ||
|Klingon | |Klingon | ||
|Klingon Empire | |Klingon Empire | ||
|[[Klingon]] | |[[Klingon]] | ||
|[[Klingon Empire]] | |[[Klingon Empire]] = [[Category:Klingon Astrometrics]] | ||
|Sheliak | |Sheliak | ||
|Sheliak Corporate | |Sheliak Corporate | ||
|[Sheliak Corporate]] | |[[Sheliak Corporate]] = [[Category:Sheliak Astrometrics]] | ||
|Talarian | |Talarian | ||
|Talarian Empire | |Talarian Empire | ||
|[Talarian Empire]] | |[[Talarian Empire]] = [[Category:Talarian Astrometrics]] | ||
|Firat Federation | |Firat Federation | ||
| | |[[First Federation]] = [[Category:First Federation Astrometrics]] | ||
|Independent | |Independent | ||
|Independent Planets | |Independent Planets | ||
|[Independent Planets]] | |[[Independent Planets]] = [[Category:Independent Astrometrics]] | ||
|Romulan | |Romulan | ||
|Romulan Star Empire | |Romulan Star Empire | ||
Line 140: | Line 170: | ||
|[[Romulan]] | |[[Romulan]] | ||
|[[Romulan Empire]] | |[[Romulan Empire]] | ||
|[[Romulan Star Empire]] | |[[Romulan Star Empire]] = [[Category:Romulan Astrometrics]] | ||
}} | |||
}} | }} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
==Planet== | |||
This is the template for the Planet infobox. Please use the template code provided below. If you do not provide a value on a given row it will not render, so no need to remove them. | |||
<pre> | <pre> | ||
{{Planet | {{Planet | ||
Line 160: | Line 192: | ||
| population = | | population = | ||
| capital = | | capital = | ||
}} | }} | ||
</pre> | </pre> | ||
[[Category:Infobox Templates | {{clear}} | ||
==Example== | |||
{{Planet | |||
| name = Grandma's | |||
| image = | |||
| starsystem = | |||
| sector = Just down the street | |||
| quadrant = Nearby | |||
| class = Comfy | |||
| satellites = Grandpa's shed | |||
| atmosphere = Warm, smells of cookies | |||
| climate = Well behaved | |||
| hydrosphere = Not to dry, not to damp | |||
| affiliation = Grandma, though Grandpa thinks he's in charge | |||
| natives = Grandma and Grandpa | |||
| population = Just them, and their cat Mr Miggins | |||
| capital = The kitchen | |||
| templatemode = nocats | |||
}} | |||
The following code block produced the infobox to the right. | |||
<pre> | |||
{{Planet | |||
| name = Grandma's | |||
| image = | |||
| starsystem = | |||
| sector = Just down the street | |||
| quadrant = Nearby | |||
| class = Comfy | |||
| satellites = Grandpa's shed | |||
| atmosphere = Warm, smells of cookies | |||
| climate = Well behaved | |||
| hydrosphere = Not to dry, not to damp | |||
| affiliation = Grandma, though Grandpa thinks he's in charge | |||
| natives = Grandma and Grandpa | |||
| population = Just them, and their cat Mr Miggins | |||
| capital = The kitchen | |||
}} | |||
</pre> | |||
{{clear}} | |||
[[Category:Infobox Templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 02:16, 13 June 2022
{{{name}}} | |
Information | |
Template:Planet |
Planet
This is the template for the Planet infobox. Please use the template code provided below. If you do not provide a value on a given row it will not render, so no need to remove them.
{{Planet | name = | image = | starsystem = | sector = | quadrant = | class = | satellites = | atmosphere = | climate = | hydrosphere = | affiliation = | natives = | population = | capital = }}
Example
Grandma's | |
Information | |
Sector |
Just down the street |
Quadrant |
Nearby |
Class |
Comfy |
Satellites |
Grandpa's shed |
Atmosphere |
Warm, smells of cookies |
Climate |
Well behaved |
Hydrosphere |
Not to dry, not to damp |
Affiliation |
Grandma, though Grandpa thinks he's in charge |
Natives |
Grandma and Grandpa |
Population |
Just them, and their cat Mr Miggins |
Capital(s) |
The kitchen |
Template:Planet |
The following code block produced the infobox to the right.
{{Planet | name = Grandma's | image = | starsystem = | sector = Just down the street | quadrant = Nearby | class = Comfy | satellites = Grandpa's shed | atmosphere = Warm, smells of cookies | climate = Well behaved | hydrosphere = Not to dry, not to damp | affiliation = Grandma, though Grandpa thinks he's in charge | natives = Grandma and Grandpa | population = Just them, and their cat Mr Miggins | capital = The kitchen }}