Template:Infobox television episode: Difference between revisions

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
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|}}}}}}}<!--
-->{{#invoke:Infobox television episode|italic_title}}</includeonly>
{{Infobox
{{Infobox
| templatestyles = Infobox television episode/styles.css
| bodyclass    = vevent
| bodyclass      = ib-tv-episode vevent
| aboveclass  = summary
| abovestyle  = font-weight: normal; background: #CCCCFF; padding: 0.25em 1em; line-height: 1.5em;
| above        = <includeonly>{{#if:{{{RTitle|}}}|'''{{{RTitle}}}'''|"'''{{{title|{{PAGENAMEBASE}}}}}'''"}}</includeonly>
| headerclass  = summary
| headerstyle = background: #CCCCFF; padding: 0.25em 1em; line-height: 1.5em;
| subheader    = {{#if:{{{series|}}}|{{nowrap|''{{{series|}}}'' episode}} }}
| subheaderstyle = font-weight: bold; font-size: 110%


| aboveclass    = summary
| image        = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}}
| above          = <includeonly>{{#invoke:Infobox television episode|above_title}}</includeonly>
| caption      = {{{caption|}}}


| headerclass    = summary
| labelstyle  = white-space: nowrap
| autoheaders    = yes


| subheaderclass = nowrap
| label1      = Episode {{abbr|no.|number}}
| subheader      = {{#if: {{{series|}}} | ''{{{series}}}'' {{#if: {{{segment|}}} | segment | {{#if: {{#invoke:String2|matchAny|,|/|&|-|–|and|source={{{episode|}}}}} | episodes | episode }} }} }}
| data1        = {{#if:{{{season|}}}|Season&nbsp;{{{season|}}}<br />}}{{#if:{{{series_no|}}}|{{nowrap|Series {{{series_no|}}}}}<br />}}{{#if:{{{episode|}}}|Episode {{{episode|}}}}}


| image          = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{image_alt|{{{alt|}}}}}}}}
| label2      = Directed by
| caption       = {{{caption|}}}
| data2       = {{{director|}}}


| label1        = Episode {{#if: {{#invoke:String2|matchAny|,|/|&|-|–|and|source={{{episode|}}}}} | {{abbr|nos.|numbers}} | {{abbr|no.|number}} }}
| label3      = Written by
| 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|}}} }}
| data3        = {{{writer|}}}


| class2        = plainlist
| label4      = Story by
| label2        = Directed by
| data4        = {{{story|}}}
| data2          = {{{director|}}}


| class3        = plainlist
| label5      = Teleplay by
| label3        = Written by
| data5        = {{{teleplay|}}}
| data3          = {{{writer|}}}


| class4        = plainlist
| label6      = Narrated by
| label4        = Story by
| data6        = {{{narrator|}}}
| data4          = {{{story|}}}


| class5        = plainlist
| label7      = Presented by
| label5        = Teleplay by
| data7        = {{{presenter|}}}
| data5          = {{{teleplay|}}}


| label6        = Based on
| label8      = Produced by
| data6          = {{{based_on|}}}
| data8        = {{{producer|}}}


| class7        = plainlist
| label9      = Featured music
| label7        = Narrated by
| data9        = {{{music|}}}
| data7          = {{{narrator|}}}


| class8        = plainlist
| label10      = Cinematography by
| label8        = Presented by
| data10      = {{{photographer|}}}
| data8          = {{{presenter|}}}


| class9        = plainlist
| label11      = Editing by
| label9        = Featured music
| data11      = {{{editor|}}}
| data9          = {{{music|}}}


| class10        = plainlist
| label18      = Production code
| label10        = Cinematography by
| data18      = {{{production|}}}
| data10        = {{{photographer|}}}


| class11        = plainlist
| label19      = Original {{#if:{{{release_date|}}}|release|air}} date
| label11        = Editing by
| data19      = {{if empty|{{{release_date|}}}|{{{airdate|}}}}}
| data11        = {{{editor|}}}


| class12        = plainlist
| label20      = Running time
| label12        = Production code{{Pluralize from text|{{{production|}}}|plural=s}}
| data20      = {{{runtime|{{{length|}}}}}}
| data12        = {{{production|}}}


| class13        = plainlist
| label22      = Awards
| label13        = Original {{#if: {{{release_date|}}} | release | air }} date{{Pluralize from text|{{If empty|{{{release_date|}}}|{{{airdate|}}}}}|plural=s}}
| data22      = {{{awards|}}}
| data13        = {{If empty |{{{release_date|}}} |{{{airdate|}}} }}


| label14        = Running time
| header24    = {{#if:{{{guests|}}}|{{{guests_title|{{nowrap|Guest appearance(s)}}}}}}}
| data14        = {{If empty |{{{runtime|}}} |{{{length|}}} }}
| data25      = {{#if:{{{guests|}}}|<div style="text-align: left; padding: 5; margin: 0; padding-left: 1em">
{{{guests|}}}
</div>}}


| header15       = {{If empty |{{{guests_title|}}} |{{nowrap|Guest appearance{{Pluralize from text|{{{guests|}}}|plural=s}}}}}}
| data27       = {{{module|}}}


| class16        = ib-tv-episode-guests
| class30      = noprint
| data16        = {{{guests|}}}
| header30    = {{#if:{{{prev|}}}{{{next|}}}{{{RPrev|}}}{{{RNext|}}}|Episode chronology}}
 
| rowclass31   = noprint
| header17      = _BLANK_
| data31       = {{#if:{{{prev|}}}{{{next|}}}{{{RPrev|}}}{{{RNext|}}}|
 
{{{!}} style="width:100%;"
| data18        = {{{module|}}}
{{!}} 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;}}}}
| 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
| belowclass  = noprint
| data32        = {{#if: {{{season_article|}}} | {{#invoke:String|replace|source={{{season_article}}}|pattern={{#ifeq:{{Str find|{{{season_article}}}|(}}|-1|
| below        = {{{episode_list|}}}
<!--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 }}<!--
-->{{#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_"|ignoreblank=y| airdate | alt | awards | caption | director | editor | episode | episode list | episode_list | guests | guests_title | image | image_size | length | module | music | narrator | next | photographer | presenter | prev | producer | production | release_date | RNext | RPrev | RTitle | runtime | season | series | series_no | story | teleplay | title | writer  
-->{{Main other|{{#invoke:Infobox television episode|validate_values}}}}<!--
}}<noinclude>{{documentation}}</noinclude>
-->{{Main other|{{#if: {{{based_on|}}} | [[Category:Pages using infobox television episode with the based on parameter]] }}}}<!--
--><noinclude>
{{Documentation}}</noinclude>