Template:IMDb title: Difference between revisions

From Ikwipedia
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>[https://www.imdb.com/{{#if: {{{1|{{{id|}}}}}}
<includeonly>
   | title/{{#if: {{#invoke:ustring|match|1={{{1|{{{id}}}}}}|2=^tt}}
{{#if: {{{id|}}}
     | {{Trim|{{{1|{{{id}}}}}}}}/
   | [https://www.imdb.com/title/{{#if: {{#invoke:ustring|match|1={{{id}}}|2=^tt}}
    | tt{{padleft:{{{1|{{{id|}}}}}}|7}}/
     | {{Trim|{{{id}}}}} <!-- Use IMDb ID if provided -->
    }}
     | tt{{padleft:{{{id}}}|7}}
  | {{#if: {{#property:P345|from={{{qid|}}}}} <!-- Commenting out Wikidata property -->
     }}/
     | title/{{First word|1={{#property:P345|from={{{qid|}}}}}|sep=,}}/ <!-- Commenting out property usage -->
     {{#ifeq: {{#if: {{{quotes|}}} | "{{If empty|{{{title|}}}|{{PAGENAMEBASE}}}}" | ''{{If empty|{{{title|}}}|{{PAGENAMEBASE}}}}'' }}
     | find?q={{urlencode:{{PAGENAMEBASE}}}}&s=tt
    {{3|{{description|}}}}}} at IMDb
     }}
  ]
  }}{{#ifeq: {{#invoke:If any equal|main|Q618779|Q67325957|Q33999|value={{Wikidata|property|raw|{{{qid_testcases|}}}|P360}}}} | yes <!-- Commenting out Wikidata calls -->
  | <!-- Blank if only qid is provided, no link -->
      | {{#switch: {{Wikidata|property|raw|{{{qid_testcases|}}}|P360}} <!-- Commenting out property calls -->
}}
        | Q618779 <!-- award -->
</includeonly><noinclude>
        | Q67325957 <!-- list of awards and nominations --> = awards Awards for
        | Q33999 <!-- actor --> = fullcredits Full cast and crew of
        }}
    | {{#if: {{Wikidata|property|raw|{{{qid_testcases|}}}|P31}} <!-- Commenting out instance of calls -->
      | {{#switch: {{Wikidata|property|raw|{{{qid_testcases|}}}|P31}}
        | Q63032896 <!-- Wikimedia list of fictional characters -->
        | 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}} --> <!-- Commenting out EditAtWikidata -->
<!-- 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}}<!--
-->| 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}}<!--
-->}}<!--
-->{{#if: {{{1|{{{id|}}}}}} <!-- Commenting out {{#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]]}} }}<!--
-->{{#switch: {{Wikidata|property|raw|P31}} <!-- Commenting out instance of calls -->
| 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}} <!-- Commenting out 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>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 07:33, 6 November 2024