GaryJJSpate (talk | contribs) Created page with "<includeonly><div class="vault-infobox"> <div class="vault-infobox-header" style="background:#1d4e89;">{{{name}}}</div> {{#if:{{{image|}}}|<div class="vault-infobox-image">[[File:{{{image}}}|280px]]{{#if:{{{image_caption|}}}|<div class="vault-infobox-caption">{{{image_caption}}}</div>}}</div>}} {{#if:{{{location|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">LOCATION</span><span class="vault-infobox-v">{{{location}}}</span></div>}} {{#if:{{{country|}}..." |
GaryJJSpate (talk | contribs) Migrate LocationInfobox to InfoboxLocation |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><div class="vault-infobox"> | <includeonly><div class="vault-infobox"><div class="vault-infobox-header" style="background:#1d4e89;">{{{name}}}</div>{{#if:{{{image|}}}|<div class="vault-infobox-image">[[File:{{{image}}}|280px]]{{#if:{{{image_caption|}}}|<div class="vault-infobox-caption">{{{image_caption}}}</div>}}</div>}}{{#if:{{{location|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">LOCATION</span><span class="vault-infobox-v">{{{location}}}</span></div>}}{{#if:{{{country|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">COUNTRY</span><span class="vault-infobox-v">{{{country}}}</span></div>}}{{#if:{{{type|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">TYPE</span><span class="vault-infobox-v">{{{type}}}</span></div>}}{{#if:{{{built|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">BUILT</span><span class="vault-infobox-v">{{{built}}}</span></div>}}{{#if:{{{notable_for|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">KNOWN FOR</span><span class="vault-infobox-v">{{{notable_for}}}</span></div>}}{{#if:{{{status|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">STATUS</span><span class="vault-infobox-v vault-infobox-status">{{{status}}}</span></div>}}</div></includeonly><noinclude> | ||
<div class="vault-infobox-header" style="background:#1d4e89;">{{{name}}}</div> | == Template:InfoboxLocation == | ||
{{#if:{{{image|}}}|<div class="vault-infobox-image">[[File:{{{image}}}|280px]]{{#if:{{{image_caption|}}}|<div class="vault-infobox-caption">{{{image_caption}}}</div>}}</div>}} | |||
{{#if:{{{location|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">LOCATION</span><span class="vault-infobox-v">{{{location}}}</span></div>}} | |||
{{#if:{{{country|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">COUNTRY</span><span class="vault-infobox-v">{{{country}}}</span></div>}} | |||
{{#if:{{{type|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">TYPE</span><span class="vault-infobox-v">{{{type}}}</span></div>}} | |||
{{#if:{{{built|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">BUILT</span><span class="vault-infobox-v">{{{built}}}</span></div>}} | |||
{{#if:{{{notable_for|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">KNOWN FOR</span><span class="vault-infobox-v">{{{notable_for}}}</span></div>}} | |||
{{#if:{{{status|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">STATUS</span><span class="vault-infobox-v vault-infobox-status">{{{status}}}</span></div>}} | |||
</div></includeonly><noinclude> | |||
== Template: | |||
Renders the right-hand infobox card on a location page (matches the style used across The Vault archive). | Renders the right-hand infobox card on a location page (matches the style used across The Vault archive). | ||
The location infobox is designed for: | The location infobox is designed for: | ||
* Haunted buildings | * Haunted buildings | ||
| Line 28: | Line 9: | ||
'''Note:''' requires the ParserFunctions extension for the <code>{{#if:}}</code> conditionals. If it's not installed, remove the <code>{{#if:...|...}}</code> wrapper from each row and just leave the plain row markup — rows will always display, but empty parameters will just leave a blank value. | '''Note:''' requires the ParserFunctions extension for the <code>{{#if:}}</code> conditionals. If it's not installed, remove the <code>{{#if:...|...}}</code> wrapper from each row and just leave the plain row markup — rows will always display, but empty parameters will just leave a blank value. | ||
'''Formatting note:''' the entire template body is written as one unbroken line, with no line breaks between rows. Splitting rows across multiple lines causes MediaWiki to wrap them in stray <code><p></code> tags, breaking the layout; leaving line breaks between rows (even with each row correctly on one line) causes blank fields to leave visible gaps. Keep any future edits to this template on one continuous line. (This template's previous version had the second issue — rows were individually well-formed but separated by blank lines, which would have shown as dead space on any page with an optional field like ''built'' or ''notable_for'' left out — common for general location/town pages rather than a single dated building.) | |||
'''Usage:''' | '''Usage:''' | ||
<pre> | <pre> | ||
{{ | {{InfoboxLocation | ||
|name=The Tower of London | |name=The Tower of London | ||
|image=TowerOfLondon.jpg | |image=TowerOfLondon.jpg | ||
| Line 44: | Line 26: | ||
}} | }} | ||
</pre> | </pre> | ||
Place this at the very top of a location page, before the article text — it floats right and the article text will wrap around it automatically. | Place this at the very top of a location page, before the article text — it floats right and the article text will wrap around it automatically. | ||
=== Parameters === | === Parameters === | ||
* '''name''' — required | * '''name''' — required | ||
* '''image''' — optional. The filename of an already-uploaded image (just the filename, e.g. <code>Example.jpg</code> — no <code>File:</code> prefix needed) | * '''image''' — optional. The filename of an already-uploaded image (just the filename, e.g. <code>Example.jpg</code> — no <code>File:</code> prefix needed) | ||
| Line 60: | Line 40: | ||
[[Category:Vault Templates]] | [[Category:Vault Templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 13:36, 5 August 2026
Template:InfoboxLocation
Renders the right-hand infobox card on a location page (matches the style used across The Vault archive). The location infobox is designed for:
- Haunted buildings
- Paranormal locations
- Historical sites
- Places connected to legends or investigations
Note: requires the ParserFunctions extension for the conditionals. If it's not installed, remove the ... wrapper from each row and just leave the plain row markup — rows will always display, but empty parameters will just leave a blank value.
Formatting note: the entire template body is written as one unbroken line, with no line breaks between rows. Splitting rows across multiple lines causes MediaWiki to wrap them in stray <p> tags, breaking the layout; leaving line breaks between rows (even with each row correctly on one line) causes blank fields to leave visible gaps. Keep any future edits to this template on one continuous line. (This template's previous version had the second issue — rows were individually well-formed but separated by blank lines, which would have shown as dead space on any page with an optional field like built or notable_for left out — common for general location/town pages rather than a single dated building.)
Usage:
{{InfoboxLocation
|name=The Tower of London
|image=TowerOfLondon.jpg
|image_caption=The Tower of London, one of Britain's most famous historic sites
|location=London
|country=England
|type=Historic building / Reported haunting
|built=1078
|notable_for=Ghost sightings and paranormal reports
|status=Active site
}}
Place this at the very top of a location page, before the article text — it floats right and the article text will wrap around it automatically.
Parameters
- name — required
- image — optional. The filename of an already-uploaded image (just the filename, e.g.
Example.jpg— noFile:prefix needed) - image_caption — optional. Caption text shown beneath the image
- location — recommended. Town, city, or specific location
- country — recommended
- type — recommended. Building, site, landmark, etc.
- built — optional. Construction date or period
- notable_for — recommended. Why the location is significant
- status — recommended. Current status of the location
