Difference between revisions of "Template:Phenomenon"
Template page
m |
(Bringing up to scratch) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <includeonly> | ||
<infobox theme="bravo"> | |||
{{ | <title source="name"> | ||
<default>{{pagename}}</default><format>{{{name|}}}</format> | |||
</title> | |||
<image source="image"/> | |||
<header>Information</header> | |||
{{# | <data source="class"><label>Class</label><format>{{{class}}}</format></data> | ||
<data source="starsystem"><label>Star system</label><format>{{{starsystem}}}</format></data> | |||
| | <data source="sector"><label>Sector</label><format>{{{sector}}}</format></data> | ||
| | <data source="quadrant"><label>Quadrant</label><format>{{#switch:{{{quadrant|}}} | ||
| | | Alpha | ||
| Alpha Quadrant = [[Alpha Quadrant]] | |||
| Beta | |||
| Beta Quadrant = [[Beta Quadrant]] | |||
{{{ | | Gamma | ||
| Gamma Quadrant = [[Gamma Quadrant]] | |||
| Delta | |||
| Delta Quadrant = [[Delta Quadrant]] | |||
| #default = {{{quadrant}}} | |||
{{{ | }}</format></data> | ||
<data source="satellites"><label>Satellites</label><format>{{{satellites}}}</format></data> | |||
<data source="natives"><label>Natives</label><format>{{{natives}}}</format></data> | |||
<header name="footer">[[Template:Phenomenon]]</header> | |||
</infobox> | |||
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Phenomenon]]{{DEFAULTSORT:{{{name}}}}} | |||
{{#if: {{{ | |||
{{#switch:{{{quadrant|}}} | {{#switch:{{{quadrant|}}} | ||
|Alpha | |Alpha | ||
| | |[[Alpha Quadrant]] | ||
| | |Alpha Quadrant = [[Category:Alpha Quadrant]] | ||
| | |Beta | ||
|[[Beta Quadrant]] | |||
| | |Beta Quadrant = [[Category:Beta Quadrant]] | ||
|Gamma | |||
|[[Gamma Quadrant]] | |||
|Gamma Quadrant = [[Category:Gamma Quadrant]] | |||
|Delta | |||
|[[Delta Quadrant]] | |||
|Delta Quadrant = [[Category:Delta Quadrant]] | |||
}} | |||
}} | |||
</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 | ||
Line 62: | Line 51: | ||
| starsystem = | | starsystem = | ||
| sector = | | sector = | ||
| quadrant = | | quadrant = Please provide a a value for automatic categorisation. | ||
| satellites = | | satellites = | ||
| natives = | | natives = | ||
}} | }} | ||
</pre> | </pre> | ||
{{clear}} | |||
==Example== | ==Example== | ||
{{Phenomenon | {{Phenomenon | ||
| name = | | name = The Eternal Rave | ||
| image = | | image = | ||
| class = | | class = Kickass party | ||
| starsystem = | | starsystem = | ||
| sector = | | sector = Sector Kickass | ||
| quadrant = | | quadrant = The Old Stomping Grounds | ||
| satellites = | | satellites = *The Greater Rave | ||
| natives = | *The Lesser Rave | ||
| | | natives = Rave goers | ||
| templatemode = nocats | |||
}} | }} | ||
[[Category:Infobox Templates | 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 }}