Difference between revisions of "Template:Planet"

Template page
m
m
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox">
{| class="ibtable" align="right" cellpadding="3" cellspacing="0"
{{#if: {{{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}}}'''
}}
|-
| class="ibheader" colspan="2" | '''Information'''
|-
{{#if: {{{starsystem|}}}|
{{!}} class="ibleft" {{!}} Star system
{{!}} class="ibright" {{!}} {{{starsystem}}}
}}
|-
{{#if: {{{sector|}}}|
{{!}} class="ibleft" {{!}} Sector
{{!}} class="ibright" {{!}} {{{sector}}}
}}
|-
{{#if: {{{quadrant|}}}|
{{!}} class="ibleft" {{!}} Quadrant
{{!}} class="ibright" {{!}} {{{quadrant}}}
}}
|-
{{#if: {{{class|}}}|
{{!}} class="ibleft" {{!}} Class
{{!}} class="ibright" {{!}} {{{class}}}
}}
|-
{{#if: {{{satellites|}}}|
{{!}} class="ibleft" {{!}} Satellites
{{!}} class="ibright" {{!}} {{{satellites}}}
}}
|-
{{#if: {{{atmosphere|}}}|
{{!}} class="ibleft" {{!}} Atmosphere
{{!}} class="ibright" {{!}} {{{atmosphere}}}
}}
|-
{{#if: {{{climate|}}}|
{{!}} class="ibleft" {{!}} Climate
{{!}} class="ibright" {{!}} {{{climate}}}
}}
|-
{{#if: {{{hydrosphere|}}}|
{{!}} class="ibleft" {{!}} Hydrosphere
{{!}} class="ibright" {{!}} {{{hydrosphere}}}
}}
|-
{{#if: {{{affiliation|}}}|
{{!}} class="ibleft" {{!}} Affiliation
{{!}} class="ibright" {{!}} {{{affiliation}}}
}}
|-
{{#if: {{{natives|}}}|
{{!}} class="ibleft" {{!}} Natives
{{!}} class="ibright" {{!}} {{{natives}}}
}}
|-
{{#if: {{{population|}}}|
{{!}} class="ibleft" {{!}} Population
{{!}} class="ibright" {{!}} {{{population}}}
}}
|-
{{#if: {{{capital|}}}|
{{!}} class="ibleft" {{!}} Capital(s)
{{!}} class="ibright" {{!}} {{{capital}}}
}}
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:Planet]]
|}</div>
<includeonly>
<includeonly>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Planets]]{{DEFAULTSORT:{{{name}}}}}
<infobox theme="bravo">
<title source="name">
    <default>{{pagename}}</default><format>{{{name|}}}</format>
