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"> | ||
{| | {| class="ibtable" align="right" cellpadding="3" cellspacing="0" | ||
{{#if: {{{image|}}}| | {{#if: {{{image|}}}| | ||
{{!}} colspan="2" | {{!}} 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}}}''' | |||
}} | |||
{{!}} colspan="2" | |||
|- | |- | ||
| | | class="ibheader" colspan="2" | '''Information''' | ||
|- | |- | ||
{{#if: {{{class|}}}| | {{#if: {{{class|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Class | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{class}}}}} | {{{class}}} | ||
}} | |||
|- | |- | ||
{{#if: {{{starsystem|}}}| | {{#if: {{{starsystem|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Star system | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{starsystem}}}}} | {{{starsystem}}} | ||
}} | |||
|- | |- | ||
{{#if: {{{sector|}}}| | {{#if: {{{sector|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Sector | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{sector}}}}} | {{{sector}}} | ||
}} | |||
|- | |- | ||
{{#if: {{{quadrant|}}}| | {{#if: {{{quadrant|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Quadrant | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{quadrant}}} | |||
}} | |||
|- | |- | ||
{{#if: {{{satellites|}}}| | {{#if: {{{satellites|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Satellites | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{satellites}}}}} | {{{satellites}}} | ||
}} | |||
|- | |- | ||
{{#if: {{{natives|}}}| | {{#if: {{{natives|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Natives | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{natives}}}}} | {{{natives}}} | ||
|- class=" | }} | ||
|- | |||
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:Phenomenon]] | |||
|}</div> | |}</div> | ||
<includeonly>[[Category:Phenomenon]]{{DEFAULTSORT:{{ | <includeonly> | ||
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Phenomenon]]{{DEFAULTSORT:{{{name}}}}} | |||
{{#switch:{{{quadrant|}}} | {{#switch:{{{quadrant|}}} | ||
|Alpha | |Alpha | ||
|[[Alpha Quadrant]] | |[[Alpha Quadrant]] | ||
|Alpha Quadrant = | |Alpha Quadrant = [[Category:Alpha Quadrant Astrometrics Database]][[Category:Alpha Quadrant]] | ||
|Beta | |Beta | ||
|[[Beta Quadrant]] | |[[Beta Quadrant]] | ||
|Beta Quadrant = | |Beta Quadrant = [[Category:Beta Quadrant Astrometrics Database]][[Category:Beta Quadrant]] | ||
|Gamma | |Gamma | ||
|[[Gamma Quadrant]] | |[[Gamma Quadrant]] | ||
|Gamma Quadrant = | |Gamma Quadrant = [[Category:Gamma Quadrant Astrometrics Database]][[Category:Gamma Quadrant]] | ||
|Delta | |Delta | ||
|[[Delta Quadrant]] | |[[Delta Quadrant]] | ||
|Delta Quadrant = | |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 = | ||
}} | }} | ||
</pre> | </pre> | ||
[[Category:Infobox Templates | {{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 |
|
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 }}