Difference between revisions of "Template:Region"
Template page
(Reworking the Region infobox, providing an example.) |
m (Protected "Template:Region" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
(7 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>Powers</header> | |||
<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}}}}} | {{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Region]]{{DEFAULTSORT:{{{name}}}}} | ||
{{#switch:{{{quadrant|}}} | {{#switch:{{{quadrant|}}} | ||
|alpha | |||
|Alpha | |Alpha | ||
|[[Alpha Quadrant]] | |[[Alpha Quadrant]] | ||
|Alpha Quadrant = [[Category:Alpha Quadrant | |Alpha Quadrant = [[Category:Alpha Quadrant]] | ||
|beta | |||
|Beta | |Beta | ||
|[[Beta Quadrant]] | |[[Beta Quadrant]] | ||
|Beta Quadrant = [[Category:Beta Quadrant | |Beta Quadrant = [[Category:Beta Quadrant]] | ||
|gamma | |||
|Gamma | |Gamma | ||
|[[Gamma Quadrant]] | |[[Gamma Quadrant]] | ||
|Gamma Quadrant = [[Category:Gamma Quadrant | |Gamma Quadrant = [[Category:Gamma Quadrant]] | ||
|delta | |||
|Delta | |Delta | ||
|[[Delta Quadrant]] | |[[Delta Quadrant]] | ||
|Delta Quadrant = [[Category:Delta Quadrant | |Delta Quadrant = [[Category:Delta Quadrant]] | ||
}} | }} | ||
}} | }} | ||
</includeonly><noinclude> | </includeonly> | ||
<noinclude> | |||
==Region== | ==Region== | ||
Template for the Region infobox. Code to invoke below. | Template for the Region infobox. Code to invoke below. | ||
Line 68: | Line 48: | ||
==Example== | ==Example== | ||
{{Region | {{Region | ||
| name = | | name = Kickass Expanse | ||
| image = | | image = | ||
| major powers = Starbase Kickass | | major powers = Starbase Kickass | ||
Line 80: | Line 60: | ||
<pre> | <pre> | ||
{{Region | {{Region | ||
| name = | | name = Kickass Expanse | ||
| image = | | image = | ||
| major powers = Starbase Kickass | | major powers = Starbase Kickass | ||
Line 88: | Line 68: | ||
| quadrant = Alpha | | quadrant = Alpha | ||
}}</pre> | }}</pre> | ||
{{clear}} | |||
[[Category:Infobox Templates]] | [[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 }}