Jump to content

Template:Infobox television episode: Difference between revisions

From WikiMicro
RetroRobotRadio (talk | contribs)
Created page with "<includeonly>{{main other|{{Television episode short description|episode_num={{{episode|}}}|season_num={{{season|}}}|season_num_uk={{{series_no|}}}|series_name={{{series|}}}|segment={{{segment|}}}|not_dab={{{not_dab|}}}|limited={{{limited|}}}}}}}<!-- -->{{#invoke:Infobox television episode|italic_title}}</includeonly> {{Infobox | templatestyles = Infobox television episode/styles.css | bodyclass = ib-tv-episode vevent | aboveclass = summary | above = <..."
 
RetroRobotRadio (talk | contribs)
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{main other|{{Television episode short description|episode_num={{{episode|}}}|season_num={{{season|}}}|season_num_uk={{{series_no|}}}|series_name={{{series|}}}|segment={{{segment|}}}|not_dab={{{not_dab|}}}|limited={{{limited|}}}}}}}<!--
__INDEX__
-->{{#invoke:Infobox television episode|italic_title}}</includeonly>
<infobox>
{{Infobox
<title source="Title"><label><b>Title</b></label></title>
| templatestyles = Infobox television episode/styles.css
<image source="image">
| bodyclass      = ib-tv-episode vevent
    <caption source="caption"></caption>
 
    </image>
| aboveclass    = summary
<data source="Series"><label>Series</label></data>
| above          = <includeonly>{{#invoke:Infobox television episode|above_title}}</includeonly>
<data source="Season"><label>Season</label></data>
 
<data source="Episode"><label>Episode</label></data>
| headerclass    = summary
<data source="Airdate"><label>Airdate</label></data>
| autoheaders    = yes
<data source="Production"><label>Production</label></data>
 
<data source="Writer"><label>Writer</label></data>
| subheaderclass = nowrap
<data source="Director"><label>Director</label></data>
| subheader      = {{#if: {{{series|}}} | ''{{{series}}}'' {{#if: {{{segment|}}} | segment | {{#if: {{#invoke:String2|matchAny|,|/|&|-|–|and|source={{{episode|}}}}} | episodes | episode }} }} }}
<data source="Guests"><label>Guests</label></data>
 
<data source="Epidode list"><label>Episode list</label></data>
| image         = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{image_alt|{{{alt|}}}}}}}}
<data source="Prev"><label>Prev</label></data>
| caption       = {{{caption|}}}
<data source="Next"><label>Next</label></data>
 
</infobox>
| label1        = Episode {{#if: {{#invoke:String2|matchAny|,|/|&|-|–|and|source={{{episode|}}}}} | {{abbr|nos.|numbers}} | {{abbr|no.|number}} }}
<noinclude>{{Documentation}}</noinclude>
| data1          = {{#if: {{{season|}}} | Season&nbsp;{{{season|}}}<br /> }}{{#if: {{{series_no|}}} | {{nowrap|Series {{{series_no|}}}}}<br /> }}{{#if: {{{episode|}}} | {{#if: {{#invoke:String2|matchAny|,|/|&|-|–|and|source={{{episode|}}}}} | Episodes | Episode }} {{{episode|}}} }}{{#ifeq: {{{segment|}}} | yes | &nbsp;(segment) | {{{segment|}}} }}
 
| class2        = plainlist
| label2        = Directed by
| data2          = {{{director|}}}
 
| class3        = plainlist
| label3        = Written by
| data3          = {{{writer|}}}
 
| class4        = plainlist
| label4        = Story by
| data4          = {{{story|}}}
 
| class5        = plainlist
| label5        = Teleplay by
| data5          = {{{teleplay|}}}
 
| label6        = Based on
| data6          = {{{based_on|}}}
 
| class7        = plainlist
| label7        = Narrated by
| data7          = {{{narrator|}}}
 
| class8        = plainlist
| label8        = Presented by
| data8          = {{{presenter|}}}
 
| class9        = plainlist
| label9        = Featured music
| data9          = {{{music|}}}
 
| class10        = plainlist
| label10        = Cinematography by
| data10        = {{{photographer|}}}
 
| class11        = plainlist
| label11        = Editing by
| data11        = {{{editor|}}}
 
| class12        = plainlist
| label12        = Production code{{Pluralize from text|{{{production|}}}|plural=s}}
| data12        = {{{production|}}}
 
| class13        = plainlist
| label13        = Original {{#if: {{{release_date|}}} | release | air }} date{{Pluralize from text|{{If empty|{{{release_date|}}}|{{{airdate|}}}}}|plural=s}}
| data13        = {{If empty |{{{release_date|}}} |{{{airdate|}}} }}
 
| label14        = Running time
| data14        = {{If empty |{{{runtime|}}} |{{{length|}}} }}
 
| header15      = {{If empty |{{{guests_title|}}} |{{nowrap|Guest appearance{{Pluralize from text|{{{guests|}}}|plural=s}}}}}}
 
| class16        = ib-tv-episode-guests
| data16        = {{{guests|}}}
 
| header17      = _BLANK_
 
| data18        = {{{module|}}}
 
| class30        = noprint
| header30      = Episode chronology
 
| rowclass31    = noprint
| data31        = {{#if: {{{prev|}}} {{{next|}}} {{{rprev|}}} {{{rnext|}}} |
{{(!}} style="width: 100%; display: inline-table;"
{{!}} style="width: 50%; padding: 0.2em 0.1em 0.2em 0; text-align: center;" {{!}} ←&nbsp;'''Previous'''<br />{{#if: {{{prev|}}} | "{{{prev}}}" | {{#if: {{{rprev|}}} | {{{rprev}}} | &mdash; }} }}
{{!}} style="width: 50%; padding: 0.2em 0 0.2em 0.1em; text-align: center;" {{!}} '''Next'''&nbsp;→<br />{{#if: {{{next|}}} | "{{{next}}}" | {{#if: {{{rnext|}}} | {{{rnext}}} | &mdash; }} }}
{{!)}}
}}
 
| rowclass32    = noprint
| data32        = {{#if: {{{season_article|}}} | {{#invoke:String|replace|source={{{season_article}}}|pattern={{#ifeq:{{Str find|{{{season_article}}}|(}}|-1|
<!--No bracket, season/series-->
{{#ifeq:{{Str find|{{{season_article}}}|series}}|-1|
^((.*)(season %d+)(.*))$|
^((.*)(series %d+)(.*))$
}}|
<!--Brackets-->
^(([^\(]*)(%([^\)]*%))(.*))$
}}|replace=[[%1|''%2''%3%4]]|plain=false}} }}
 
| belowclass    = noprint
| below          = {{#invoke:Infobox television episode|episode_list}}
 
}}<!--Tracking categories
-->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using infobox television episode with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox television episode]] with unknown parameter "_VALUE_"|showblankpositional=1| airdate | alt | based_on | caption | director | editor | episode | episode_list | guests | guests_title | image | image_alt | image_size | image_upright | italic_title | length | limited | module | music | narrator | next | not_dab | photographer | presenter | prev | production | release_date | rnext | rprev | rtitle | runtime | season | season_article | segment | series | series_no | story | teleplay | title | writer }}<!--
-->{{Main other|{{#invoke:Infobox television episode|validate_values}}}}<!--
-->{{Main other|{{#if: {{{based_on|}}} | [[Category:Pages using infobox television episode with the based on parameter]] }}}}<!--
--><noinclude>
{{Documentation}}</noinclude>

Latest revision as of 16:08, 20 October 2025

Your wiki got a version of Template:Documentation that is only relevant to Templates Wiki! Click here to revert it. For a documentation template you can use on your wiki, see Template:Documentation (copy) on Templates Wiki.
Template information, documentation, and installation instructions.
Expand the below text for usage and other information.

Template Documentation:
Note: The template above might be broken without the parameters; this is normal.
Create documentation for this template. (How does this work?)
Editors can experiment with this template's sandbox and testcases.

Template:Tocright Documentation does not exist. Create it at Template:Infobox television episode/doc .


Installation Instructions
Export this template, then import to install it.
Use edit summary: Copied from [[w:c:templates:Template:Infobox television episode]] to properly attribute this template's editors.
There is no additional installation instructions for this template. If there is any, you may create it at Template:Infobox television episode/install.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.