Difference between revisions of "Template:Quadrant"

Template page
(Created page with "<div class="infobox"> {| width="315" align="right" cellpadding="3" cellspacing="0" style="border-radius:13px;margin-bottom: 0; {{#if: {{{image|}}}| {{!}} colspan="2" bgcolor={...")
 
m
 
(6 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;" | {{{prefix}}} ''{{{name}}}''
<image source="image"/>
|-
<header>{{#if:{{{major powers|}}}{{{minor powers|}}}|Powers}}</header>
{{#if: {{{major powers|}}}{{{minor powers|}}}|  
<data source="major powers"><label>Major Powers</label><format>{{{major powers}}}</format></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><format>{{{minor powers}}}</format></data>
}}
<header>{{#if:{{{important sectors|}}}{{{important places|}}}|Points of Interest}}</header>
|-
<data source="important sectors"><label>Sectors</label><format>{{{important sectors}}}</format></data>
{{#if: {{{major powers|}}}|
<data source="important places"><label>Places</label><format>{{{important places}}}</format></data>
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Major Powers
<header name="footer">[[Template:Quadrant]]</header>
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
</infobox>
{{{major powers}}} }}
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Quadrant]]}}
|-
</includeonly>
{{#if: {{{minor powers|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Minor Powers
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{minor powers}}} }}
|-
{{#if: {{{important sectors|}}}{{{important places|}}}|  
{{!}} colspan="2" style="text-align: center; color: #e5e5ed; background-color:#4979b5; text-align:center; font-size:8pt;padding: 6px" {{!}} '''Points of Interest'''
}}  
|-
{{#if: {{{important sectors|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Important Sectors
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{important sectors}}} }}
|-
{{#if: {{{important places|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Important Places
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{important places}}} }}
|-
|- class="infobox-link" style="border-radius-bottom-right: 13px; border-radius-bottom-left: 13px;"
|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:Quadrant]]
|}</div>
<includeonly>[[Category:Quadrant]]
</includeonly><noinclude>
<noinclude>
<noinclude>
<br clear=all>
==Quadrant==
<pre>
<pre>
{{Quadrant
{{Quadrant
Line 50: Line 26:
| 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|Starship]]
==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 02:44, 15 November 2024


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


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
}}