Difference between revisions of "Template:Phenomenon"

Template page
m
(Updating the infobox template code, providing an example.)
Line 1: Line 1:
<div class="infobox">
<div class="infobox">
{| width="315" align="right" cellpadding="3" cellspacing="0" style="border-radius:13px;margin-bottom:0;padding-left:10px;"
{| class="ibtable" align="right" cellpadding="3" cellspacing="0"
{{#if: {{{image|}}}|
{{#if: {{{image|}}}|
{{!}} 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}}} }}
    {{!}} class="ibimage" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} {{{image}}}
|-
    {{!}}-
| colspan="2" style="text-align: center; color: #e5e5ed; font-size:larger; background-color:#304665!important; text-align:center;padding: .3rem 1.25rem;" | '''{{{name}}}'''
    {{!}} class="ibname" colspan="2" {{!}} '''{{{name}}}'''|
|-
        {{!}} class="ibname" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} '''{{{name}}}'''
{{#if: {{{map|}}}|
}}
{{!}} 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 }}
|-
|-
| colspan="2" style="text-align: center; color: #e5e5ed; background-color:#2a4667c9; text-align:center; font-size:8pt; padding: 6px" | '''Basic information'''
| class="ibheader" colspan="2" | '''Information'''
|-
|-
{{#if: {{{class|}}}|
{{#if: {{{class|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Class
{{!}} class="ibleft" {{!}} Class
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{class}}}}}
{{{class}}}
}}
|-
|-
{{#if: {{{starsystem|}}}|
{{#if: {{{starsystem|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Star System
{{!}} class="ibleft" {{!}} Star system
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{starsystem}}}}}
{{{starsystem}}}
}}
|-
|-
{{#if: {{{sector|}}}|
{{#if: {{{sector|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Sector
{{!}} class="ibleft" {{!}} Sector
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{sector}}}}}
{{{sector}}}
}}
|-
|-
{{#if: {{{quadrant|}}}|
{{#if: {{{quadrant|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Quadrant
{{!}} class="ibleft" {{!}} Quadrant
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{#switch:{{{quadrant|}}}
{{{quadrant}}}
  |Alpha
}}
  |[[Alpha Quadrant]]
  |Alpha Quadrant      = [[Alpha Quadrant]]
  |Beta
  |[[Beta Quadrant]]
  |Beta Quadrant      = [[Beta Quadrant]]
  |Gamma
  |[[Gamma Quadrant]]
  |Gamma Quadrant      = [[Gamma Quadrant]]
  |Delta
  |[[Delta Quadrant]]
  |Delta Quadrant      = [[Delta Quadrant]]
}}}}
|-
|-
{{#if: {{{satellites|}}}|
{{#if: {{{satellites|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Satellites
{{!}} class="ibleft" {{!}} Satellites
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{satellites}}}}}
{{{satellites}}}
}}
|-
|-
{{#if: {{{natives|}}}|
{{#if: {{{natives|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Natives
{{!}} class="ibleft" {{!}} Natives
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{natives}}}}}
{{{natives}}}
|- 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:Phenomenon]]
|-
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:Phenomenon]]
|}</div>
|}</div>
<includeonly>[[Category:Phenomenon]]{{DEFAULTSORT:{{PAGENAME}}}}
<includeonly>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Phenomenon]]{{DEFAULTSORT:{{{name}}}}}
{{#switch:{{{quadrant|}}}   
{{#switch:{{{quadrant|}}}   
   |Alpha
   |Alpha
   |[[Alpha Quadrant]]
   |[[Alpha Quadrant]]
   |Alpha Quadrant      = {{#if:{{NAMESPACE}} | | [[Category:Alpha Quadrant Astrometrics Database]]}}
   |Alpha Quadrant      = [[Category:Alpha Quadrant Astrometrics Database]][[Category:Alpha Quadrant]]
   |Beta
   |Beta
   |[[Beta Quadrant]]
   |[[Beta Quadrant]]
   |Beta Quadrant      = {{#if:{{NAMESPACE}} | | [[Category:Beta Quadrant Astrometrics Database]]}}
   |Beta Quadrant      = [[Category:Beta Quadrant Astrometrics Database]][[Category:Beta Quadrant]]
   |Gamma
   |Gamma
   |[[Gamma Quadrant]]
   |[[Gamma Quadrant]]
   |Gamma Quadrant      = {{#if:{{NAMESPACE}} | | [[Category:Gamma Quadrant Astrometrics Database]]}}
   |Gamma Quadrant      = [[Category:Gamma Quadrant Astrometrics Database]][[Category:Gamma Quadrant]]
   |Delta
   |Delta
   |[[Delta Quadrant]]
   |[[Delta Quadrant]]
   |Delta Quadrant      = {{#if:{{NAMESPACE}} | | [[Category:Delta Quadrant Astrometrics Database]]}}
   |Delta Quadrant      = [[Category:Delta Quadrant Astrometrics Database]][[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 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
Line 81: Line 75:
| starsystem =
| starsystem =
| sector =  
| sector =  
| quadrant =  
| quadrant = Please provide a a value for automatic categorisation.
| satellites =
| satellites =
| natives =  
| natives =  
| map = If no, leave blank
| 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==
{{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
| templatemode = nocats
}}
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>

Revision as of 11:44, 12 June 2022

{{{name}}}
Information
Template: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.

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

Example

The Eternal Rave
Information
Class

Kickass party

Sector

Sector Kickass

Quadrant

The Old Stomping Grounds

Satellites
  • The Greater Rave
  • The Lesser Rave
Natives

Rave goers

Template:Phenomenon


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