Difference between revisions of "Template:Region"

Template page
m
(Reworking the Region infobox, providing an example.)
Line 1: Line 1:
<div class="infobox">
<div class="infobox">
{| width="315" align="right" cellpadding="3" cellspacing="0" style="border-radius:13px;margin-bottom:0;padding-left:10px;"
{| class="ibtable" align="right" cellpadding="3" cellspacing="0"
{{#if: {{{image|}}}|
{{#if: {{{image|}}}|
{{!}} 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}}} }}
    {{!}} class="ibimage" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} {{{image}}}
|-
    {{!}}-
| colspan="2" style="text-align: center; color: #e5e5ed; font-size:larger; background-color:#304665 !important; text-align:center;padding: .3rem 1.25rem;" | '''''{{{name}}}'''''
    {{!}} 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|}}}|  
{{!}} colspan="2" style="text-align: center; color: #e5e5ed; background-color:#2a4667c9; text-align:center; font-size:8pt;padding: 6px" {{!}} '''Powers'''
{{!}} class="ibheader" colspan="2" {{!}} '''Powers'''
}}  
}}
|-
|-
{{#if: {{{major powers|}}}|
{{#if: {{{major powers|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%; vertical-align:top;"}}} {{!}} Major Powers
{{!}} class="ibleft" {{!}} Major powers
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{major powers}}} }}
{{{major powers}}}
}}
|-
|-
{{#if: {{{minor powers|}}}|
{{#if: {{{minor powers|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%; vertical-align:top;"}}} {{!}} Minor Powers
{{!}} class="ibleft" {{!}} Minor powers
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{minor powers}}} }}
{{{minor powers}}}
}}
|-
|-
{{#if: {{{important sectors|}}}{{{important places|}}}|  
{{#if: {{{important places|}}}{{{important sector}}}|  
{{!}} colspan="2" style="text-align: center; color: #e5e5ed; background-color:#2a4667c9; text-align:center; font-size:8pt;padding: 6px" {{!}} '''Points of Interest'''
{{!}} class="ibheader" colspan="2" {{!}} '''Points of interest'''
}}  
}}
|-
|-
{{#if: {{{important places|}}}|
{{#if: {{{important places|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%; vertical-align:top;"}}} {{!}} Important Places
{{!}} class="ibleft" {{!}} Places
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
{{!}} class="ibright" {{!}}  
{{{important places}}} }}
{{{important places}}}
}}
|-
|-
|- class="infobox-link" style="border-radius-bottom-right: 13px; border-radius-bottom-left: 13px;"
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:Region]]
|colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px; text-align: center; color: #F67F00; font-size: 8pt; background-color:#2a4667c9; text-align:center;padding: 6px 0;" | [[Template:Region]]
|}</div>
|}</div>
[[Category:Region]]
<includeonly>
<noinclude>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Region]]{{DEFAULTSORT:{{{name}}}}}
<br clear=all>
{{#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>
<pre>
 
{{Region
<noinclude>[[Category:Infobox Templates|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
  • Starbase Kickass
  • Noise Control's base
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
}}