Template:Infobox television episode: Difference between revisions

From The Goon Show Depository

en>Hike395
(simplify code)
 
m (1 revision imported)
 
(2 intermediate revisions by 2 users 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|}}}|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|}}}}}}}<!--
-->{{#invoke:Infobox television episode|italic_title}}</includeonly>
-->{{#invoke:Infobox television episode|italic_title}}</includeonly>
{{Infobox
{{Infobox
Line 12: Line 12:


| subheaderclass = nowrap
| subheaderclass = nowrap
| subheader      = {{#if: {{{series|}}} | ''{{{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 }} }} }}


| 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 20: 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
| class2        = plainlist
Line 50: Line 50:


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


| class10        = plainlist
| class10        = plainlist
| label10        = Featured music
| label10        = Cinematography by
| data10        = {{{music|}}}
| data10        = {{{photographer|}}}


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


| class12        = plainlist
| class12        = plainlist
| label12        = Editing by
| label12        = Production code{{Pluralize from text|{{{production|}}}|plural=s}}
| data12        = {{{editor|}}}
| data12        = {{{production|}}}


| class18       = plainlist
| class13       = plainlist
| label18       = Production code{{Pluralize from text|{{{production|}}}|plural=s}}
| label13       = Original {{#if: {{{release_date|}}} | release | air }} date{{Pluralize from text|{{If empty|{{{release_date|}}}|{{{airdate|}}}}}|plural=s}}
| data18         = {{{production|}}}
| data13         = {{If empty |{{{release_date|}}} |{{{airdate|}}} }}


| class19       = plainlist
| label14       = Running time
| label19        = Original {{#if: {{{release_date|}}} | release | air }} date{{Pluralize from text|{{If empty|{{{release_date|}}}|{{{airdate|}}}}}|plural=s}}
| data14         = {{If empty |{{{runtime|}}} |{{{length|}}} }}
| data19         = {{If empty |{{{release_date|}}} |{{{airdate|}}} }}


| label20        = Running time
| header15      = {{If empty |{{{guests_title|}}} |{{nowrap|Guest appearance{{Pluralize from text|{{{guests|}}}|plural=s}}}}}}
| data20        = {{If empty |{{{runtime|}}} |{{{length|}}} }}


| header23      = {{If empty |{{{guests_title|}}} |{{nowrap|Guest appearance{{Pluralize from text|{{{guests|}}}|plural=s}}}}}}
| class16        = ib-tv-episode-guests
| data16        = {{{guests|}}}


| class25        = ib-tv-episode-guests
| header17      = _BLANK_
| data25        = {{{guests|}}}


| header26      = _BLANK_
| data18         = {{{module|}}}
 
| data27         = {{{module|}}}


| class30        = noprint
| class30        = noprint
Line 97: 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
Line 103: Line 107:


}}<!--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 | 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 }}<!--
-->{{#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|{{#invoke:Infobox television episode|validate_values}}}}<!--
-->{{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>
{{Documentation}}</noinclude>
{{Documentation}}</noinclude>

Latest revision as of 08:04, 27 August 2024