Difference between revisions of "Template:Planet"

Template page
m (Adding in quadrant to the actual infobox display because for some reason it wasn't)
m
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox">
<includeonly>
{| width="315" align="right" cellpadding="3" cellspacing="0" style="border-radius:13px;margin-bottom:0;padding-left:10px;"
<infobox theme="bravo">
{{#if: {{{image|}}}|
<title source="name">
{{!}} 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}}} }}
    <default>{{pagename}}</default><format>{{{name|}}}</format>
|-
</title>
| colspan="2" style="text-align: center; color: #e5e5ed; font-size:larger; background-color:#304665!important; text-align:center;padding: .3rem 1.25rem;" | '''{{{name}}}'''
<image source="image"/>
|-
<header>Information</header>
{{#if: {{{map|}}}|
<data source="starsystem"><label>Star system</label><format>{{{starsystem}}}</format></data>
{{!}} 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 }}
<data source="sector"><label>Sector</label><format>{{{sector}}}</format></data>
|-
<data source="quadrant"><label>Quadrant</label><format>{{#switch:{{{quadrant|}}}
| colspan="2" style="text-align: center; color: #e5e5ed; background-color:#2a4667c9; text-align:center; font-size:8pt; padding: 6px" | '''Basic information'''
  |alpha
|-
  |Alpha
{{#if: {{{starsystem|}}}|
  |Alpha Quadrant = [[Alpha Quadrant]]
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Star System
  |beta
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
  |Beta
{{{starsystem }}}}}
  |Beta Quadrant = [[Beta Quadrant]]
|-
  |gamma
{{#if: {{{sector|}}}|
  |Gamma
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Sector
  |Gamma Quadrant = [[Gamma Quadrant]]
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
  |delta
{{{sector}}}}}
  |Delta
|-
  |Delta Quadrant = [[Delta Quadrant]]
{{#if: {{{quadrant|}}}|
  |#default = {{{quadrant}}}
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Quadrant
}}</format></data>
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
<data source="class"><label>Class</label><format>{{{class}}}</format></data>
{{{quadrant}}}}}
<data source="satellites"><label>Satellites</label><format>{{{satellites}}}</format></data>
|-
<data source="atmosphere"><label>Atmosphere</label><format>{{{atmosphere}}}</format></data>
{{#if: {{{class|}}}|
<data source="climate"><label>Climate</label><format>{{{class}}}</format></data>
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Planetary Class
<data source="hydrosphere"><label>Hydrosphere</label><format>{{{hydrosphere}}}</format></data>
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
<data source="affiliation"><label>Affiliation</label><format>{{{affiliation}}}</format></data>
{{{class}}}}}
<data source="natives"><label>Natives</label><format>{{{natives}}}</format></data>
|-
<data source="population"><label>Population</label><format>{{{population}}}</format></data>
{{#if: {{{satellites|}}}|
<data source="capital"><label>Capital</label><format>{{{capital}}}</format></data>
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Satellites
<header name="footer">[[Template:Planet]]</header>
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
</infobox>
{{{satellites}}}}}
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Planets]]
|-
{{#switch:{{{quadrant|}}}   
{{#if: {{{atmosphere|}}}|
  |alpha
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Atmosphere Type
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{atmosphere}}}}}
|-
{{#if: {{{climate|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Climate
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{climate}}}}}
|-
{{#if: {{{hydrosphere|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Hydrosphere
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{hysdrosphere}}}}}
|-
{{#if: {{{affiliation|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Affiliation
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{affiliation}}}}}
|-
{{#if: {{{natives|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Natives
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{natives}}}}}
|-
{{#if: {{{population|}}}{{{capital|}}}
{{!}} colspan="2" style="text-align: center; color: #e5e5ed; background-color:#2a4667c9; text-align:center; font-size:8pt;padding: 6px" {{!}} '''Political Information'''
}}
|-
{{#if: {{{population|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Population
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{population}}}}}
|-
{{#if: {{{capital|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Capital(s)
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{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]]
|}</div>
<includeonly>[[Category:Planets]]
{{DEFAULTSORT:{{PAGENAME}}}}</includeonly>
<includeonly>{{#switch:{{{quadrant|}}}   
   |Alpha
   |Alpha
   |[[Alpha Quadrant]]
   |[[Alpha Quadrant]]
   |Alpha Quadrant      = {{#if:{{NAMESPACE}} | | [[Category:Alpha Quadrant Astrometrics Database]]}}
   |Alpha Quadrant      = [[Category:Alpha Quadrant]]
  |beta
   |Beta
   |Beta
   |[[Beta Quadrant]]
   |[[Beta Quadrant]]
   |Beta Quadrant      = {{#if:{{NAMESPACE}} | | [[Category:Beta Quadrant Astrometrics Database]]}}
   |Beta Quadrant      = [[Category:Beta Quadrant]]
  |gamma
   |Gamma
   |Gamma
   |[[Gamma Quadrant]]
   |[[Gamma Quadrant]]
   |Gamma Quadrant      = {{#if:{{NAMESPACE}} | | [[Category:Gamma Quadrant Astrometrics Database]]}}
   |Gamma Quadrant      = [[Category:Gamma Quadrant]]
  |delta
   |Delta
   |Delta
   |[[Delta Quadrant]]
   |[[Delta Quadrant]]
  | [[Delta Quadrant]]
   |Delta Quadrant      = [[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 147: Line 105:
   |[[Romulan]]
   |[[Romulan]]
   |[[Romulan Empire]]
   |[[Romulan Empire]]
   |[[Romulan Star Empire]]     = {{#if:{{NAMESPACE}} | | [[Category:Romulan Astrometrics]]}}
   |[[Romulan Star Empire]] = [[Category:Romulan Astrometrics]]
}}
}}
}}
</includeonly><noinclude>
</includeonly>
<br clear=all>
<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 167: Line 128:
| 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 03:18, 18 August 2024


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


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
}}