Jump to content

Template:Infobox television episode: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Fixed a bug where pages which started with "#" were treated as a numbered list. See Rehash (South Park)
per talk page, removing the producer parameter
 
(24 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|}}}|not_dab={{{not_dab|}}}|limited={{{limited|}}}}}<!--
<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|}}}|series={{{series|}}}}}</includeonly>
-->{{#invoke:Infobox television episode|italic_title}}</includeonly>
{{Infobox
{{Infobox
| templatestyles = Infobox television episode/styles.css

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


| aboveclass = summary
| aboveclass = summary
| above = <includeonly>{{#invoke:Infobox television episode|above_title}}</includeonly>
| abovestyle = font-weight: normal; background: #CCCCFF; padding: 0.25em 1em; font-size: 125%;
| above = <includeonly>
{{#if: {{{rtitle|}}}<!--
-->| '''{{{rtitle}}}'''<!--
-->| "'''{{#if: {{{title|}}}<!--
-->| {{#invoke:String|replace|source={{{title}}}|pattern=^#|replace=<nowiki>#</nowiki>|plain=false}}<!--
-->| {{#if: {{Title disambig text|{{PAGENAME}}}}<!--
-->| {{#ifeq: {{Title disambig text|{{PAGENAME}}}} | {{Delink|{{{series|}}}}}<!--
-->| {{#invoke:MultiReplace|main|{{PAGENAMEBASE}}|^&#39;|{{Space+single}}|&#39;$|{{Single+space}}}}<!--
-->| {{#invoke:String|replace|source={{PAGENAME}}|pattern=^&#39;|replace={{Space+single}}|plain=false}}<!--
-->}}<!--
-->| {{#invoke:MultiReplace|main|{{PAGENAMEBASE}}|^&#39;|{{Space+single}}|&#39;$|{{Single+space}}}}<!--
-->}}<!--
-->}}<!--
-->'''" }}</includeonly>


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


| subheaderclass = nowrap
| subheader = {{#if: {{{series|}}} | {{nowrap|''{{{series}}}'' {{#if: {{#invoke:String2|matchAny|,|/|&|-|–|and|source={{{episode|}}}}} | 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|}}}


Line 35: Line 20:


| label1 = Episode {{#if: {{#invoke:String2|matchAny|,|/|&|-|–|and|source={{{episode|}}}}} | {{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: {{#invoke:String2|matchAny|,|/|&|-|–|and|source={{{episode|}}}}} | 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|}}}
Line 52: Line 41:
| data6 = {{{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|}}}


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

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

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

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


| class10 = plainlist
| label18 = Production {{#if: {{Detect singular|{{{production|}}}}} | code | codes }}
| data18 = {{{production|}}}
| label10 = Cinematography by
| data10 = {{{photographer|}}}


| class11 = plainlist
| label19 = Original {{#if: {{{release_date|}}} | release | air }} {{#if: {{Detect singular|no_comma=yes|{{If empty |{{{release_date|}}} |{{{airdate|}}} }}}} | date | dates }}
| label11 = Editing by
| data19 = {{If empty |{{{release_date|}}} |{{{airdate|}}} }}
| data11 = {{{editor|}}}


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


| class13 = plainlist
| header23 = {{#if: {{{guests|}}} | {{If empty |{{{guests_title|}}} |{{nowrap|Guest appearances}} }} }}
| label13 = Original {{#if: {{{release_date|}}} | release | air }} date{{Pluralize from text|{{If empty|{{{release_date|}}}|{{{airdate|}}}}}|plural=s}}
| data25 = {{Infobox
| data13 = {{If empty |{{{release_date|}}} |{{{airdate|}}} }}
| subbox = yes


| label14 = Running time
| datastyle = text-align: left; padding: 5px; margin: 0; padding-left: 1em;
| data14 = {{If empty |{{{runtime|}}} |{{{length|}}} }}


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


| class16 = ib-tv-episode-guests
}}
| data16 = {{{guests|}}}


| header26 = _BLANK_
| header17 = _BLANK_


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


| class30 = noprint
| class30 = noprint
Line 99: Line 86:
| rowclass31 = noprint
| rowclass31 = noprint
| data31 = {{#if: {{{prev|}}} {{{next|}}} {{{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}}} | &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}}} | &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; }} }}
Line 106: Line 93:


| rowclass32 = noprint
| rowclass32 = noprint
| data32 = {{#if: {{{season_article|}}} | {{#invoke:String|replace|source={{{season_article}}}|pattern=^(([^\(]*)%(([^\)]*)%)(.*))$|replace=[[%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 = {{#if: {{{episode_list|}}} | {{#if: {{#invoke:String2|matchAny|]]|''|source={{{episode_list}}}}} | {{{episode_list}}} | [[{{#invoke:String|replace|source={{{episode_list}}}|pattern=%[%[ *([^%[%]{{!}}]+)[^%[%]]*%]%]|replace=%1|plain=false}}|List of episodes]] }} | {{#if: {{{series|}}} | [[List of {{#invoke:String|replace|source={{{series}}}|pattern=%[%[ *([^%[%]{{!}}]+)[^%[%]]*%]%]|replace=%1|plain=false}} episodes|List of episodes]] }} }}


}}<!--Tracking categories
}}<!--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 | length | limited | module | music | narrator | next | no_italic | not_dab | photographer | presenter | prev | producer | production | release_date | rnext | rprev | rtitle | runtime | season | season_article | 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_"|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: {{{title|}}} | {{#ifeq: {{{title}}} | {{#invoke:MultiReplace|main|{{PAGENAMEBASE}}|^&#39;|{{Space+single}}|&#39;$|{{Single+space}}}} | [[Category:Pages using infobox television episode with unnecessary title parameter]] | {{#ifeq: {{{title}}} | {{#invoke:String|replace|source={{PAGENAME}}|pattern=^&#39;|replace={{Space+single}}|plain=false}} | [[Category:Pages using infobox television episode with unnecessary title parameter]] | [[Category:Pages using infobox television episode with non-matching title]] }} }} }}}}<!--
-->{{Main other|{{For loop||call=Infobox television episode/validate values|{{{series|}}}|{{{prev|}}}|{{{next|}}}}}}}<!--
-->{{Main other|{{For loop||call=Infobox television episode/validate values|pv=2|{{{episode|}}}|{{{season|}}}|{{{series_no|}}}}}}}<!--
-->{{Main other|{{#if: {{#invoke:String2|matchAny|]]|''|source={{{episode_list|}}}}} | [[Category:Pages using infobox television episode with incorrectly formatted values]] }}}}<!--
-->{{Main other|{{#if: {{{image|}}} || {{#if: {{{image_size|}}}{{{image_upright|}}}{{{image_alt|}}}{{{alt|}}}{{{caption|}}} | [[Category:Pages using infobox television episode with image-related values without an image]] }} }}}}<!--
-->{{Main other|{{#invoke:Infobox/dates|start_end_date_template_validation}}}}<!--
-->{{Main other|{{#if: {{{based_on|}}} | [[Category:Pages using infobox television episode with the based on parameter]] }}}}<!--
-->{{Main other|{{#if: {{{based_on|}}} | [[Category:Pages using infobox television episode with the based on parameter]] }}}}<!--
--><noinclude>
--><noinclude>

Latest revision as of 01:27, 16 August 2024