GaryJJSpate (talk | contribs) m GaryJJSpate moved page Template:ShowInfobox to Template:InfoboxTV |
GaryJJSpate (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><div class="vault-infobox"><div class="vault-infobox-header">{{{name}}}</div>{{#if:{{{image|}}}|<div class="vault-infobox-image">[[File:{{{image}}}|280px]]{{#if:{{{caption|}}}|<div class="vault-infobox-caption">{{{caption}}}</div>}}</div>}}{{#if:{{{type|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">TYPE</span><span class="vault-infobox-v">{{{type}}}</span></div>}}{{#if:{{{network|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">NETWORK</span><span class="vault-infobox-v">{{{network}}}</span></div>}}{{#if:{{{presenter|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">PRESENTER</span><span class="vault-infobox-v">{{{presenter}}}</span></div>}}{{#if:{{{first_aired|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">FIRST AIRED</span><span class="vault-infobox-v">{{{first_aired}}}</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> | <includeonly><div class="vault-infobox"><div class="vault-infobox-header">{{{name}}}</div>{{#if:{{{image|}}}|<div class="vault-infobox-image">[[File:{{{image}}}|280px]]{{#if:{{{caption|}}}|<div class="vault-infobox-caption">{{{caption}}}</div>}}</div>}}{{#if:{{{type|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">TYPE</span><span class="vault-infobox-v">{{{type}}}</span></div>}}{{#if:{{{network|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">NETWORK</span><span class="vault-infobox-v">{{{network}}}</span></div>}}{{#if:{{{presenter|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">PRESENTER</span><span class="vault-infobox-v">{{{presenter}}}</span></div>}}{{#if:{{{starring|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">STARRING</span><span class="vault-infobox-v">{{{starring}}}</span></div>}}{{#if:{{{seasons|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">SEASONS</span><span class="vault-infobox-v">{{{seasons}}}</span></div>}}{{#if:{{{episodes|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">EPISODES</span><span class="vault-infobox-v">{{{episodes}}}</span></div>}}{{#if:{{{first_aired|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">FIRST AIRED</span><span class="vault-infobox-v">{{{first_aired}}}</span></div>}}{{#if:{{{last_aired|}}}|<div class="vault-infobox-row"><span class="vault-infobox-k">LAST AIRED</span><span class="vault-infobox-v">{{{last_aired}}}</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: | == Template:InfoboxTV == | ||
Renders the right-hand infobox card on a page about a TV series or similar production — as distinct from a person ({{tl| | Renders the right-hand infobox card on a page about a TV series or similar production — as distinct from a person ({{tl|InfoboxPerson}}), a place ({{tl|InfoboxCase}} as a Hub Page), or a phenomenon ({{tl|InfoboxPhenomenon}}). | ||
Formerly named '''Template:ShowInfobox''' — that name now redirects here. Please use <code>{{tl|InfoboxTV}}</code> going forward. | |||
'''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, same as the other infoboxes. | ||
'''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. | |||
'''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. | |||
'''Usage:''' | '''Usage:''' | ||
<pre> | <pre> | ||
{{ | {{InfoboxTV | ||
|name=Most Haunted | |name=Most Haunted | ||
|image=Example.jpg | |image=Example.jpg | ||
| Line 16: | Line 14: | ||
|network=Living (2002–2010), Really (2014–2019) | |network=Living (2002–2010), Really (2014–2019) | ||
|presenter=Yvette Fielding | |presenter=Yvette Fielding | ||
|starring= | |||
|seasons=21 | |||
|episodes=390 | |||
|first_aired=25 May 2002 | |first_aired=25 May 2002 | ||
|last_aired=28 May 2019 | |||
|status=Ended | |status=Ended | ||
}} | }} | ||
</pre> | </pre> | ||
Place 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 === | ||
* '''name''' — required | * '''name''' — required | ||
| Line 28: | Line 29: | ||
* '''type''' — recommended | * '''type''' — recommended | ||
* '''network''' — recommended. List multiple eras if the show moved channel | * '''network''' — recommended. List multiple eras if the show moved channel | ||
* '''presenter''' — | * '''presenter''' — use for factual/documentary-style series (e.g. ''Most Haunted'') | ||
* '''starring''' — use for scripted/dramatic series (e.g. ''666 Park Avenue''); a show should generally use one field or the other, not both | |||
* '''seasons''' — optional | |||
* '''episodes''' — optional. Include a parenthetical breakdown if the show has non-standard episode types (specials, live editions, compilations) | |||
* '''first_aired''' — recommended | * '''first_aired''' — recommended | ||
* '''last_aired''' — optional. Omit for ongoing shows | |||
* '''status''' — recommended. e.g. Ongoing, Ended, On hiatus | * '''status''' — recommended. e.g. Ongoing, Ended, On hiatus | ||
[[Category:Infoboxes]] | |||
[[Category: | |||
</noinclude> | </noinclude> | ||
Latest revision as of 00:27, 4 August 2026
Template:InfoboxTV
Renders the right-hand infobox card on a page about a TV series or similar production — as distinct from a person ({{InfoboxPerson}}), a place ({{InfoboxCase}} as a Hub Page), or a phenomenon ({{InfoboxPhenomenon}}).
Formerly named Template:ShowInfobox — that name now redirects here. Please use going forward.
Note: requires the ParserFunctions extension for the {{InfoboxTV}} conditionals, same as the other infoboxes.
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.
Usage:
{{InfoboxTV
|name=Most Haunted
|image=Example.jpg
|caption=Optional image caption
|type=Paranormal documentary / reality series
|network=Living (2002–2010), Really (2014–2019)
|presenter=Yvette Fielding
|starring=
|seasons=21
|episodes=390
|first_aired=25 May 2002
|last_aired=28 May 2019
|status=Ended
}}
Place at the very top of the page, before the article text.
Parameters
- name — required
- image — optional. Filename of an uploaded image (without
File:) - caption — optional. Caption shown below the image. If the image is AI-generated, the caption must say so explicitly per the Copyrights policy
- type — recommended
- network — recommended. List multiple eras if the show moved channel
- presenter — use for factual/documentary-style series (e.g. Most Haunted)
- starring — use for scripted/dramatic series (e.g. 666 Park Avenue); a show should generally use one field or the other, not both
- seasons — optional
- episodes — optional. Include a parenthetical breakdown if the show has non-standard episode types (specials, live editions, compilations)
- first_aired — recommended
- last_aired — optional. Omit for ongoing shows
- status — recommended. e.g. Ongoing, Ended, On hiatus
