GaryJJSpate (talk | contribs) No edit summary |
GaryJJSpate (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><div class="vault-infobox"><div class="vault-infobox-header" style="background:# | <includeonly><div class="vault-infobox"><div class="vault-infobox-header" style="background:#6b3fa0;">{{{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:{{{born|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">BORN</span><span class="vault-infobox-v">{{{born}}}</span></div>}}{{#if:{{{died|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">DIED</span><span class="vault-infobox-v">{{{died}}}</span></div>}}{{#if:{{{occupation|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">OCCUPATION</span><span class="vault-infobox-v">{{{occupation}}}</span></div>}}{{#if:{{{known_for|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">KNOWN FOR</span><span class="vault-infobox-v">{{{known_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:PersonInfobox == | |||
Renders the right-hand infobox card on a page about a person — including investigators, researchers, mediums, authors, filmmakers, writers, and media personalities. | |||
Uses the same <code>vault-infobox</code> styling as {{tl|CaseInfobox}}, {{tl|LocationInfobox}} and other Vault templates. | |||
'''Note:''' requires the ParserFunctions extension for the <code>{{#if:}}</code> conditionals. | '''Note:''' requires the ParserFunctions extension for the <code>{{#if:}}</code> conditionals. | ||
'''Important formatting notes:''' | '''Important formatting notes:''' | ||
* Every row must | * Every row must stay entirely on a single line within its <code>{{#if:}}</code> block — never split a <code><div></code>/<code><span></code> row across multiple lines, or MediaWiki's parser will auto-wrap it in a stray <code><p></code> tag and break the two-column grid layout. | ||
* There must also be '''no newlines between rows''' — every <code>{{#if:}}</code> block | * There must also be '''no newlines between rows''' — every <code>{{#if:}}</code> block must run directly into the next with no line break at all. If a field like <code>died</code> is left blank (very common on this template — most subjects are simply <code>Living</code> with no death field at all), its block evaluates to nothing, but a newline sitting on either side of that blank output still reads as a blank line to MediaWiki and renders as an empty paragraph — visible dead space wherever a field is omitted. Keeping the whole infobox body as one unbroken line guarantees a skipped field leaves nothing behind. | ||
* | * If editing this template, keep it as one continuous line to avoid reintroducing either issue. | ||
'''Usage:''' | '''Usage:''' | ||
<pre> | <pre> | ||
{{ | {{PersonInfobox | ||
| | |name=Gary JJ Spate | ||
| | |image=Gary JJ Spate.jpg | ||
| | |image_caption=Gary JJ Spate | ||
| | |born=5 December 1981, Grimsby, Lincolnshire | ||
| | |occupation=Filmmaker, writer, paranormal investigator | ||
| | |known_for=Spirit Searchers Paranormal Research Society; Society of Paranormal Studies; The EERIE Files | ||
|status=Living | |||
|status= | |||
}} | }} | ||
</pre> | </pre> | ||
Place this at the very top of the page before the article text. | Place this at the very top of the page, before the article text. | ||
=== Parameters === | === Parameters === | ||
* ''' | * '''name''' — required | ||
* '''image''' — optional. | * '''image''' — optional. Filename of an uploaded image (without <code>File:</code>) | ||
* ''' | * '''image_caption''' — optional. Caption shown below the image | ||
* '''born''' — optional. Date and place of birth | |||
* '''died''' — optional. Date and place of death | |||
* ''' | * '''occupation''' — recommended | ||
* '''known_for''' — recommended. The work, organisation or event they are most associated with | |||
* ''' | * '''status''' — optional. e.g. Living, Deceased, Active, Retired | ||
* ''' | |||
* ''' | |||
* '''status''' — optional. | |||
[[Category:Vault Templates]] | [[Category:Vault Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 12:32, 31 July 2026
Template:PersonInfobox
Renders the right-hand infobox card on a page about a person — including investigators, researchers, mediums, authors, filmmakers, writers, and media personalities.
Uses the same vault-infobox styling as {{CaseInfobox}}, {{LocationInfobox}} and other Vault templates.
Note: requires the ParserFunctions extension for the conditionals.
Important formatting notes:
- Every row must stay entirely on a single line within its
block — never split a<div>/<span>row across multiple lines, or MediaWiki's parser will auto-wrap it in a stray<p>tag and break the two-column grid layout. - There must also be no newlines between rows — every
block must run directly into the next with no line break at all. If a field likediedis left blank (very common on this template — most subjects are simplyLivingwith no death field at all), its block evaluates to nothing, but a newline sitting on either side of that blank output still reads as a blank line to MediaWiki and renders as an empty paragraph — visible dead space wherever a field is omitted. Keeping the whole infobox body as one unbroken line guarantees a skipped field leaves nothing behind. - If editing this template, keep it as one continuous line to avoid reintroducing either issue.
Usage:
{{PersonInfobox
|name=Gary JJ Spate
|image=Gary JJ Spate.jpg
|image_caption=Gary JJ Spate
|born=5 December 1981, Grimsby, Lincolnshire
|occupation=Filmmaker, writer, paranormal investigator
|known_for=Spirit Searchers Paranormal Research Society; Society of Paranormal Studies; The EERIE Files
|status=Living
}}
Place this at the very top of the page, before the article text.
Parameters
- name — required
- image — optional. Filename of an uploaded image (without
File:) - image_caption — optional. Caption shown below the image
- born — optional. Date and place of birth
- died — optional. Date and place of death
- occupation — recommended
- known_for — recommended. The work, organisation or event they are most associated with
- status — optional. e.g. Living, Deceased, Active, Retired
