Difference between revisions of "Template:Region"
Template page
m (Protected "Template:Region" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
|||
(14 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>Powers</header> | |||
{{#if: {{{ | <data source="major powers"><label>Major powers</label></data> | ||
<data source="minor powers"><label>Minor powers</label></data> | |||
<header>Points of Interest</header> | |||
<data source="important places"><label>Places</label></data> | |||
<header name="footer">[[Template:Region]]</header> | |||
</infobox> | |||
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Region]]{{DEFAULTSORT:{{{name}}}}} | |||
{{{ | {{#switch:{{{quadrant|}}} | ||
|alpha | |||
{{# | |Alpha | ||
|[[Alpha Quadrant]] | |||
|Alpha Quadrant = [[Category:Alpha Quadrant]] | |||
|beta | |||
| | |Beta | ||
|[[Beta Quadrant]] | |||
|Beta Quadrant = [[Category:Beta Quadrant]] | |||
|gamma | |||
| | |Gamma | ||
|[[Gamma Quadrant]] | |||
|Gamma Quadrant = [[Category:Gamma Quadrant]] | |||
|delta | |||
|Delta | |||
| | |[[Delta Quadrant]] | ||
| | |Delta Quadrant = [[Category:Delta Quadrant]] | ||
}} | |||
| | }} | ||
</includeonly> | |||
</includeonly | |||
<noinclude> | <noinclude> | ||
==Region== | |||
Template for the Region infobox. Code to invoke below. | |||
<pre> | <pre> | ||
{{ | {{Region | ||
| name = | | name = | ||
| image = | | image = | ||
Line 43: | Line 43: | ||
| minor powers = Maybe just for the significant next step down? | | minor powers = Maybe just for the significant next step down? | ||
| important places = Those places that Trip Advisor says you just have to go to! | | important places = Those places that Trip Advisor says you just have to go to! | ||
| quadrant = Which quadrant is this in? Won't display but used for category purposes. Consult a map to ensure correct value. | |||
}}</pre> | |||
{{clear}} | |||
==Example== | |||
{{Region | |||
| name = Kickass Expanse | |||
| image = | |||
| major powers = Starbase Kickass | |||
| minor powers = Noise Control | |||
| important places = *Starbase Kickass | |||
*Noise Control's base | |||
| quadrant = Alpha | |||
| templatemode = nocats | |||
}} | |||
The below code invokes the infobox to the right as an example. | |||
<pre> | |||
{{Region | |||
| name = Kickass Expanse | |||
| image = | |||
| major powers = Starbase Kickass | |||
| minor powers = Noise Control | |||
| important places = *Starbase Kickass | |||
*Noise Control's base | |||
| quadrant = Alpha | |||
}}</pre> | }}</pre> | ||
{{clear}} | |||
[[Category:Infobox Templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 07:43, 6 June 2024
Region
Template for the Region infobox. Code to invoke below.
{{Region | name = | image = | major powers = The big boys on the block | minor powers = Maybe just for the significant next step down? | important places = Those places that Trip Advisor says you just have to go to! | quadrant = Which quadrant is this in? Won't display but used for category purposes. Consult a map to ensure correct value. }}
Example
The below code invokes the infobox to the right as an example.
{{Region | name = Kickass Expanse | image = | major powers = Starbase Kickass | minor powers = Noise Control | important places = *Starbase Kickass *Noise Control's base | quadrant = Alpha }}