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:
<div class="infobox">
<includeonly>
{| width="315" align="right" cellpadding="3" cellspacing="0" style="border-radius:13px;margin-bottom: 0;
<infobox theme="bravo">
{{#if: {{{image|}}}|
<title source="name">
{{!}} colspan="2" bgcolor={{{bgcolor_value|#222222; style="border-top-right-radius: 13px; border-top-left-radius: 13px; background: #f3f3f3 !important; color: #cccccc; font-size:smaller; text-align: center;padding: 10px;"}}} {{!}} {{{image}}} }}
<default>{{PAGENAME}}</default><format>'''''{{{name|}}}'''''</format>
|-
</title>
| colspan="2" style="text-align: center; color: #e5e5ed; font-size:larger; background-color:#2862a8 !important; text-align:center;padding: .3rem 1.25rem;" | ''{{{name}}}''
<image source="image"/>
|-
<header>Powers</header>
{{#if: {{{major powers|}}}{{{minor powers|}}}|
<data source="major powers"><label>Major powers</label></data>
{{!}} colspan="2" style="text-align: center; color: #e5e5ed; background-color:#4979b5; text-align:center; font-size:8pt;padding: 6px" {{!}} '''Powers'''
<data source="minor powers"><label>Minor powers</label></data>
}}
<header>Points of Interest</header>
|-
<data source="important places"><label>Places</label></data>
{{#if: {{{major powers|}}}|
<header name="footer">[[Template:Region]]</header>
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%; vertical-align:top;"}}} {{!}} Major Powers
</infobox>
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Region]]{{DEFAULTSORT:{{{name}}}}}
{{{major powers}}} }}
{{#switch:{{{quadrant|}}}
|-
  |alpha
{{#if: {{{minor powers|}}}|
  |Alpha
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%; vertical-align:top;"}}} {{!}} Minor Powers
  |[[Alpha Quadrant]]
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
  |Alpha Quadrant      = [[Category:Alpha Quadrant]]
{{{minor powers}}} }}
  |beta
|-
  |Beta
{{#if: {{{important sectors|}}}{{{important places|}}}|
  |[[Beta Quadrant]]
{{!}} colspan="2" style="text-align: center; color: #e5e5ed; background-color:#4979b5; text-align:center; font-size:8pt;padding: 6px" {{!}} '''Points of Interest'''
  |Beta Quadrant      = [[Category:Beta Quadrant]]
}}
  |gamma
|-
  |Gamma
{{#if: {{{important places|}}}|
  |[[Gamma Quadrant]]
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%; vertical-align:top;"}}} {{!}} Important Places
  |Gamma Quadrant      = [[Category:Gamma Quadrant]]
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
  |delta
{{{important places}}} }}
  |Delta
|-
  |[[Delta Quadrant]]
|- class="infobox-link" style="border-radius-bottom-right: 13px; border-radius-bottom-left: 13px;"
  |Delta Quadrant      = [[Category:Delta Quadrant]]
|colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px; text-align: center; color: #F67F00; font-size: 8pt; background-color:#4979b5; text-align:center;padding: 6px 0;" | [[Template:Region]]
}}
|}</div>
}}
<includeonly>[[Category:Region]]
</includeonly>
</includeonly><noinclude>
<noinclude>
<noinclude>
<br clear=all>
==Region==
Template for the Region infobox. Code to invoke below.
<pre>
<pre>
{{Quadrant
{{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>


<noinclude>[[Category:Infobox Templates|Region]]
{{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
}}