Template:Infobox television episode: Difference between revisions

From IxWiki
Jump to navigation Jump to search
>Gonnym
(remove duplicate)
 
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{{Television episode short description|episode_num={{{episode|}}}|season_num={{{season|}}}|season_num_uk={{{series_no|}}}|series_name={{{series|}}}|multi_episodes={{{multi_episodes|}}}|not_dab={{{not_dab|}}}}}</includeonly>{{Infobox
<includeonly>{{main other|{{Television episode short description|episode_num={{{episode|}}}|season_num={{{season|}}}|season_num_uk={{{series_no|}}}|series_name={{{series|}}}|not_dab={{{not_dab|}}}|limited={{{limited|}}}}}}}<!--
| italic title  = <noinclude>no</noinclude> <includeonly>{{#if: {{{no_italic|}}} | no | {{#if: {{{series|}}} | {{#ifeq: {{Str find|{{Title disambig text|{{PAGENAME}}}}|{{Delink|{{{series|}}}}}}} | -1 | no | all }} | no }} }}</includeonly>
-->{{#invoke:Infobox television episode|italic_title}}</includeonly>
| italic_string  = {{#if: {{{no_italic|}}} | <!-- In case the page does not need to be italicized, any value will turn it off --> | <includeonly>{{#if: {{{series|}}} | {{#ifeq: {{Str find|{{Title disambig text|{{PAGENAME}}}}|{{Delink|{{{series|}}}}}}} | -1 | | {{Delink|{{{series|}}}}} }} }}</includeonly> }}
{{Infobox
 
| templatestyles = Infobox television episode/styles.css
| bodyclass      = vevent
| bodyclass      = ib-tv-episode vevent
 
| child          = {{{child|}}}


| aboveclass    = summary
| aboveclass    = summary
| abovestyle    = font-weight: normal; background: #CCCCFF; padding: 0.25em 1em; line-height: normal;
| above          = <includeonly>{{#invoke:Infobox television episode|above_title}}</includeonly>
| above          = <includeonly>{{#if: {{{RTitle|}}}{{{rtitle|}}} | '''{{{RTitle|{{{rtitle|}}}}}}''' | "'''{{{title|{{PAGENAMEBASE}}}}}'''" }}</includeonly>


| headerclass    = summary
| headerclass    = summary
| headerstyle    = background: #CCCCFF; padding: 0.25em 1em; line-height: 1.5em;
| autoheaders    = yes
| autoheaders    = y


| subheader      = {{#if: {{{series|}}} | {{nowrap|''{{{series|}}}'' {{#if: {{{multi_episodes|}}} | episodes |episode }}}} }}
| subheaderclass = nowrap
| subheaderstyle = font-weight: bold; font-size: 110%
| subheader      = {{#if: {{{series|}}} | ''{{{series}}}'' {{#if: {{#invoke:String2|matchAny|,|/|&|-|–|and|source={{{episode|}}}}} | episodes |episode }} }}


| image          = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1.13}}}|alt={{{image_alt|{{{alt|}}}}}}}}
| image          = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1.13}}}|alt={{{image_alt|{{{alt|}}}}}}}}
| caption        = {{{caption|}}}
| caption        = {{{caption|}}}


| labelstyle    = white-space: nowrap
| labelstyle    = white-space: nowrap;


| label1        = Episode {{#if: {{{multi_episodes|}}} | {{abbr|nos.|numbers}} | {{abbr|no.|number}} }}
| label1        = Episode {{#if: {{#invoke:String2|matchAny|,|/|&|-|–|and|source={{{episode|}}}}} | {{abbr|nos.|numbers}} | {{abbr|no.|number}} }}
| data1          = {{#if: {{{season|}}} | Season&nbsp;{{{season|}}}<br /> }}{{#if: {{{series_no|}}} | {{nowrap|Series {{{series_no|}}}}}<br /> }}{{#if: {{{episode|}}} | {{#if: {{{multi_episodes|}}} | Episodes | Episode }} {{{episode|}}} }}
| 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|}}} }}


| class2        = plainlist
| label2        = Directed by
| label2        = Directed by
| data2          = {{{director|}}}
| data2          = {{{director|}}}


| class3        = plainlist
| label3        = Written by
| label3        = Written by
| data3          = {{{writer|}}}
| data3          = {{{writer|}}}


| class4        = plainlist
| label4        = Story by
| label4        = Story by
| data4          = {{{story|}}}
| data4          = {{{story|}}}


| class5        = plainlist
| label5        = Teleplay by
| label5        = Teleplay by
| data5          = {{{teleplay|}}}
| data5          = {{{teleplay|}}}


| label6        = Based on
| label6        = Based on
| data6          = {{#if: {{{based_on|}}} | {{{based_on|}}}{{Main other|[[Category:Pages using infobox television episode with the based on parameter]]}} | {{{based_on|}}} }}
| data6          = {{{based_on|}}}


| class7        = plainlist
| label7        = Narrated by
| label7        = Narrated by
| data7          = {{{narrator|}}}
| data7          = {{{narrator|}}}


| class8        = plainlist
| label8        = Presented by
| label8        = Presented by
| data8          = {{{presenter|}}}
| data8          = {{{presenter|}}}


| class9        = plainlist
| label9        = Produced by
| label9        = Produced by
| data9          = {{{producer|}}}
| data9          = {{{producer|}}}


| class10        = plainlist
| label10        = Featured music
| label10        = Featured music
| data10        = {{{music|}}}
| data10        = {{{music|}}}


| class11        = plainlist
| label11        = Cinematography by
| label11        = Cinematography by
| data11        = {{{photographer|}}}
| data11        = {{{photographer|}}}


| class12        = plainlist
| label12        = Editing by
| label12        = Editing by
| data12        = {{{editor|}}}
| data12        = {{{editor|}}}


| label18        = Production {{#if: {{{multi_episodes|}}} | code(s) | code }}
| class18        = plainlist
| label18        = Production code{{Pluralize from text|{{{production|}}}|plural=s}}
| data18        = {{{production|}}}
| data18        = {{{production|}}}


| label19        = Original {{#if: {{{release_date|}}} | release | air }} {{#if: {{{multi_episodes|}}} | date(s) | date }}
| class19        = plainlist
| label19        = Original {{#if: {{{release_date|}}} | release | air }} date{{Pluralize from text|{{If empty|{{{release_date|}}}|{{{airdate|}}}}}|plural=s}}
| data19        = {{If empty |{{{release_date|}}} |{{{airdate|}}} }}
| data19        = {{If empty |{{{release_date|}}} |{{{airdate|}}} }}


Line 68: Line 76:
| data20        = {{If empty |{{{runtime|}}} |{{{length|}}} }}
| data20        = {{If empty |{{{runtime|}}} |{{{length|}}} }}


| label22        = Awards
| header23      = {{If empty |{{{guests_title|}}} |{{nowrap|Guest appearance{{Pluralize from text|{{{guests|}}}|plural=s}}}}}}
| data22        = {{{awards|}}}


| header24      = {{If empty |{{{guests_title|}}} |{{nowrap|Guest appearance(s)}} }}
| class25        = ib-tv-episode-guests
| data25        = {{#if: {{{guests|}}} | <div style="text-align: left; padding: 5px; margin: 0; padding-left: 1em">
| data25        = {{{guests|}}}
{{{guests|}}}
</div> }}


| header26      = _BLANK_
| header26      = _BLANK_
Line 84: Line 89:


| rowclass31    = noprint
| rowclass31    = noprint
| data31        = {{#if: {{{prev|}}} {{{next|}}} {{{RPrev|}}} {{{RNext|}}} {{{rprev|}}} {{{rnext|}}} |
| data31        = {{#if: {{{prev|}}} {{{next|}}} {{{rprev|}}} {{{rnext|}}} |
{{{!}} style="width:100%;"
{{(!}} 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|}}} | {{If empty |{{{RPrev|}}} |{{{rprev|}}} }} | &mdash; }} }}
{{!}} 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|}}} | {{If empty |{{{RNext|}}} |{{{rnext|}}} }} |&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
| rowclass32    = noprint
| data32        = {{#if: {{{season_article|}}} | {{#invoke:string|replace|{{{season_article|}}}|^(([^\(]*)%(([^\)]*)%)(.*))$|[[%1|''%2''(%3)%4]]|plain=false}} }}
| data32        = {{#if: {{{season_article|}}} | {{#invoke:String|replace|source={{{season_article}}}|pattern=^(([^\(]*)%(([^\)]*)%)(.*))$|replace=[[%1|''%2''(%3)%4]]|plain=false}} }}


| belowclass    = noprint
| belowclass    = noprint
| below          = {{#ifeq: {{{episode_list|}}} | {{Replace|{{{episode_list|}}}|]]|}} | {{#invoke:string|replace|{{#invoke:string|replace|{{{episode_list|}}}|^((List of )([^\(]*)(.*)( [^%s]*))$|[[%1|%2''%3''%4%5]]|plain=false}}|^(([^\[][^\(\#]*)(.*))$|[[%1|List of ''%2'' episodes]]|plain=false}} | {{{episode_list|}}}{{Main other|[[Category:Pages using infobox television episode with incorrectly formatted episode list]]}} }}
| 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 | awards | based_on | caption | child | director | editor | episode | episode_list | guests | guests_title | image | image_alt | image_size | image_upright | length | no_italic | module | multi_episodes | music | narrator | next | not_dab | photographer | presenter | prev | producer | production | release_date | RNext | rnext | RPrev | rprev | RTitle | rtitle | runtime | season | season_article | series | series_no | story | teleplay | title | writer }}<noinclude>
-->{{#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 | producer | production | release_date | rnext | rprev | rtitle | runtime | season | season_article | 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>
{{Documentation}}</noinclude>

Latest revision as of 01:59, 5 January 2023