Template:IMDb title: Difference between revisions

From The Goon Show Depository

m (1 revision imported)
m (1 revision imported)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[https://www.imdb.com/{{#if: {{{1|{{{id|}}}}}}
<includeonly>[https://www.imdb.com/{{#if: {{{1|{{{id|}}}}}}
   | title/{{#if:{{#invoke:ustring|match|1={{{1|{{{id}}}}}}|2=^tt}}
   | title/{{#if: {{#invoke:ustring|match|1={{{1|{{{id}}}}}}|2=^tt}}
     | {{Trim|{{{1|{{{id}}}}}}}}/{{WikidataCheck|property=P345|value={{Trim|{{{1|{{{id|}}}}}}}}|category=IMDb ID|qid={{{qid|}}}}}
     | {{Trim|{{{1|{{{id}}}}}}}}/
     | tt{{padleft:{{{1|{{{id}}}}}}|7}}/{{WikidataCheck|property=P345|value=tt{{padleft:{{Trim|{{{1|{{{id|}}}}}}}}|7}}|category=IMDb ID|qid={{{qid|}}}}}
     | tt{{padleft:{{{1|{{{id}}}}}}|7}}/
     }}
     }}
   | {{#if: {{#property:P345|from={{{qid|}}}}}
   | {{#if: {{#property:P345|from={{{qid|}}}}}
Line 8: Line 8:
     | find?q={{urlencode:{{PAGENAMEBASE}}}}&s=tt
     | find?q={{urlencode:{{PAGENAMEBASE}}}}&s=tt
     }}
     }}
   }}{{#if: {{{1|}}} {{{id|}}} {{#property:P345|from={{{qid|}}}}} | {{#switch: {{lc:{{{section|}}}}}
   }}{{#ifeq: {{#invoke:If any equal|main|Q618779|Q67325957|Q33999|value={{Wikidata|property|raw|{{{qid_testcases|}}}|P360}}}} | yes
  | award | awards = awards Awards for
      | {{#switch: {{Wikidata|property|raw|{{{qid_testcases|}}}|P360}} <!-- is a list of -->
  | cast = fullcredits Full cast and crew of
        | Q618779 <!-- award -->
  }}}} {{Trim|{{#if:{{{quotes|}}}|"|''}}{{#if: {{{2|{{{title|}}}}}}
        | Q67325957 <!-- list of awards and nominations --> = awards Awards for
  | {{{2|{{{title}}}}}}
        | Q33999 <!-- actor --> = fullcredits Full cast and crew of
  | {{PAGENAMEBASE}}
        }}
  }}{{#if:{{{quotes|}}}|"|''}} {{{3|{{{description|}}}}}}}}] at {{#if:{{{link_hide|}}}| IMDb |[[IMDb]]}}<includeonly>{{#if: {{{1|{{{id|}}}}}}{{#property:P345|from={{{qid|}}}}}
    | {{#if: {{Wikidata|property|raw|{{{qid_testcases|}}}|P31}} <!-- instance of -->
  | {{EditAtWikidata|pid=P345|nbsp=yes|{{{1|{{{id|}}}}}}|qid={{{qid|}}}}}
      | {{#switch: {{Wikidata|property|raw|{{{qid_testcases|}}}|P31}}
  | {{Main other|[[Category:IMDb template with no id set]]}}
        | Q63032896 <!-- Wikimedia list of fictional characters -->
}}<!-- Tracking categories
        | Q66763446 <!-- Wikimedia list of fictional characters by occupation --> = fullcredits Full cast and crew of
        | Q107974527 <!-- Wikipedia article covering multiple soundtrack releases -->
        | Q482994 <!-- album --> = soundtrack Soundtrack of
        }}
      }}
    }} <!--
