Difference between revisions of "Template:Region"

Template page
m
m (Updating to the PI standard)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div class="infobox">
{| class="ibtable" align="right" cellpadding="3" cellspacing="0"
{{#if: {{{image|}}}|
    {{!}} 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|}}}|
{{!}} class="ibheader" colspan="2" {{!}} '''Powers'''
}}
|-
{{#if: {{{major powers|}}}|
{{!}} class="ibleft" {{!}} Major powers
{{!}} class="ibright" {{!}}
{{{major powers}}}
}}
|-
{{#if: {{{minor powers|}}}|
{{!}} class="ibleft" {{!}} Minor powers
{{!}} class="ibright" {{!}}
{{{minor powers}}}
}}
|-
{{#if: {{{important places|}}}{{{important sector}}}|
{{!}} class="ibheader" colspan="2" {{!}} '''Points of interest'''
}}
|-
{{#if: {{{important places|}}}|
{{!}} class="ibleft" {{!}} Places
{{!}} class="ibright" {{!}}
{{{important places}}}
}}
|-
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:Region]]
|}</div>
<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|}}}   
Line 57: Line 32:
}}
}}
}}
}}
</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 92: Line 68:
| quadrant = Alpha
| quadrant = Alpha
}}</pre>
}}</pre>
{{clear}}
[[Category:Infobox Templates]]
[[Category:Infobox Templates]]
{{clear}}
</noinclude>
</noinclude>

Latest revision as of 04:36, 28 May 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
}}