Difference between revisions of "Template:Planet"

Template page
m
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox">
<includeonly>
{| class="ibtable" align="right" cellpadding="3" cellspacing="0"
<infobox theme="bravo">
{{#if: {{{image|}}}|
<title source="name">
    {{!}} class="ibimage" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} {{{image}}}
     <default>{{pagename}}</default><format>{{{name|}}}</format>
     {{!}}-
</title>
    {{!}} class="ibname" colspan="2" {{!}} '''{{{name}}}'''|
<image source="image"/>
        {{!}} class="ibname" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} '''{{{name}}}'''
<header>Information</header>
}}
<data source="starsystem"><label>Star system</label><format>{{{starsystem}}}</format></data>
|-
<data source="sector"><label>Sector</label><format>{{{sector}}}</format></data>
| class="ibheader" colspan="2" | '''Information'''
<data source="quadrant"><label>Quadrant</label><format>{{#switch:{{{quadrant|}}}
|-
  |alpha
{{#if: {{{starsystem|}}}|
{{!}} class="ibleft" {{!}} Star system
{{!}} class="ibright" {{!}}
{{{starsystem}}}
}}
|-
{{#if: {{{sector|}}}|
{{!}} class="ibleft" {{!}} Sector
{{!}} class="ibright" {{!}}
{{{sector}}}
}}
|-
{{#if: {{{quadrant|}}}|
{{!}} class="ibleft" {{!}} Quadrant
{{!}} class="ibright" {{!}}
{{#switch:{{{quadrant|}}}
   |Alpha
   |Alpha
   |Alpha Quadrant = [[Alpha Quadrant]]
   |Alpha Quadrant = [[Alpha Quadrant]]
  |beta
   |Beta
   |Beta
   |Beta Quadrant = [[Beta Quadrant]]
   |Beta Quadrant = [[Beta Quadrant]]
  |gamma
   |Gamma
   |Gamma
   |Gamma Quadrant = [[Gamma Quadrant]]
   |Gamma Quadrant = [[Gamma Quadrant]]
  |delta
   |Delta
   |Delta
   |Delta Quadrant = [[Delta Quadrant]]
   |Delta Quadrant = [[Delta Quadrant]]
   |#default = {{{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>
{{#if: {{{class|}}}|
<data source="atmosphere"><label>Atmosphere</label><format>{{{atmosphere}}}</format></data>
{{!}} class="ibleft" {{!}} Class
<data source="climate"><label>Climate</label><format>{{{class}}}</format></data>
{{!}} class="ibright" {{!}}
<data source="hydrosphere"><label>Hydrosphere</label><format>{{{hydrosphere}}}</format></data>
{{{class}}}
<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>
{{#if: {{{satellites|}}}|
<data source="capital"><label>Capital</label><format>{{{capital}}}</format></data>
{{!}} class="ibleft" {{!}} Satellites
<header name="footer">[[Template:Planet]]</header>
{{!}} class="ibright" {{!}}
</infobox>
{{{satellites}}}
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Planets]]
}}
|-
{{#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>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Planets]]{{DEFAULTSORT:{{{name}}}}}
{{#switch:{{{quadrant|}}}   
{{#switch:{{{quadrant|}}}   
  |alpha
   |Alpha
   |Alpha
   |[[Alpha Quadrant]]
   |[[Alpha Quadrant]]
   |Alpha Quadrant      = [[Category:Alpha Quadrant Astrometrics Database]][[Category:Alpha Quadrant]]
   |Alpha Quadrant      = [[Category:Alpha Quadrant]]
  |beta
   |Beta
   |Beta
   |[[Beta Quadrant]]
   |[[Beta Quadrant]]
   |Beta Quadrant      = [[Category:Beta Quadrant Astrometrics Database]][[Category:Beta Quadrant]]
   |Beta Quadrant      = [[Category:Beta Quadrant]]
  |gamma
   |Gamma
   |Gamma
   |[[Gamma Quadrant]]
   |[[Gamma Quadrant]]
   |Gamma Quadrant      = [[Category:Gamma Quadrant Astrometrics Database]][[Category:Gamma Quadrant]]
   |Gamma Quadrant      = [[Category:Gamma Quadrant]]
  |delta
   |Delta
   |Delta
   |[[Delta Quadrant]]
   |[[Delta Quadrant]]
   |Delta Quadrant      = [[Category:Delta Quadrant Astrometrics Database]][[Category:Delta Quadrant]]
   |Delta Quadrant      = [[Category:Delta Quadrant]]
}}
}}
{{#switch:{{{affiliation|}}}   
{{#switch:{{{affiliation|}}}   
Line 165: Line 108:
}}
}}
}}
}}
</includeonly><noinclude>
</includeonly>
<noinclude>
==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.
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.

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