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.) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div class="infobox"> | <div class="infobox"> | ||
{| | {| class="ibtable" align="right" cellpadding="3" cellspacing="0" | ||
{{#if: {{{image|}}}| | {{#if: {{{image|}}}| | ||
{{!}} colspan="2" | {{!}} 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|}}}| | {{#if: {{{major powers|}}}{{{minor powers|}}}| | ||
{{!}} | {{!}} class="ibheader" colspan="2" {{!}} '''Powers''' | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{major powers|}}}| | {{#if: {{{major powers|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Major powers | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{major powers}}} }} | {{{major powers}}} | ||
}} | |||
|- | |- | ||
{{#if: {{{minor powers|}}}| | {{#if: {{{minor powers|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Minor powers | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{minor powers}}} }} | {{{minor powers}}} | ||
}} | |||
|- | |- | ||
{{#if: {{{important | {{#if: {{{important places|}}}{{{important sector}}}| | ||
{{!}} | {{!}} class="ibheader" colspan="2" {{!}} '''Points of interest''' | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{important sectors|}}}| | {{#if: {{{important sectors|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Sectors | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{important sectors}}} }} | {{{important sectors}}} | ||
}} | |||
|- | |- | ||
{{#if: {{{important places|}}}| | {{#if: {{{important places|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Places | ||
{{!}} | {{!}} class="ibright" {{!}} | ||
{{{important places}}} }} | {{{important places}}} | ||
}} | |||
|- | |- | ||
| | | class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:Quadrant]] | ||
|} | |||
|}</div> | </div> | ||
<includeonly>[[Category:Quadrant]] | <includeonly> | ||
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Quadrant]]{{DEFAULTSORT:{{{name}}}}} | |||
}} | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
==Quadrant== | |||
<pre> | <pre> | ||
{{Quadrant | {{Quadrant | ||
Line 50: | 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}} | |||
< | ==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 |
|
Minor powers |
|
Points of interest | |
Sectors |
|
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 }}