Difference between revisions of "Template:Quadrant"
Template page
m (Colour corrections) |
m (Bringing up to scratch) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <includeonly> | ||
<infobox theme="bravo"> | |||
{{ | <title source="name"> | ||
{{ | <default>{{pagename}}</default><format>{{{name|}}}</format> | ||
</title> | |||
<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> | ||
<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> | |||
{{{major powers}}} | {{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Quadrant]] | ||
}} | |||
</includeonly> | |||
{{{minor powers}}} | |||
{{#if: {{{important sectors|}}}{{{important places|}}}| | |||
}} | |||
{{{important sectors}}} | |||
{{ | |||
{{{ | |||
|- | |||
| | |||
</includeonly | |||
<noinclude> | <noinclude> | ||
==Quadrant== | |||
<pre> | <pre> | ||
{{Quadrant | {{Quadrant | ||
Line 50: | Line 27: | ||
| 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 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 }}