Difference between revisions of "Template:Quadrant"

Template page
(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.)
m (Bringing up to scratch)
 
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}}} 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|}}}|
{{!}} 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 sectors|}}}|
{{!}} class="ibleft" {{!}} Sectors
{{!}} class="ibright" {{!}}
{{{important sectors}}}
}}
|-
{{#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:Quadrant]]
|}
</div>
<includeonly>
<includeonly>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Quadrant]]{{DEFAULTSORT:{{{name}}}}}
<infobox theme="bravo">
<title source="name">
    <default>{{pagename}}</default><format>{{{name|}}}</format>
</title>
<image source="image"/>
<header>{{#if:{{{major powers|}}}{{{minor powers|}}}|Powers}}</header>
<data source="major powers"><label>Major Powers</label><format>{{{major powers}}}</format></data>
<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>
<data source="important places"><label>Places</label><format>{{{important places}}}</format></data>
<header name="footer">[[Template:Quadrant]]</header>
</infobox>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Quadrant]]
}}
}}
</includeonly><noinclude>
</includeonly>
<noinclude>
==Quadrant==
==Quadrant==
<pre>
<pre>

Latest revision as of 03:03, 18 August 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
}}