Difference between revisions of "Template:Phenomenon"
Template page
(Updating the infobox template code, providing an example.) |
(Bringing up to scratch) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <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: {{{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]] | ||
|Beta | |Beta | ||
|[[Beta Quadrant]] | |[[Beta Quadrant]] | ||
|Beta Quadrant = | |Beta Quadrant = [[Category:Beta Quadrant]] | ||
|Gamma | |Gamma | ||
|[[Gamma Quadrant]] | |[[Gamma Quadrant]] | ||
|Gamma Quadrant = | |Gamma Quadrant = [[Category:Gamma Quadrant]] | ||
|Delta | |Delta | ||
|[[Delta Quadrant]] | |[[Delta Quadrant]] | ||
|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 }}