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">
{| width="315" align="right" cellpadding="3" cellspacing="0" style="border-radius:13px;margin-bottom: 0;
{| class="ibtable" align="right" cellpadding="3" cellspacing="0"
{{#if: {{{image|}}}|
{{#if: {{{image|}}}|
{{!}} colspan="2" bgcolor={{{bgcolor_value|#222222; style="border-top-right-radius: 13px; border-top-left-radius: 13px; background: #f3f3f3 !important; color: #cccccc; font-size:smaller; text-align: center;padding: 10px;"}}} {{!}} {{{image}}} }}
    {{!}} 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}}}'''
}}
|-
|-
| colspan="2" style="text-align: center; color: #e5e5ed; font-size:larger; background-color:#304665!important; text-align:center;padding: .3rem 1.25rem;" | '''{{{name}}}'''
| class="ibheader" colspan="2" | '''Information'''
|-
{{#if: {{{map|}}}|
{{!}} colspan="2" bgcolor={{{bgcolor_value|#222222; style="background: #f3f3f3; color: #cccccc; font-size:smaller; text-align: center;"}}} {{!}} [[File:{{{mapquadrant}}}-{{{mapletter}}}{{{mapnumber}}}.png|300px]]<br>Grid {{{mapletter}}}{{{mapnumber}}}, {{{mapquadrant}}} Quadrant }}
|-
| colspan="2" style="text-align: center; color: #e5e5ed; background-color:#2a4667c9; text-align:center; font-size:8pt; padding: 6px" | '''Basic information'''
|-
|-
{{#if: {{{starsystem|}}}|
{{#if: {{{starsystem|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Star System
{{!}} class="ibleft" {{!}} Star system
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{starsystem }}}}}
{{{starsystem}}}
}}
|-
|-
{{#if: {{{sector|}}}|
{{#if: {{{sector|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Sector
{{!}} class="ibleft" {{!}} Sector
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{sector}}}}}
{{{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|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Planetary Class
{{!}} class="ibleft" {{!}} Class
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{class}}}}}
{{{class}}}
}}
|-
|-
{{#if: {{{satellites|}}}|
{{#if: {{{satellites|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Satellites
{{!}} class="ibleft" {{!}} Satellites
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{satellites}}}}}
{{{satellites}}}
}}
|-
|-
{{#if: {{{atmosphere|}}}|
{{#if: {{{atmosphere|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Atmosphere Type
{{!}} class="ibleft" {{!}} Atmosphere
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{atmosphere}}}}}
{{{atmosphere}}}
}}
|-
|-
{{#if: {{{climate|}}}|
{{#if: {{{climate|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Climate
{{!}} class="ibleft" {{!}} Climate
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{climate}}}}}
{{{climate}}}
}}
|-
|-
{{#if: {{{hydrosphere|}}}|
{{#if: {{{hydrosphere|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Hydrosphere
{{!}} class="ibleft" {{!}} Hydrosphere
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{hysdrosphere}}}}}
{{{hydrosphere}}}
}}
|-
|-
{{#if: {{{affiliation|}}}|
{{#if: {{{affiliation|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Affiliation
{{!}} class="ibleft" {{!}} Affiliation
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{affiliation}}}}}
{{{affiliation}}}
}}
|-
|-
{{#if: {{{natives|}}}|
{{#if: {{{natives|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Natives
{{!}} class="ibleft" {{!}} Natives
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{natives}}}}}
{{{natives}}}
|-
}}
| colspan="2" style="text-align: center; color: #e5e5ed; background-color:#2a4667c9; text-align:center; font-size:8pt; padding: 6px" | '''Political Information'''
|-
|-
{{#if: {{{population|}}}|
{{#if: {{{population|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Population
{{!}} class="ibleft" {{!}} Population
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{population}}}}}
{{{population}}}
}}
|-
|-
{{#if: {{{capital|}}}|
{{#if: {{{capital|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Capital(s)
{{!}} class="ibleft" {{!}} Capital(s)
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{capital}}}}}
{{{capital}}}
|- class="infobox-link" style="border-radius-bottom-right: 13px; border-radius-bottom-left: 13px;"
}}
|colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px; text-align: center; color: #F67F00; font-size: 8pt; background-color:#2a4667c9; text-align:center;padding: 6px 0;" | [[Template:Planet]]
|-
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:Planet]]
|}</div>
|}</div>
<includeonly>[[Category:Planets]]
<includeonly>
{{DEFAULTSORT:{{PAGENAME}}}}</includeonly>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Planets]]{{DEFAULTSORT:{{{name}}}}}
<includeonly>{{#switch:{{{quadrant|}}}   
{{#switch:{{{quadrant|}}}   
  |alpha
   |Alpha
   |Alpha
   |[[Alpha Quadrant]]
   |[[Alpha Quadrant]]
   |Alpha Quadrant      = {{#if:{{NAMESPACE}} | | [[Category:Alpha Quadrant Astrometrics Database]]}}
   |Alpha Quadrant      = [[Category:Alpha Quadrant Astrometrics Database]][[Category:Alpha Quadrant]]
  |beta
   |Beta
   |Beta
   |[[Beta Quadrant]]
   |[[Beta Quadrant]]
   |Beta Quadrant      = {{#if:{{NAMESPACE}} | | [[Category:Beta Quadrant Astrometrics Database]]}}
   |Beta Quadrant      = [[Category:Beta Quadrant Astrometrics Database]][[Category:Beta Quadrant]]
  |gamma
   |Gamma
   |Gamma
   |[[Gamma Quadrant]]
   |[[Gamma Quadrant]]
   |Gamma Quadrant      = {{#if:{{NAMESPACE}} | | [[Category:Gamma Quadrant Astrometrics Database]]}}
   |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]]
  |Delta Quadrant      = {{#if:{{NAMESPACE}} | | [[Category:Delta Quadrant Astrometrics Database]]}}
}}
}}
</includeonly><includeonly>{{#switch:{{{affiliation|}}}   
{{#switch:{{{affiliation|}}}   
   |Federation
   |Federation
   |[[Federation]]
   |[[Federation]]
   |United Federation of Planets
   |United Federation of Planets
  |[[United Federation of Planets]]
   |UFP
   |UFP
   |[[United Federation of Planets]]     = {{#if:{{NAMESPACE}} | | [[Category:Federation Astrometrics]]}}
   |[[UFP]] = [[Category:Federation Astrometrics]]
   |Breen
   |Breen
  |[[Breen Confederacy]]
   |Breen Confederacy
   |Breen Confederacy
   |Breen     = {{#if:{{NAMESPACE}} | | [[Category:Breen Astrometrics]]}}
   |[[Breen Confederacy]] = [[Category:Breen Astrometrics]]
   |Cardassian
   |Cardassian
  |[[Cardassian]]
   |Cardassia
   |Cardassia
  |[[Cardassia]]
   |Cardassian Union
   |Cardassian Union
  |[[Cardassia]]
   |[[Cardassian Union]] = [[Category:Cardassian Astrometrics]]
   |[[Cardassian Union]]
  |[[Cardassian]]      = {{#if:{{NAMESPACE}} | | [[Category:Cardassian Astrometrics]]}}
   |Dominion
   |Dominion
   |The Dominion
   |The Dominion
   |[[Dominion]]
   |[[Dominion]]
   |[[The Dominion]]     = {{#if:{{NAMESPACE}} | | [[Category:Dominion Astrometrics]]}}
   |[[The Dominion]] = [[Category:Dominion Astrometrics]]
   |Gorn
   |Gorn
   |Gorn Hegemony
   |Gorn Hegemony
   |[Gorn Hegemony]] = {{#if:{{NAMESPACE}} | | [[Category:Gorn Astrometrics]]}}
   |[[Gorn Hegemony]] = [[Category:Gorn Astrometrics]]
   |Tzenkethi
   |Tzenkethi
   |Tzenkethi Coalition
   |Tzenkethi Coalition
   |[Tzenkethi Coalition]] = {{#if:{{NAMESPACE}} | | [[Category:Tzenkethi Astrometrics]]}}
   |[[Tzenkethi Coalition]] = [[Category:Tzenkethi Astrometrics]]
   |Kzinti
   |Kzinti
   |Kzinti Patriarchy
   |Kzinti Patriarchy
   |[Kzinti Patriarchy]] = {{#if:{{NAMESPACE}} | | [[Category:Kzinti Astrometrics]]}}
   |[[Kzinti Patriarchy]] = [[Category:Kzinti Astrometrics]]
   |Ferengi
   |Ferengi
   |Ferengi Alliance
   |Ferengi Alliance
   |[Ferengi Alliance]] = {{#if:{{NAMESPACE}} | | [[Category:Ferengi Astrometrics]]}}
   |[[Ferengi Alliance]] = [[Category:Ferengi Astrometrics]]
   |Klingon
   |Klingon
   |Klingon Empire
   |Klingon Empire
   |[[Klingon]]
   |[[Klingon]]
   |[[Klingon Empire]]     = {{#if:{{NAMESPACE}} | | [[Category:Klingon Astrometrics]]}}
   |[[Klingon Empire]] = [[Category:Klingon Astrometrics]]
   |Sheliak
   |Sheliak
   |Sheliak Corporate
   |Sheliak Corporate
   |[Sheliak Corporate]] = {{#if:{{NAMESPACE}} | | [[Category:Sheliak Astrometrics]]}}
   |[[Sheliak Corporate]] = [[Category:Sheliak Astrometrics]]
   |Talarian
   |Talarian
   |Talarian Empire
   |Talarian Empire
   |[Talarian Empire]] = {{#if:{{NAMESPACE}} | | [[Category:Talarian Astrometrics]]}}
   |[[Talarian Empire]] = [[Category:Talarian Astrometrics]]
   |Firat Federation
   |Firat Federation
   |First Federation
   |[[First Federation]] = [[Category:First Federation Astrometrics]]
  |[First Federation]] = {{#if:{{NAMESPACE}} | | [[Category:First Federation Astrometrics]]}}
   |Independent
   |Independent
   |Independent Planets
   |Independent Planets
   |[Independent Planets]] = {{#if:{{NAMESPACE}} | | [[Category:Independent Astrometrics]]}}
   |[[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]]     = {{#if:{{NAMESPACE}} | | [[Category:Romulan Astrometrics]]}}
   |[[Romulan Star Empire]] = [[Category:Romulan Astrometrics]]
}}
}}
}}
</includeonly><noinclude>
</includeonly><noinclude>
<br clear=all>
==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 =  
| map = If no, leave blank
| mapquadrant= Alpha / Beta / Gamma / Delta
| mapletter= A / B / C / D / E / F / G / H
| mapnumber= 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8
}}
}}
</pre>
</pre>
[[Category:Infobox Templates|{{PAGENAME}}]]
{{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
}}