-->{{Trim|{{#if: {{{quotes|}}} | "{{If empty|{{{2|}}}|{{{title|}}}|{{PAGENAMEBASE}}}}" | ''{{If empty|{{{2|}}}|{{{title|}}}|{{PAGENAMEBASE}}}}'' }} {{{3|{{{description|}}}}}}}}] at {{#if: {{{link_hide|}}}| IMDb | [[IMDb (identifier)|IMDb]] }}<!--
-->{{EditAtWikidata|{{{1|{{{id|}}}}}}|pid=P345|qid={{{qid|}}}|nbsp=yes}}<!-- Tracking categories
-->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using IMDb title with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:IMDb title]] with unknown parameter "_VALUE_"|showblankpositional=1| 1 | 2 | 3 | description | id | link_hide | qid | quotes | title }}<!--
-->{{#switch: {{#invoke:String2|matchAny|^tt.........|^tt.......|tt|.........|source={{{1|{{{id}}}}}}|plain=false}}<!--
-->{{#switch: {{#invoke:String2|matchAny|^tt.........|^tt.......|tt|.........|source={{{1|{{{id}}}}}}|plain=false}}<!--
-->| 1 | 3 = {{Main other|[[Category:IMDb template with invalid id set]]}}{{Preview warning|IMDb ID starting with ''tt'' should be followed by seven or eight digits, such as ''tt0000567'' or ''tt12345678''}}<!--
-->| 1 | 3 = {{Main other|[[Category:IMDb template with invalid id set]]}}{{Preview warning|IMDb ID starting with ''tt'' should be followed by seven or eight digits, such as ''tt0000567'' or ''tt12345678''}}<!--
-->| 4 = {{Main other|[[Category:IMDb template with invalid id set]]}}{{Preview warning|IMDb ID should not contain more than eight digits}}<!--
-->| 4 = {{Main other|[[Category:IMDb template with invalid id set]]}}{{Preview warning|IMDb ID should not contain more than eight digits}}<!--
-->}}<!--
-->}}<!--
-->{{#ifeq: {{Wikidata|property|raw|P31}} | Q21191270 | [[Category:Pages using IMDb title instead of IMDb episode]]{{Preview warning|[[Template:IMDb episode]] should be used for television episodes}} }}<!--
-->{{#if: {{{1|{{{id|}}}}}} {{#property:P345}} || {{Preview warning|[[Template:IMDb title]] is missing ID and not present in Wikidata.}}{{Main other|[[Category:Pages using IMDb title with no id set]]}} }}<!--
-->{{#ifeq: {{Wikidata|property|raw|P360}} | Q21191270 | [[Category:Pages using IMDb title instead of IMDb episodes]]{{Preview warning|[[Template:IMDb episodes]] should be used for list of television episodes}} }}<!--
-->{{#switch: {{Wikidata|property|raw|P31}} <!-- instance of -->
| Q21191270 <!-- television series episode -->
| Q21664088 <!-- two-part episode -->
| Q50062923 <!-- three-part episode -->
| Q50914552 <!-- four-part episode -->
| Q99079902 <!-- five-part episode -->
| Q123186929 <!-- six-part episode -->
| Q55422400 <!-- Sarah Jane Smith serial -->
| Q61220733 = <!-- Star Trek episode --> [[Category:Pages using IMDb title instead of IMDb episode]]{{Preview warning|[[Template:IMDb episode]] should be used for television episodes}}
| Q3464665 = <!-- television series season --> [[Category:Pages using IMDb title instead of IMDb episodes]]{{Preview warning|[[Template:IMDb episodes]] should be used for television seasons}}
}}<!--
-->{{#ifeq: {{Wikidata|property|raw|P360}} <!-- is a list of --> | Q21191270 <!-- television series episode --> | [[Category:Pages using IMDb title instead of IMDb episodes]]{{Preview warning|[[Template:IMDb episodes]] should be used for list of television episodes}} }}<!--
-->{{#if: {{{1|{{{id|}}}}}} | {{WikidataCheck|property=P345|value={{#if: {{#invoke:ustring|match|1={{{1|{{{id}}}}}}|2=^tt}} | {{Trim|{{{1|{{{id|}}}}}}}} | tt{{padleft:{{Trim|{{{1|{{{id|}}}}}}}}|7}}}}|category=IMDb title ID|qid={{{qid|}}}|nocatsame=1}} }}<!--
--></includeonly><noinclude>
--></includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 19:29, 16 August 2024