Template:Infobox Location: Difference between revisions
Appearance
Create reusable infobox template for location pages |
Switch to HTML table to fix whitespace |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><table class="wikitable" style="float:right; margin-left:1em;"> | ||
<tr><th colspan="2">{{{name|{{PAGENAME}}}}}</th></tr> | |||
{{#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>}} | |||
{{#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>}} | |||
</table></includeonly> | |||
}} | <noinclude> | ||
{{#if:{{{biome|}}}| | |||
}} | |||
{{#if:{{{theme|}}}| | |||
}} | |||
{{#if:{{{founded|}}}| | |||
}} | |||
{{#if:{{{founded_by|}}}| | |||
}} | |||
{{#if:{{{status|}}}| | |||
}} | |||
== 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.