Jump to content

Template:IMDb title: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Allow title= to end with italic markup, as needed at The Overcoat (animated film)
Tag: Reverted
Undid revision 1240682973 by Terasail (talk) the template is almost always incorrectly used and should hardly (if ever) be used on the page that isn't the current page. The error is correct
 
(11 intermediate revisions by 4 users not shown)
Line 8: Line 8:
| 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
}}{{#switch: {{lc:{{{section|}}}}}
| {{#switch: {{Wikidata|property|raw|{{{qid_testcases|}}}|P360}} <!-- is a list of -->
| award | awards = awards Awards for
| cast = fullcredits Full cast and crew of
| Q618779 <!-- award -->
| Q67325957 <!-- list of awards and nominations --> = awards Awards for
}} {{Trim|{{#if: {{{quotes|}}} | "{{If empty|{{{2|}}}|{{{title|}}}|{{PAGENAMEBASE}}}}" | ''{{If empty|{{{2|}}}|{{{title|}}}|{{PAGENAMEBASE}}}}<nowiki/>'' }} {{{3|{{{description|}}}}}}}}] at {{#if: {{{link_hide|}}}| IMDb | [[IMDb (identifier)|IMDb]] }}<!--
| Q33999 <!-- actor --> = fullcredits Full cast and crew of
-->{{EditAtWikidata|pid=P345}}<!-- 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 | section | title }}<!--
| {{#if: {{Wikidata|property|raw|{{{qid_testcases|}}}|P31}} <!-- instance of -->
| {{#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}}<!-- 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''}}<!--
Line 21: Line 33:
-->{{#switch: {{Wikidata|property|raw|P31}} <!-- instance of -->
-->{{#switch: {{Wikidata|property|raw|P31}} <!-- instance of -->
| Q21191270 <!-- television series episode -->
| Q21191270 <!-- television series episode -->
| Q21664088 <!-- two-part episode -->
| Q21664088 <!-- two-part episode -->
| Q50062923 <!-- three-part episode -->
| Q50062923 <!-- three-part episode -->
| Q50914552 <!-- four-part episode -->
| Q50914552 <!-- four-part episode -->
Line 29: Line 41:
| Q61220733 = <!-- Star Trek episode --> [[Category:Pages using IMDb title instead of IMDb episode]]{{Preview warning|[[Template:IMDb episode]] should be used for television episodes}}
| 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}}
| Q3464665 = <!-- television series season --> [[Category:Pages using IMDb title instead of IMDb episodes]]{{Preview warning|[[Template:IMDb episodes]] should be used for television seasons}}
| Q13406463 = <!-- Wikimedia list article --> [[Category:Pages using IMDb title instead of IMDb episodes]]{{Preview warning|[[Template:IMDb episodes]] should be used for list of episodes}}
}}<!--
}}<!--
-->{{#ifeq: {{Wikidata|property|raw|P360}} <!-- is a list of --> | Q21191270 | [[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}} <!-- 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}} }}<!--
-->{{#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>

Latest revision as of 19:18, 16 August 2024