Template:Infobox television episode: Difference between revisions

Content deleted Content added
fix noprint
update template to remove deprecated parameters, update uknown parameter check
Line 3: Line 3:
| aboveclass = summary
| aboveclass = summary
| abovestyle = font-weight: normal; background: #CCCCFF; padding: 0.25em 1em; line-height: 1.5em;
| abovestyle = font-weight: normal; background: #CCCCFF; padding: 0.25em 1em; line-height: 1.5em;
| above = <includeonly>{{#if:{{{RTitle|}}}|'''{{{RTitle}}}'''|"'''{{{Title|{{{title|{{PAGENAMEBASE}}}}}}}}'''"}}</includeonly>
| above = <includeonly>{{#if:{{{RTitle|}}}|'''{{{RTitle}}}'''|"'''{{{title|{{PAGENAMEBASE}}}}}'''"}}</includeonly>
| headerclass = summary
| headerclass = summary
| headerstyle = background: #CCCCFF; padding: 0.25em 1em; line-height: 1.5em;
| headerstyle = background: #CCCCFF; padding: 0.25em 1em; line-height: 1.5em;
| subheader = {{#if:{{{Series|{{{series|}}}}}}|{{nowrap|''{{{Series|{{{series|}}}}}}'' episode}} }}
| subheader = {{#if:{{{series|}}}|{{nowrap|''{{{series|}}}'' episode}} }}
| subheaderstyle = font-weight: bold; font-size: 110%
| subheaderstyle = font-weight: bold; font-size: 110%


| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{Image|{{{image|}}}}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}}
| caption = {{{Caption|{{{caption|}}}}}}
| caption = {{{caption|}}}


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


| label1 = Episode {{abbr|no.|number}}
| label1 = Episode {{abbr|no.|number}}
| data1 = {{#if:{{{Season|{{{season|}}}}}}|Season&nbsp;{{{Season|{{{season|}}}}}}<br />}}{{#if:{{{Series no|{{{series no|{{{series_no|}}}}}}}}}|{{nowrap|Series {{{Series no|{{{series no|{{{series_no|}}}}}}}}}}}<br />}}{{#if:{{{Episode|{{{episode|}}}}}}|Episode {{{Episode|{{{episode|}}}}}}}}
| data1 = {{#if:{{{season|}}}|Season&nbsp;{{{season|}}}<br />}}{{#if:{{{series_no|}}}|{{nowrap|Series {{{series_no|}}}}}<br />}}{{#if:{{{episode|}}}|Episode {{{episode|}}}}}


| label2 = Directed by
| label2 = Directed by
| data2 = {{{Director|{{{director|}}}}}}
| data2 = {{{director|}}}


| label3 = Written by
| label3 = Written by
| data3 = {{{Writer|{{{writer|}}}}}}
| data3 = {{{writer|}}}


| label4 = Narrated by
| label4 = Narrated by
| data4 = {{{Narrator|{{{narrator|}}}}}}
| data4 = {{{narrator|}}}


| label5 = Presented by
| label5 = Presented by
| data5 = {{{Presenter|{{{presenter|}}}}}}
| data5 = {{{presenter|}}}


| label6 = Teleplay by
| label6 = Teleplay by
| data6 = {{{Teleplay|{{{teleplay|}}}}}}
| data6 = {{{teleplay|}}}


| label7 = Story by
| label7 = Story by
| data7 = {{{Story|{{{story|}}}}}}
| data7 = {{{story|}}}


| label8 = Produced by
| label8 = Produced by
| data8 = {{{Producer|{{{producer|}}}}}}
| data8 = {{{producer|}}}


| label9 = Featured music
| label9 = Featured music
| data9 = {{{Music|{{{music|}}}}}}
| data9 = {{{music|}}}


| label10 = Cinematography by
| label10 = Cinematography by
| data10 = {{{Photographer|{{{photographer|}}}}}}
| data10 = {{{photographer|}}}


| label11 = Editing by
| label11 = Editing by
| data11 = {{{Editor|{{{editor|}}}}}}
| data11 = {{{editor|}}}


| label18 = Production code
| label18 = Production code
| data18 = {{{Production|{{{production|}}}}}}
| data18 = {{{production|}}}


| label19 = Original {{#if:{{{Release date|{{{release date|{{{release_date|}}}}}}}}}|release|air}} date
| label19 = Original {{#if:{{{release_date|}}}|release|air}} date
| data19 = {{if empty|{{{Release date|{{{release date|{{{release_date|}}}}}}}}}|{{{Airdate|{{{airdate|}}}}}}}}
| data19 = {{if empty|{{{release_date|}}}|{{{airdate|}}}}}


| label20 = Running time
| label20 = Running time
| data20 = {{{Runtime|{{{Length|{{{runtime|{{{length|}}}}}}}}}}}}
| data20 = {{{runtime|{{{length|}}}}}}


| label22 = Awards
| label22 = Awards
| data22 = {{{Awards|{{{awards|}}}}}}
| data22 = {{{awards|}}}


| header24 = {{#if:{{{Guests|{{{guests|}}}}}}|{{{Guests title|{{{GuestsTitle|{{{guests title|{{nowrap|Guest appearance(s)}}}}}}}}}}}}}
| header24 = {{#if:{{{guests|}}}|{{{guests_title|{{nowrap|Guest appearance(s)}}}}}}}
| data25 = {{#if:{{{Guests|{{{guests|}}}}}}|<div style="text-align: left; padding: 5; margin: 0; padding-left: 1em">
| data25 = {{#if:{{{guests|}}}|<div style="text-align: left; padding: 5; margin: 0; padding-left: 1em">
{{{Guests|{{{guests|}}}}}}
{{{guests|}}}
</div>}}
</div>}}


Line 67: Line 67:


| class28 = noprint
| class28 = noprint
| header28 = {{#if:{{{Season list|{{{season list|{{{season_list|}}}}}}}}}|{{#if:{{{Season|{{{season|}}}}}}|Season {{{Season|{{{season|}}}}}} episodes|Series {{{Series no|{{{series no|}}}}}} episodes}}}}
| header28 = {{#if:{{{season_list|}}}|{{#if:{{{season|}}}|Season {{{season|}}} episodes|Series {{{series_no|}}} episodes}}}}
| rowclass29 = noprint
| rowclass29 = noprint
| data29 = {{#if:{{{Season list|{{{season list|{{{season_list|}}}}}}}}}|
| data29 = {{#if:{{{season_list|}}}|
<div style="background-color: transparent; text-align: left; padding: 5; margin: 0; padding-left: 1em">
<div style="background-color: transparent; text-align: left; padding: 5; margin: 0; padding-left: 1em">
{{{Season list|{{{season list|{{{season_list|}}}}}}}}}
{{{season_list|}}}
</div>
</div>
}}
}}


| class30 = noprint
| class30 = noprint
| header30 = {{#if:{{{Prev|{{{prev|}}}}}}{{{Next|{{{next|}}}}}}{{{RPrev|}}}{{{RNext|}}}|Episode chronology}}
| header30 = {{#if:{{{prev|}}}{{{next|}}}{{{RPrev|}}}{{{RNext|}}}|Episode chronology}}
| rowclass31 = noprint
| rowclass31 = noprint
| data31 = {{#if:{{{Prev|{{{prev|}}}}}}{{{Next|{{{next|}}}}}}{{{RPrev|}}}{{{RNext|}}}|
| data31 = {{#if:{{{prev|}}}{{{next|}}}{{{RPrev|}}}{{{RNext|}}}|
{{{!}} style="width:100%;"
{{{!}} style="width:100%;"
{{!}} style="width: 50%; padding: 0.2em 0.1em 0.2em 0; text-align: center;" {{!}} ←&nbsp;'''Previous'''<br />{{#if:{{{Prev|{{{prev|}}}}}}|"{{{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|}}}}}}|"{{{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;}}}}
{{!}}}
{{!}}}
}}
}}


| belowclass = noprint
| belowclass = noprint
| below = {{{Episode list|{{{episode list|{{{episode_list|}}}}}}}}}
| below = {{{episode_list|}}}


}}{{#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_"|ignoreblank=y| airdate | Airdate | alt | awards | Awards | caption | Caption | director | Director | editor | Editor | episode | Episode | episode list | Episode list | episode_list | guests | Guests | guests title | Guests title | GuestsTitle | image | Image | image_size | length | Length | module | music | Music | narrator | Narrator | next | Next | photographer | Photographer | presenter | Presenter | prev | Prev | producer | Producer | production | Production | release date | Release date | release_date | RNext | RPrev | RTitle | runtime | Runtime | season | Season | season list | Season list | season_list | series | Series | series no | Series no | series_no | story | Story | teleplay | Teleplay | title | Title | writer | 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_"|ignoreblank=y| airdate | alt | awards | caption | director | editor | episode | episode list | episode_list | guests | guests_title | image | image_size | length | module | music | narrator | next | photographer | presenter | prev | producer | production | release_date | RNext | RPrev | RTitle | runtime | season | season_list | series | series_no | story | teleplay | title | writer |
}}<noinclude>{{documentation}}</noinclude>
}}<noinclude>{{documentation}}</noinclude>

Revision as of 19:54, 11 February 2017