Difference between revisions of "Template:Phenomenon"

Template page
(Bringing up to scratch)
 
(12 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="class"><label>Class</label><format>{{{class}}}</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="starsystem"><label>Star system</label><format>{{{starsystem}}}</format></data>
|-
<data source="sector"><label>Sector</label><format>{{{sector}}}</format></data>
| colspan="2" style="text-align: center; color: #e5e5ed; background-color:#2a4667c9; text-align:center; font-size:8pt; padding: 6px" | '''Basic information'''
<data source="quadrant"><label>Quadrant</label><format>{{#switch:{{{quadrant|}}}
|-
| 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 Quadrant = [[Beta Quadrant]]
{{{starsystem }}}}}
| Gamma
|-
| Gamma Quadrant = [[Gamma Quadrant]]
{{#if: {{{sector|}}}|
| Delta
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Sector
| Delta Quadrant = [[Delta Quadrant]]
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
| #default = {{{quadrant}}}
{{{sector}}}}}
}}</format></data>
|-
<data source="satellites"><label>Satellites</label><format>{{{satellites}}}</format></data>
{{#if: {{{quadrant|}}}|
<data source="natives"><label>Natives</label><format>{{{natives}}}</format></data>
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Quadrant
<header name="footer">[[Template:Phenomenon]]</header>
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
</infobox>
{{{quadrant}}}}}
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Phenomenon]]{{DEFAULTSORT:{{{name}}}}}
|-
{{#switch:{{{quadrant|}}}
{{#if: {{{class|}}}|
  |Alpha
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Planetary Class
  |[[Alpha Quadrant]]
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
  |Alpha Quadrant      = [[Category:Alpha Quadrant]]
{{{class}}}}}
  |Beta
|-
  |[[Beta Quadrant]]
{{#if: {{{satellites|}}}|
  |Beta Quadrant      = [[Category:Beta Quadrant]]
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Satellites
  |Gamma
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
  |[[Gamma Quadrant]]
{{{satellites}}}}}
  |Gamma Quadrant      = [[Category:Gamma Quadrant]]
|-
  |Delta
{{#if: {{{natives|}}}|
  |[[Delta Quadrant]]
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Natives
  |Delta Quadrant      = [[Category:Delta Quadrant]]
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
}}
{{{natives}}}}}
}}
|- class="infobox-link" style="border-radius-bottom-right: 13px; border-radius-bottom-left: 13px;"
</includeonly>
|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:Phenomenon]]
{{DEFAULTSORT:{{PAGENAME}}}}</includeonly>
 
 
<noinclude>
<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 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.
<pre>
<pre>
{{Phenomenon
{{Phenomenon
| name =  
| name =  
| image =  
| image =  
| class =
| starsystem =
| starsystem =
| sector =  
| sector =  
| quadrant =  
| quadrant = Please provide a a value for automatic categorisation.
| class =
| satellites =
| satellites =
| natives =  
| natives =  
| 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>
{{clear}}
==Example==
==Example==
{{Phenomenon
{{Phenomenon
| name = Missing Sock Nebula
| name = The Eternal Rave
| image =  
| image =  
| starsystem = Classified
| class = Kickass party
| sector = Classified
| starsystem =  
| quadrant = Alpha
| sector = Sector Kickass
| class = Gaseous anomaly
| quadrant = The Old Stomping Grounds
| satellites =
| satellites = *The Greater Rave
| natives =  
*The Lesser Rave
| map =
| natives = Rave goers
| mapquadrant = Alpha
| templatemode = nocats
| mapletter =
| mapnumber =  
}}
}}
[[Category:Infobox Templates|{{PAGENAME}}]]
The following code block produces the infobox to the right as an example.
<pre>
{{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
}}</pre>
[[Category:Infobox Templates]]
{{clear}}
</noinclude>
</noinclude>

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