GaryJJSpate (talk | contribs) No edit summary |
GaryJJSpate (talk | contribs) 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: | * Important publications within paranormal studies | ||
Renders the right-hand infobox card | |||
'''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:''' | |||
* Every row must be written entirely on a single line within its <code>{{#if:}}</code> block — never split a <code><div></code>/<code><span></code> row across multiple lines. MediaWiki's parser auto-wraps multi-line HTML blocks in stray <code><p></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> | ||
{{ | {{InfoboxBook | ||
|title= | |title=Extra-Sensory Perception | ||
|author= | |author=J. B. Rhine | ||
|publisher= | |publisher=Boston Society for Psychic Research | ||
|published= | |published=1934 | ||
| | |pages=372 | ||
| | |type=Research publication | ||
|genre= | |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 | |||
=== 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''' — | * '''isbn''' — optional | ||
* '''pages''' — optional | * '''pages''' — optional | ||
* '''type''' — recommended. Publication type | |||
* '''genre''' — optional | * '''genre''' — optional | ||
[[Category: | * '''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 going forward.
Used for:
{{InfoboxBook}}
- 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
