Jump to content

Template:Infobox television episode: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
moved italic logic to sub-template and implemented fixes
per talk page, removing the producer parameter
 
(38 intermediate revisions by 6 users 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>{{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|}}}}}}}<!--
-->{{Infobox television episode/italic title|no_italic={{{no_italic|}}}}}</includeonly>
-->{{#invoke:Infobox television episode|italic_title}}</includeonly>
{{Infobox
{{Infobox
| templatestyles = Infobox television episode/styles.css

| bodyclass = vevent
| bodyclass = ib-tv-episode vevent

| child = {{{child|}}}


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


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


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


| 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}}}|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|}}} }}{{#ifeq: {{{segment|}}} | yes | &nbsp;(segment) | {{{segment|}}} }}


| 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 = {{{based_on|}}}
| data6 = {{#if: {{{based_on|}}} | {{{based_on|}}}{{Main other|[[Category:Pages using infobox television episode with the based on parameter]]}} | {{{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|}}}


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

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


| label11 = Cinematography by
| class10 = plainlist
| data11 = {{{photographer|}}}
| label10 = Cinematography by
| data10 = {{{photographer|}}}


| label12 = Editing by
| class11 = plainlist
| data12 = {{{editor|}}}
| label11 = Editing by
| data11 = {{{editor|}}}


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


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


| label20 = Running time
| label14 = Running time
| data20 = {{If empty |{{{runtime|}}} |{{{length|}}} }}
| data14 = {{If empty |{{{runtime|}}} |{{{length|}}} }}


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


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


| header26 = _BLANK_
| header17 = _BLANK_


| data27 = {{{module|}}}
| data18 = {{{module|}}}


| class30 = noprint
| class30 = noprint
Line 84: Line 85:


| 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={{#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
| belowclass = noprint
| below = {{#invoke:Infobox television episode|episode_list}}
| 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]]}} }}


}}<!--
}}<!--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 | 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>
{{Documentation}}</noinclude>

Latest revision as of 01:27, 16 August 2024