Difference between revisions of "Template:Phenomenon"

Template page
m
(Bringing up to scratch)
 
(2 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="class"><label>Class</label><format>{{{class}}}</format></data>
|-
<data source="starsystem"><label>Star system</label><format>{{{starsystem}}}</format></data>
| class="ibheader" colspan="2" | '''Information'''
<data source="sector"><label>Sector</label><format>{{{sector}}}</format></data>
|-
<data source="quadrant"><label>Quadrant</label><format>{{#switch:{{{quadrant|}}}
{{#if: {{{class|}}}|
{{!}} class="ibleft" {{!}} Class
{{!}} class="ibright" {{!}}
{{{class}}}
}}
|-
{{#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]]
Line 40: Line 18:
| Delta
| Delta
| Delta Quadrant = [[Delta Quadrant]]
| Delta Quadrant = [[Delta Quadrant]]
}}
| #default = {{{quadrant}}}
}}
}}</format></data>
|-
<data source="satellites"><label>Satellites</label><format>{{{satellites}}}</format></data>
{{#if: {{{satellites|}}}|
<data source="natives"><label>Natives</label><format>{{{natives}}}</format></data>
{{!}} class="ibleft" {{!}} Satellites
<header name="footer">[[Template:Phenomenon]]</header>
{{!}} class="ibright" {{!}}
</infobox>
{{{satellites}}}
}}
|-
{{#if: {{{natives|}}}|
{{!}} class="ibleft" {{!}} Natives
{{!}} class="ibright" {{!}}
{{{natives}}}
}}
|-
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:Phenomenon]]
|}</div>
<includeonly>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Phenomenon]]{{DEFAULTSORT:{{{name}}}}}
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Phenomenon]]{{DEFAULTSORT:{{{name}}}}}
{{#switch:{{{quadrant|}}}   
{{#switch:{{{quadrant|}}}   
   |Alpha
   |Alpha
   |[[Alpha Quadrant]]
   |[[Alpha Quadrant]]
   |Alpha Quadrant      = [[Category:Alpha Quadrant Astrometrics Database]][[Category:Alpha Quadrant]]
   |Alpha Quadrant      = [[Category:Alpha Quadrant]]
   |Beta
   |Beta
   |[[Beta Quadrant]]
   |[[Beta Quadrant]]
   |Beta Quadrant      = [[Category:Beta Quadrant Astrometrics Database]][[Category:Beta Quadrant]]
   |Beta Quadrant      = [[Category:Beta Quadrant]]
   |Gamma
   |Gamma
   |[[Gamma Quadrant]]
   |[[Gamma Quadrant]]
   |Gamma Quadrant      = [[Category:Gamma Quadrant Astrometrics Database]][[Category:Gamma Quadrant]]
   |Gamma Quadrant      = [[Category:Gamma Quadrant]]
   |Delta
   |Delta
   |[[Delta Quadrant]]
   |[[Delta Quadrant]]
   |Delta Quadrant      = [[Category:Delta Quadrant Astrometrics Database]][[Category:Delta Quadrant]]
   |Delta Quadrant      = [[Category:Delta Quadrant]]
}}
}}
}}
}}
</includeonly><noinclude>
</includeonly>
<noinclude>
==Phenomenon==
==Phenomenon==
This infobox is to be used for articles involving phenomenon that don't fit into the existing infoboxes. It can be used to describe stellar and planetary phenomenon as well as any other that defies existing classifications. The code below will generate the infobox as required. Lines without a corresponding value will not be generated when rendering the article.
This infobox is to be used for articles involving phenomenon that don't fit into the existing infoboxes. It can be used to describe stellar and planetary phenomenon as well as any other that defies existing classifications. The code below will generate the infobox as required. Lines without a corresponding value will not be generated when rendering the article.

Latest revision as of 02:13, 18 August 2024


Phenomenon

This infobox is to be used for articles involving phenomenon that don't fit into the existing infoboxes. It can be used to describe stellar and planetary phenomenon as well as any other that defies existing classifications. The code below will generate the infobox as required. Lines without a corresponding value will not be generated when rendering the article.

{{Phenomenon
| name = 
| image = 
| class =
| starsystem =
| sector = 
| quadrant = Please provide a a value for automatic categorisation.
| satellites =
| natives = 
}}

Example


The following code block produces the infobox to the right as an example.

{{Phenomenon
| name = The Eternal Rave
| image = 
| class = Kickass party
| starsystem = 
| sector = Sector Kickass
| quadrant = The Old Stomping Grounds
| satellites = *The Greater Rave
*The Lesser Rave
| natives = Rave goers
}}