Template:Infobox Location: Difference between revisions
Appearance
Create reusable infobox template for location pages |
Single-line includeonly to fix foster-parented br elements |
||
| (One intermediate revision by the same user not shown) | |||
| 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:{{{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:{{{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:{{{image|}}}| | |||
}} | |||
{{#if:{{{coordinates|}}}| | |||
}} | |||
{{#if:{{{biome|}}}| | |||
}} | |||
{{#if:{{{theme|}}}| | |||
}} | |||
{{#if:{{{founded|}}}| | |||
}} | |||
{{#if:{{{founded_by|}}}| | |||
}} | |||
{{#if:{{{status|}}}| | |||
}} | |||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
Latest revision as of 23:19, 1 March 2026
Usage[edit]
{{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.