Template:Region: Difference between revisions
Template page
More actions
mNo edit summary |
Reworking the Region infobox, 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}}}''''' | |||
}} | |||
|- | |- | ||
{{#if: {{{major powers|}}}{{{minor powers|}}}| | {{#if: {{{major powers|}}}{{{minor powers|}}}| | ||
{{!}} | {{!}} class="ibheader" colspan="2" {{!}} '''Powers''' | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{major powers|}}}| | {{#if: {{{major powers|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Major powers | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{major powers}}} }} | {{{major powers}}} | ||
}} | |||
|- | |- | ||
{{#if: {{{minor powers|}}}| | {{#if: {{{minor powers|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Minor powers | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{minor powers}}} }} | {{{minor powers}}} | ||
}} | |||
|- | |- | ||
{{#if: {{{important | {{#if: {{{important places|}}}{{{important sector}}}| | ||
{{!}} | {{!}} class="ibheader" colspan="2" {{!}} '''Points of interest''' | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{important places|}}}| | {{#if: {{{important places|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Places | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{important places}}} }} | {{{important places}}} | ||
}} | |||
|- | |- | ||
| | | class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:Region]] | ||
|}</div> | |}</div> | ||
[[Category:Region]] | <includeonly> | ||
<noinclude> | {{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Region]]{{DEFAULTSORT:{{{name}}}}} | ||
{{#switch:{{{quadrant|}}} | |||
|Alpha | |||
|[[Alpha Quadrant]] | |||
|Alpha Quadrant = [[Category:Alpha Quadrant Astrometrics Database]] | |||
|Beta | |||
|[[Beta Quadrant]] | |||
|Beta Quadrant = [[Category:Beta Quadrant Astrometrics Database]] | |||
|Gamma | |||
|[[Gamma Quadrant]] | |||
|Gamma Quadrant = [[Category:Gamma Quadrant Astrometrics Database]] | |||
|Delta | |||
|[[Delta Quadrant]] | |||
|Delta Quadrant = [[Category:Delta Quadrant Astrometrics Database]] | |||
}} | |||
}} | |||
</includeonly><noinclude> | |||
==Region== | |||
Template for the Region infobox. Code to invoke below. | |||
<pre> | <pre> | ||
{{Region | {{Region | ||
| Line 42: | Line 63: | ||
| 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 = Sector Kickass | |||
| 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 = Sector Kickass | ||
| image = | |||
| major powers = Starbase Kickass | |||
| minor powers = Noise Control | |||
| important places = *Starbase Kickass | |||
*Noise Control's base | |||
| quadrant = Alpha | |||
}}</pre> | |||
[[Category:Infobox Templates]] | |||
{{clear}} | |||
</noinclude> | </noinclude> | ||
Revision as of 11:19, 12 June 2022
| {{{name}}} | |
| Points of interest | |
| Template:Region |
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
| Sector Kickass | |
| Powers | |
| Major powers |
Starbase Kickass |
| Minor powers |
Noise Control |
| Points of interest | |
| Places |
|
| Template:Region | |
The below code invokes the infobox to the right as an example.
{{Region
| name = Sector Kickass
| image =
| major powers = Starbase Kickass
| minor powers = Noise Control
| important places = *Starbase Kickass
*Noise Control's base
| quadrant = Alpha
}}