Difference between revisions of "Template:Region"

Template page
m (Protected "Template:Region" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(5 intermediate revisions 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|}}}   
  |alpha
   |Alpha
   |Alpha
   |[[Alpha Quadrant]]
   |[[Alpha Quadrant]]
   |Alpha Quadrant      = [[Category:Alpha Quadrant Astrometrics Database]][[Category:Alpha Quadrant]]
   |Alpha Quadrant      = [[Category:Alpha Quadrant]]
  |beta
   |Beta
   |Beta
   |[[Beta Quadrant]]
   |[[Beta Quadrant]]
   |Beta Quadrant      = [[Category:Beta Quadrant Astrometrics Database]][[Category:Beta Quadrant]]
   |Beta Quadrant      = [[Category:Beta Quadrant]]
  |gamma
   |Gamma
   |Gamma
   |[[Gamma Quadrant]]
   |[[Gamma Quadrant]]
   |Gamma Quadrant      = [[Category:Gamma Quadrant Astrometrics Database]][[Category:Gamma Quadrant]]
   |Gamma Quadrant      = [[Category:Gamma Quadrant]]
  |delta
   |Delta
   |Delta
   |[[Delta Quadrant]]
   |[[Delta Quadrant]]
   |Delta Quadrant      = [[Category:Delta Quadrant Astrometrics Database]][[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 = Sector Kickass
| 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]]
{{clear}}
</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
}}