×
Create a new article
Write your page title here:
We currently have 245 articles on The Vault @ The EERIE Files. Type your article name above or click on one of the titles below and start writing!



The Vault @ The EERIE Files

Template:InfoboxBook: Difference between revisions

No edit summary
m GaryJJSpate moved page Template:InfoboxBox to Template:InfoboxBook without leaving a redirect
 
(6 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:#a36a00;">{{{title}}}</div>{{#if:{{{image|}}}|<div class="vault-infobox-image">[[File:{{{image}}}|280px]]{{#if:{{{caption|}}}|<div class="vault-infobox-caption">{{{caption}}}</div>}}</div>}}{{#if:{{{author|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">AUTHOR</span><span class="vault-infobox-v">{{{author}}}</span></div>}}{{#if:{{{publisher|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">PUBLISHER</span><span class="vault-infobox-v">{{{publisher}}}</span></div>}}{{#if:{{{published|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">PUBLISHED</span><span class="vault-infobox-v">{{{published}}}</span></div>}}{{#if:{{{isbn|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">ISBN</span><span class="vault-infobox-v">{{{isbn}}}</span></div>}}{{#if:{{{pages|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">PAGES</span><span class="vault-infobox-v">{{{pages}}}</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:{{{genre|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">GENRE</span><span class="vault-infobox-v">{{{genre}}}</span></div>}}{{#if:{{{subject|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">SUBJECT</span><span class="vault-infobox-v">{{{subject}}}</span></div>}}{{#if:{{{related|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">RELATED</span><span class="vault-infobox-v">{{{related}}}</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">{{{title}}}</div>
== Template:InfoboxBook ==
{{#if:{{{author|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">AUTHOR</span><span class="vault-infobox-v">{{{author}}}</span></div>}}
Renders the right-hand infobox card for books and published works.
{{#if:{{{publisher|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">PUBLISHER</span><span class="vault-infobox-v">{{{publisher}}}</span></div>}}
Formerly named '''Template:BookInfobox''' that name now redirects here. Please use <code>{{tl|InfoboxBook}}</code> going forward.
{{#if:{{{published|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">PUBLISHED</span><span class="vault-infobox-v">{{{published}}}</span></div>}}
Used for:
{{#if:{{{isbn|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">ISBN</span><span class="vault-infobox-v">{{{isbn}}}</span></div>}}
* Paranormal research books
{{#if:{{{pages|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">PAGES</span><span class="vault-infobox-v">{{{pages}}}</span></div>}}
* Historical texts
{{#if:{{{genre|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">GENRE</span><span class="vault-infobox-v">{{{genre}}}</span></div>}}
* Investigator memoirs
</div></includeonly><noinclude>
* Fictional works with relevance to The Vault
== Template:BookInfobox ==
* Important publications within paranormal studies
Renders the right-hand infobox card on a page about a book as distinct from a magazine or periodical ({{tl|PublicationInfobox}}).


'''Note:''' requires the ParserFunctions extension for the <code>{{#if:}}</code> conditionals, same as the other infoboxes.
'''Note:''' requires the ParserFunctions extension for the <code>{{#if:}}</code> conditionals.
 
'''Important formatting notes:'''
* Every row must be written entirely on a single line within its <code>{{#if:}}</code> block — never split a <code>&lt;div&gt;</code>/<code>&lt;span&gt;</code> row across multiple lines. MediaWiki's parser auto-wraps multi-line HTML blocks in stray <code>&lt;p&gt;</code> tags, which silently breaks the row's CSS class structure and the two-column grid layout it depends on.
* There must also be '''no newlines between rows''' — every <code>{{#if:}}</code> block runs directly into the next with no line break at all. If a field is left blank, its whole block evaluates to nothing; a newline sitting either side of that blank output still reads as a blank line to MediaWiki, which gets rendered as an empty paragraph and shows up as unwanted dead space wherever an optional field is omitted. Keeping the entire infobox body as one unbroken line guarantees a skipped field leaves genuinely nothing behind.
* This template previously broke in both of these ways on live pages — keep any future edits to this template on one continuous line to avoid a repeat of either.


'''Usage:'''
'''Usage:'''
<pre>
<pre>
{{BookInfobox
{{InfoboxBook
|title=Derek Acorah: Extreme Psychic
|title=Extra-Sensory Perception
|author=Derek Acorah
|author=J. B. Rhine
|publisher=HarperElement
|publisher=Boston Society for Psychic Research
|published=5 March 2007
|published=1934
|isbn=978-0-00-724973-2
|pages=372
|pages=272
|type=Research publication
|genre=Paranormal memoir
|genre=Parapsychology
|subject=Extrasensory perception and psychic phenomena
|related=[[Parapsychology]], [[Telepathy]], [[Psychokinesis]]
|status=Historical work
}}
}}
</pre>
</pre>
 
Place this at the very top of the page before the article text.
Place at the very top of the page, before the article text.


=== Parameters ===
=== Parameters ===
* '''title''' — required
* '''title''' — required. Book title
* '''image''' — optional. Cover image filename
* '''caption''' — optional. Image caption
* '''author''' — recommended
* '''author''' — recommended
* '''publisher''' — recommended
* '''publisher''' — recommended
* '''published''' — recommended
* '''published''' — recommended
* '''isbn''' — recommended
* '''isbn''' — optional
* '''pages''' — optional
* '''pages''' — optional
* '''type''' — recommended. Publication type
* '''genre''' — optional
* '''genre''' — optional
[[Category:Vault Templates]]
* '''subject''' — recommended for Vault articles
* '''related''' — optional. Related Vault subjects
* '''status''' — optional. Historical importance/status
 
=== Suggested type values ===
<pre>
Research publication
Academic work
Investigator memoir
Biography
Historical text
Novel
Anthology
</pre>
 
=== Suggested status values ===
<pre>
Historical work
Influential publication
Controversial work
Foundational text
Popular work
</pre>
 
[[Category:Infoboxes]]
</noinclude>
</noinclude>

Latest revision as of 23:48, 3 August 2026

Template:InfoboxBook

Renders the right-hand infobox card for books and published works. Formerly named Template:BookInfobox — that name now redirects here. Please use {{InfoboxBook}} going forward. Used for:

  • Paranormal research books
  • Historical texts
  • Investigator memoirs
  • Fictional works with relevance to The Vault
  • Important publications within paranormal studies

Note: requires the ParserFunctions extension for the conditionals.

Important formatting notes:

  • Every row must be written entirely on a single line within its block — never split a <div>/<span> row across multiple lines. MediaWiki's parser auto-wraps multi-line HTML blocks in stray <p> tags, which silently breaks the row's CSS class structure and the two-column grid layout it depends on.
  • There must also be no newlines between rows — every block runs directly into the next with no line break at all. If a field is left blank, its whole block evaluates to nothing; a newline sitting either side of that blank output still reads as a blank line to MediaWiki, which gets rendered as an empty paragraph and shows up as unwanted dead space wherever an optional field is omitted. Keeping the entire infobox body as one unbroken line guarantees a skipped field leaves genuinely nothing behind.
  • This template previously broke in both of these ways on live pages — keep any future edits to this template on one continuous line to avoid a repeat of either.

Usage:

{{InfoboxBook
|title=Extra-Sensory Perception
|author=J. B. Rhine
|publisher=Boston Society for Psychic Research
|published=1934
|pages=372
|type=Research publication
|genre=Parapsychology
|subject=Extrasensory perception and psychic phenomena
|related=[[Parapsychology]], [[Telepathy]], [[Psychokinesis]]
|status=Historical work
}}

Place this at the very top of the page before the article text.

Parameters

  • title — required. Book title
  • image — optional. Cover image filename
  • caption — optional. Image caption
  • author — recommended
  • publisher — recommended
  • published — recommended
  • isbn — optional
  • pages — optional
  • type — recommended. Publication type
  • genre — optional
  • subject — recommended for Vault articles
  • related — optional. Related Vault subjects
  • status — optional. Historical importance/status

Suggested type values

Research publication
Academic work
Investigator memoir
Biography
Historical text
Novel
Anthology

Suggested status values

Historical work
Influential publication
Controversial work
Foundational text
Popular work