</title>
<image source="image"/>
<header>Information</header>
<data source="starsystem"><label>Star system</label><format>{{{starsystem}}}</format></data>
<data source="sector"><label>Sector</label><format>{{{sector}}}</format></data>
<data source="quadrant"><label>Quadrant</label><format>{{#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}}}
}}</format></data>
<data source="class"><label>Class</label><format>{{{class}}}</format></data>
<data source="satellites"><label>Satellites</label><format>{{{satellites}}}</format></data>
<data source="atmosphere"><label>Atmosphere</label><format>{{{atmosphere}}}</format></data>
<data source="climate"><label>Climate</label><format>{{{class}}}</format></data>
<data source="hydrosphere"><label>Hydrosphere</label><format>{{{hydrosphere}}}</format></data>
<data source="affiliation"><label>Affiliation</label><format>{{{affiliation}}}</format></data>
<data source="natives"><label>Natives</label><format>{{{natives}}}</format></data>
<data source="population"><label>Population</label><format>{{{population}}}</format></data>
<data source="capital"><label>Capital</label><format>{{{capital}}}</format></data>
<header name="footer">[[Template:Planet]]</header>
</infobox>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Planets]]
{{#switch:{{{quadrant|}}}   
{{#switch:{{{quadrant|}}}   
  |alpha
   |Alpha
   |Alpha
   |[[Alpha Quadrant]]
   |[[Alpha Quadrant]]
   |Alpha Quadrant      = {{#if:{{quadrant}} | | [[Category:Alpha Quadrant Astrometrics Database]]}}
   |Alpha Quadrant      = [[Category:Alpha Quadrant]]
  |beta
   |Beta
   |Beta
   |[[Beta Quadrant]]
   |[[Beta Quadrant]]
   |Beta Quadrant      = {{#if:{{quadrant}} | | [[Category:Beta Quadrant Astrometrics Database]]}}
   |Beta Quadrant      = [[Category:Beta Quadrant]]
  |gamma
   |Gamma
   |Gamma
   |[[Gamma Quadrant]]
   |[[Gamma Quadrant]]
   |Gamma Quadrant      = {{#if:{{quadrant}} | | [[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:{{quadrant}} | | [[Category:Delta Quadrant Astrometrics Database]]}}
}}
}}
{{#switch:{{{affiliation|}}}   
{{#switch:{{{affiliation|}}}   
Line 92: Line 57:
   |[[Federation]]
   |[[Federation]]
   |United Federation of Planets
   |United Federation of Planets
  |[[United Federation of Planets]]
   |UFP
   |UFP
   |[[United Federation of Planets]]     = {{#if:{{affiliation}} | | [[Category:Federation Astrometrics]]}}
   |[[UFP]] = [[Category:Federation Astrometrics]]
   |Breen
   |Breen
  |[[Breen Confederacy]]
   |Breen Confederacy
   |Breen Confederacy
   |Breen     = {{#if:{{affiliation}} | | [[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:{{affiliation}} | | [[Category:Cardassian Astrometrics]]}}
   |Dominion
   |Dominion
   |The Dominion
   |The Dominion
   |[[Dominion]]
   |[[Dominion]]
   |[[The Dominion]]     = {{#if:{{affiliation}} | | [[Category:Dominion Astrometrics]]}}
   |[[The Dominion]] = [[Category:Dominion Astrometrics]]
   |Gorn
   |Gorn
   |Gorn Hegemony
   |Gorn Hegemony
   |[Gorn Hegemony]] = {{#if:{{affiliation}} | | [[Category:Gorn Astrometrics]]}}
   |[[Gorn Hegemony]] = [[Category:Gorn Astrometrics]]
   |Tzenkethi
   |Tzenkethi
   |Tzenkethi Coalition
   |Tzenkethi Coalition
   |[Tzenkethi Coalition]] = {{#if:{{affiliation}} | | [[Category:Tzenkethi Astrometrics]]}}
   |[[Tzenkethi Coalition]] = [[Category:Tzenkethi Astrometrics]]
   |Kzinti
   |Kzinti
   |Kzinti Patriarchy
   |Kzinti Patriarchy
   |[Kzinti Patriarchy]] = {{#if:{{affiliation}} | | [[Category:Kzinti Astrometrics]]}}
   |[[Kzinti Patriarchy]] = [[Category:Kzinti Astrometrics]]
   |Ferengi
   |Ferengi
   |Ferengi Alliance
   |Ferengi Alliance
   |[Ferengi Alliance]] = {{#if:{{affiliation}} | | [[Category:Ferengi Astrometrics]]}}
   |[[Ferengi Alliance]] = [[Category:Ferengi Astrometrics]]
   |Klingon
   |Klingon
   |Klingon Empire
   |Klingon Empire
   |[[Klingon]]
   |[[Klingon]]
   |[[Klingon Empire]]     = {{#if:{{affiliation}} | | [[Category:Klingon Astrometrics]]}}
   |[[Klingon Empire]] = [[Category:Klingon Astrometrics]]
   |Sheliak
   |Sheliak
   |Sheliak Corporate
   |Sheliak Corporate
   |[Sheliak Corporate]] = {{#if:{{affiliation}} | | [[Category:Sheliak Astrometrics]]}}
   |[[Sheliak Corporate]] = [[Category:Sheliak Astrometrics]]
   |Talarian
   |Talarian
   |Talarian Empire
   |Talarian Empire
   |[Talarian Empire]] = {{#if:{{affiliation}} | | [[Category:Talarian Astrometrics]]}}
   |[[Talarian Empire]] = [[Category:Talarian Astrometrics]]
   |Firat Federation
   |Firat Federation
   |First Federation
   |[[First Federation]] = [[Category:First Federation Astrometrics]]
  |[First Federation]] = {{#if:{{affiliation}} | | [[Category:First Federation Astrometrics]]}}
   |Independent
   |Independent
   |Independent Planets
   |Independent Planets
   |[Independent Planets]] = {{#if:{{affiliation}} | | [[Category:Independent Astrometrics]]}}
   |[[Independent Planets]] = [[Category:Independent Astrometrics]]
   |Romulan
   |Romulan
   |Romulan Star Empire
   |Romulan Star Empire
Line 141: Line 105:
   |[[Romulan]]
   |[[Romulan]]
   |[[Romulan Empire]]
   |[[Romulan Empire]]
   |[[Romulan Star Empire]]     = {{#if:{{affiliation}} | | [[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 164: Line 130:
}}
}}
</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
}}