Template:IMDb title: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary |
EnWikiAdmin (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>[https://www.imdb.com/{{#if: {{{1|{{{id|}}}}}} | ||
< | | title/{{#if: {{#invoke:ustring|match|1={{{1|{{{id}}}}}}|2=^tt}} | ||
< | | {{Trim|{{{1|{{{id}}}}}}}}/ | ||
< | | tt{{padleft:{{{1|{{{id}}}}}}|7}}/ | ||
< | }} | ||
<!-- | {{#if: {{#property:P345|from={{{qid|}}}}} | |||
| title/{{First word|1={{#property:P345|from={{{qid|}}}}}|sep=,}}/ | |||
| find?q={{urlencode:{{PAGENAMEBASE}}}}&s=tt | |||
}} --> | |||
}}{{#ifeq: {{#invoke:If any equal|main|Q618779|Q67325957|Q33999|value=<!-- {{Wikidata|property|raw|{{{qid_testcases|}}}|P360}} -->}} | yes | |||
| {{#switch: <!-- {{Wikidata|property|raw|{{{qid_testcases|}}}|P360}} --> <!-- is a list of --> | |||
| Q618779 <!-- award --> | |||
| Q67325957 <!-- list of awards and nominations --> = awards Awards for | |||
| Q33999 <!-- actor --> = fullcredits Full cast and crew of | |||
}} | |||
| {{#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}}<!-- | |||
-->| 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|}}}}}} <!-- {{#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 --> | |||
| 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> | |||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |