Template:IMDb episodes: Difference between revisions

From The Goon Show Depository

en>Dcljr
(fix broken links caused by query string "?season=" with no value specified (will still mishandle some titles); allow space between 2nd and 3rd params)
m (1 revision imported)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[https://www.imdb.com/title/tt{{Trim| {{{1|{{{id<includeonly>|</includeonly>}}}}}} }}/episodes{{#ifeq: {{First word|{{PAGENAME}}}} | List || {{#if: {{{season|{{Last word|{{Title disambig text|{{PAGENAME}}}}}}}}} | ?season={{{season|{{Last word|{{Title disambig text|{{PAGENAME}}}}}}}}} }} }} ''{{Trim| {{{2|{{{title<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}}}} }}''{{#if: {{{3|{{{description|}}}}}} | {{sp}}{{Trim| {{{3|{{{description}}}}}} }} }}] at [[IMDb]]<noinclude>
<includeonly>[https://www.imdb.com/title/tt{{Trim|{{{1|{{{id|}}}}}}}}/episodes{{#ifeq: {{First word|{{PAGENAME}}}} | List || {{#if: {{{year|}}}
| ?year={{{year|}}}
| {{#if: {{{season|{{Last word|{{PAGENAME}}}}}}} | ?season={{{season|{{Last word|{{PAGENAME}}}}}}} }}
}}
}}{{#if: {{{2|{{{title|}}}}}}<!--
  -->| ''{{{2|{{{title}}}}}}''<!--
  -->| {{#ifeq: {{First word|{{PAGENAME}}}} | List<!--
    -->| ''{{PAGENAMEBASE|{{Trim|{{Replace|{{Replace|{{PAGENAME}}|List of||}}|episodes.*||plain=false}}}}}}''<!--
    -->| ''{{PAGENAMEBASE|{{Trim|{{Replace|{{Replace|{{PAGENAME}}|series %d*||plain=false}}|season %d*||plain=false}}}}}}''<!--
    -->}}<!--
  -->}}{{#if: {{{3|{{{description|}}}}}} | {{sp}}{{Trim|{{{3|{{{description}}}}}}}} }}] at [[IMDb (identifier)|IMDb]]<!-- Tracking categories
-->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using IMDb episodes with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:IMDb episodes]] with unknown parameter "_VALUE_"|showblankpositional=1| 1 | 2 | 3 | description | id | season | title | year }}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 18:17, 18 July 2024