Difference between revisions of "Template:Quadrant"

From Bravo Fleet
m
(Updating the template to the new standard and including an example section. Not that this template will get widely used. Now does rounded top corners with or without an image.)
 
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}}} Quadrant'''''
+
    {{!}} class="ibname" colspan="2" {{!}} '''''{{{name}}} Quadrant'''''|
 +
        {{!}} class="ibname" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} '''''{{{name}}} Quadrant'''''
 +
}}
 
|-
 
|-
 
{{#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 sectors|}}}|
 
{{#if: {{{important sectors|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%; vertical-align:top;"}}} {{!}} Important Sectors
+
{{!}} class="ibleft" {{!}} Sectors
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}  
+
{{!}} class="ibright" {{!}}  
{{{important sectors}}} }}
+
{{{important sectors}}}
 +
}}
 
|-
 
|-
 
{{#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:Quadrant]]
|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:Quadrant]]
+
|}
|}</div>
+
</div>
[[Category:Quadrant]]
+
<includeonly>
<noinclude>
+
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Quadrant]]{{DEFAULTSORT:{{{name}}}}}
<br clear=all>
+
}}
 +
</includeonly><noinclude>
 +
==Quadrant==
 
<pre>
 
<pre>
 
{{Quadrant
 
{{Quadrant
Line 49: Line 57:
 
| 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!
 
}}</pre>
 
}}</pre>
 
+
{{clear}}
<noinclude>[[Category:Infobox Templates|Quadrant]]
+
==Example==
 +
{{Quadrant
 +
| name = Stomping Grounds
 +
| image =
 +
| major powers =
 +
{{belligerent|Starbase Kickass}}
 +
{{belligerent|The Eternal Rave}}
 +
{{belligerent|Tkon1.png|Grandma}}
 +
{{belligerent|Tholian Assembly.png|Old Lady Higgins}}
 +
| minor powers =
 +
{{belligerent|FEDicon.png|The Feds}}
 +
{{belligerent|KDFicon.png|Clingwrap Empire}}
 +
{{belligerent|ROMicon.png|Under new management}}
 +
{{belligerent|Romulanfreestate.png|New Empire, who dis?}}
 +
{{belligerent|Romrepublictile1.png|Votey Space Elves}}
 +
| important sectors = {{plainlist|
 +
*Risa
 +
*Casperia
 +
*Lisipia
 +
}}
 +
| important places = Quark's Bar and Grill
 +
| templatemode = nocats
 +
}}
 +
The following block of code generates the infobox to the right.
 +
<pre>
 +
{{Quadrant
 +
| name = Stomping Grounds
 +
| image =
 +
| major powers =
 +
{{belligerent|Starbase Kickass}}
 +
{{belligerent|The Eternal Rave}}
 +
{{belligerent|Tkon1.png|Grandma}}
 +
{{belligerent|Tholian Assembly.png|Old Lady Higgins}}
 +
| minor powers =
 +
{{belligerent|FEDicon.png|The Feds}}
 +
{{belligerent|KDFicon.png|Clingwrap Empire}}
 +
{{belligerent|ROMicon.png|Under new management}}
 +
{{belligerent|Romulanfreestate.png|New Empire, who dis?}}
 +
{{belligerent|Romrepublictile1.png|Votey Space Elves}}
 +
| important sectors = {{plainlist|
 +
*Risa
 +
*Casperia
 +
*Lisipia
 +
}}
 +
| important places = Quark's Bar and Grill
 +
}}</pre>
 +
{{clear}}
 +
[[Category:Infobox Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 11:00, 12 June 2022

{{{name}}} Quadrant
Points of interest
Template:Quadrant

Quadrant

{{Quadrant
| name = 
| image = 
| major powers = The big boys on the block
| minor powers = Maybe just for the significant next step down?
| important sectors = For the important sectors
| important places = Those places that Trip Advisor says you just have to go to!
}}

Example

Stomping Grounds Quadrant
Powers
Major powers
Blankflag.png
Starbase Kickass


Blankflag.png
The Eternal Rave


Tkon1.png
Grandma


Tholian Assembly.png
Old Lady Higgins
Minor powers
FEDicon.png
The Feds


KDFicon.png
Clingwrap Empire


ROMicon.png
Under new management


Romulanfreestate.png
New Empire, who dis?


Romrepublictile1.png
Votey Space Elves
Points of interest
Sectors
  • Risa
  • Casperia
  • Lisipia
Places

Quark's Bar and Grill

Template:Quadrant


The following block of code generates the infobox to the right.

{{Quadrant
| name = Stomping Grounds
| image = 
| major powers = 
{{belligerent|Starbase Kickass}}
{{belligerent|The Eternal Rave}}
{{belligerent|Tkon1.png|Grandma}}
{{belligerent|Tholian Assembly.png|Old Lady Higgins}}
| minor powers = 
{{belligerent|FEDicon.png|The Feds}}
{{belligerent|KDFicon.png|Clingwrap Empire}}
{{belligerent|ROMicon.png|Under new management}}
{{belligerent|Romulanfreestate.png|New Empire, who dis?}}
{{belligerent|Romrepublictile1.png|Votey Space Elves}}
| important sectors = {{plainlist|
*Risa
*Casperia
*Lisipia
}}
| important places = Quark's Bar and Grill
}}