Template:IMDb title: Difference between revisions

From Ikwipedia
No edit summary
No edit summary
Line 2: Line 2:
   | title/{{#if: {{#invoke:ustring|match|1={{{1|{{{id}}}}}}|2=^tt}}
   | title/{{#if: {{#invoke:ustring|match|1={{{1|{{{id}}}}}}|2=^tt}}
     | {{Trim|{{{1|{{{id}}}}}}}}/
     | {{Trim|{{{1|{{{id}}}}}}}}/
     | tt{{padleft:{{{1|{{{id}}}}}}|7}}/
     | tt{{padleft:{{{1|{{{id|}}}}}}|7}}/
     }}
     }}
   <!-- | {{#if: {{#property:P345|from={{{qid|}}}}}
   | {{#if: {{#property:P345|from={{{qid|}}}}} <!-- Commenting out Wikidata property -->
     | title/{{First word|1={{#property:P345|from={{{qid|}}}}}|sep=,}}/
     | title/{{First word|1={{#property:P345|from={{{qid|}}}}}|sep=,}}/ <!-- Commenting out property usage -->
     | find?q={{urlencode:{{PAGENAMEBASE}}}}&s=tt
     | find?q={{urlencode:{{PAGENAMEBASE}}}}&s=tt
     }} -->
     }}
   }}{{#ifeq: {{#invoke:If any equal|main|Q618779|Q67325957|Q33999|value=<!-- {{Wikidata|property|raw|{{{qid_testcases|}}}|P360}} -->}} | yes  
   }}{{#ifeq: {{#invoke:If any equal|main|Q618779|Q67325957|Q33999|value={{Wikidata|property|raw|{{{qid_testcases|}}}|P360}}}} | yes <!-- Commenting out Wikidata calls -->
       | {{#switch: <!-- {{Wikidata|property|raw|{{{qid_testcases|}}}|P360}} --> <!-- is a list of -->
       | {{#switch: {{Wikidata|property|raw|{{{qid_testcases|}}}|P360}} <!-- Commenting out property calls -->
         | Q618779 <!-- award -->
         | Q618779 <!-- award -->
         | Q67325957 <!-- list of awards and nominations --> = awards Awards for
         | Q67325957 <!-- list of awards and nominations --> = awards Awards for
         | Q33999 <!-- actor --> = fullcredits Full cast and crew of
         | Q33999 <!-- actor --> = fullcredits Full cast and crew of
         }}
         }}
     | {{#if: <!-- {{Wikidata|property|raw|{{{qid_testcases|}}}|P31}} --> <!-- instance of -->
     | {{#if: {{Wikidata|property|raw|{{{qid_testcases|}}}|P31}} <!-- Commenting out instance of calls -->
       | {{#switch: <!-- {{Wikidata|property|raw|{{{qid_testcases|}}}|P31}} -->
       | {{#switch: {{Wikidata|property|raw|{{{qid_testcases|}}}|P31}}
         | Q63032896 <!-- Wikimedia list of fictional characters -->
         | Q63032896 <!-- Wikimedia list of fictional characters -->
         | Q66763446 <!-- Wikimedia list of fictional characters by occupation --> = fullcredits Full cast and crew of
         | Q66763446 <!-- Wikimedia list of fictional characters by occupation --> = fullcredits Full cast and crew of
Line 24: Line 24:
     }} <!--
     }} <!--
-->{{Trim|{{#if: {{{quotes|}}} | "{{If empty|{{{2|}}}|{{{title|}}}|{{PAGENAMEBASE}}}}" | ''{{If empty|{{{2|}}}|{{{title|}}}|{{PAGENAMEBASE}}}}'' }} {{{3|{{{description|}}}}}}}}] at {{#if: {{{link_hide|}}}| IMDb | [[IMDb (identifier)|IMDb]] }}<!--
-->{{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 -->
--><!-- {{EditAtWikidata|{{{1|{{{id|}}}}}}|pid=P345|qid={{{qid|}}}|nbsp=yes}} --> <!-- Commenting out EditAtWikidata -->
<!-- -->{{#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 }}<!--
<!-- 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}}<!--
-->}}<!--
-->}}<!--
-->{{#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]]}} }}<!--
-->{{#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}} --> <!-- instance of -->
-->{{#switch: {{Wikidata|property|raw|P31}} <!-- Commenting out instance of calls -->
| Q21191270 <!-- television series episode -->
| Q21191270 <!-- television series episode -->
| Q21664088 <!-- two-part episode -->
| Q21664088 <!-- two-part episode -->
Line 42: Line 43:
| Q3464665 = <!-- television series season --> [[Category:Pages using IMDb title instead of IMDb episodes]]{{Preview warning|[[Template:IMDb episodes]] should be used for television seasons}}
| 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}} }}<!--
-->{{#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}} --> }}<!--
-->{{#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>

Revision as of 07:27, 6 November 2024