Template:Infobox episode: Difference between revisions

From Red Letter Media Wiki
No edit summary
No edit summary
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|}}} }}{{#ifeq: {{{segment|}}} | yes | &nbsp;(segment) | {{{segment|}}} }}
| data1          = {{#if: {{{episode|}}} | {{#if: {{#invoke:String2|matchAny|,|/|&|-|–|and|source={{{episode|}}}}} | Episodes | Episode }} {{{episode|}}} }}{{#ifeq: {{{segment|}}} | yes | &nbsp;(segment) | {{{segment|}}} }}


| class2        = plainlist
| class2        = plainlist
| label2        = Cast
| label2        = Sub-series
| data2          = {{{cast|}}}
| data2          = {{{subseries|}}}


| class3        = plainlist
| class3        = plainlist
| label3        = Editing by
| label3        = Subseries Episode No.
| data3          = {{{editor|}}}
| data3          = {{{subseries-ep|}}}


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


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


| label6        = Based on
| label6        = Based on
Line 95: Line 95:
{{!)}}
{{!)}}
}}
}}
| rowclass32    = noprint
| 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 111: Line 100:


}}<!--Tracking categories
}}<!--Tracking categories
-->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using infobox episode with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox episode]] with unknown parameter "_VALUE_"|showblankpositional=1| airdate | alt | based_on | caption | cast | couch gag | editor | episode | episode_list | guests | guests_title | image | image_alt | image_size | image_upright | italic_title | length | link | limited | module | music | narrator | next | not_dab | photographer | presenter | prev | producer | release_date | rnext | rprev | rtitle | runtime | season | season_article | segment | series | series_no | story | teleplay | title }}<!--
--><!--{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using infobox episode with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox episode]] with unknown parameter "_VALUE_"|showblankpositional=1| airdate | alt | based_on | caption | cast | couch gag | editor | episode | episode_list | guests | guests_title | image | image_alt | image_size | image_upright | italic_title | length | link | limited | module | music | narrator | next | not_dab | photographer | presenter | prev | producer | release_date | rnext | rprev | rtitle | runtime | season | season_article | segment | series | series_no | story | teleplay | title }}--><!--
-->{{Main other|{{#invoke:Infobox episode|validate_values}}}}<!--
-->{{Main other|{{#invoke:Infobox episode|validate_values}}}}<!--
-->{{Main other|{{#if: {{{based_on|}}} | [[Category:Pages using infobox episode with the based on parameter]] }}}}<!--
-->{{Main other|{{#if: {{{based_on|}}} | [[Category:Pages using infobox episode with the based on parameter]] }}}}<!--
--><noinclude>
--><noinclude>
{{Documentation}}</noinclude>
{{Documentation}}</noinclude>

Revision as of 10:11, 4 June 2024