Jump to content

Template:Infobox Location: Difference between revisions

From Xandaris Wiki
Create reusable infobox template for location pages
 
Switch to HTML table to fix whitespace
Line 1: Line 1:
<includeonly>{| class="wikitable" style="float:right; margin-left:1em;"
<includeonly><table class="wikitable" style="float:right; margin-left:1em;">
|-
<tr><th colspan="2">{{{name|{{PAGENAME}}}}}</th></tr>
! colspan="2" | {{{name|{{PAGENAME}}}}}
{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align:center;">[[File:{{{image}}}|250px]]</td></tr>}}
{{#if:{{{image|}}}|
{{#if:{{{coordinates|}}}|<tr><td>'''Coordinates'''</td><td>{{{coordinates}}}</td></tr>}}
{{!}}-
{{#if:{{{biome|}}}|<tr><td>'''Biome'''</td><td>{{{biome}}}</td></tr>}}
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image}}}|250px]]
{{#if:{{{theme|}}}|<tr><td>'''Theme'''</td><td>{{{theme}}}</td></tr>}}
}}
{{#if:{{{founded|}}}|<tr><td>'''Founded'''</td><td>{{{founded}}}</td></tr>}}
{{#if:{{{coordinates|}}}|
{{#if:{{{founded_by|}}}|<tr><td>'''Founded By'''</td><td>{{{founded_by}}}</td></tr>}}
{{!}}-
{{#if:{{{status|}}}|<tr><td>'''Status'''</td><td>{{{status}}}</td></tr>}}
{{!}} '''Coordinates''' {{!}}{{!}} {{{coordinates}}}
</table></includeonly>
}}
<noinclude>
{{#if:{{{biome|}}}|
{{!}}-
{{!}} '''Biome''' {{!}}{{!}} {{{biome}}}
}}
{{#if:{{{theme|}}}|
{{!}}-
{{!}} '''Theme''' {{!}}{{!}} {{{theme}}}
}}
{{#if:{{{founded|}}}|
{{!}}-
{{!}} '''Founded''' {{!}}{{!}} {{{founded}}}
}}
{{#if:{{{founded_by|}}}|
{{!}}-
{{!}} '''Founded By''' {{!}}{{!}} {{{founded_by}}}
}}
{{#if:{{{status|}}}|
{{!}}-
{{!}} '''Status''' {{!}}{{!}} {{{status}}}
}}
|}</includeonly><noinclude>
== Usage ==
== Usage ==
<pre>
<pre>

Revision as of 22:11, 1 March 2026


Usage

{{Infobox Location
| name        =
| image       =
| coordinates =
| biome       =
| theme       =
| founded     =
| founded_by  =
| status      =
}}

All fields are optional. name defaults to {{PAGENAME}}.

Warning: Never include coordinates of player bases. Use "Classified" for base locations. Spawn-area coordinates (~0,0) are acceptable.