Template:IMDb title: Difference between revisions

Content deleted Content added
No edit summary
added cast section
Line 1:
[https://www.imdb.com/{{#if: {{{1|{{{id|}}}}}}
| title/{{#ifeqif: {{Str left#invoke:ustring|match|1={{{1|{{{id}}}}}}|2=^tt}} | tt
| {{Trim|{{{1|{{{id}}}}}}}}/{{WikidataCheck|property=P345|value={{Trim|{{{1|{{{id|}}}}}}}}|category=IMDb ID|qid={{{qid|}}}}}
| tt{{#ifexprpadleft: {{Str len{1|{{{id}}}}}}|7}}/{{WikidataCheck|property=P345|value=tt{{padleft:{{Trim|{{{1|{{{id|}}}}}}}} < |7}}|category=IMDb ID|qid={{{qid|}}}}}
| {{Str rightmost|000000{{Trim|{{{1|{{{id}}}}}}}}|7}}/
| {{Trim|{{{1|{{{id}}}}}}}}/
}}
}}
| {{#if: {{#property:P2349P345|from={{{qid|}}}}}
| title/{{First word|1={{#property:P2349P345|from={{{qid|}}}}}|sep=,}}/
| find?q={{urlencode:{{PAGENAMEPAGENAMEBASE}}}}&s=tt
}}
}}{{#if: {{{1|}}} {{{id|}}} {{#property:P2349P345|from={{{qid|}}}}} | {{#switch: {{lc:{{{section|}}}}}
| award | awards = awards Awards for
| cast = fullcredits Full cast and crew of
}}}} {{Trim|{{#if:{{{quotes|}}}|"|''}}{{#if: {{{2|{{{title|}}}}}}
| {{{2|{{{title}}}}}}
| {{PAGENAMEBASE}}
}}{{#if:{{{quotes|}}}|"|''}} {{{3|{{{description|}}}}}}}}] onat [[wikipedia{{#if:{{{link_hide|}}}| IMDb |[[IMDb]]}}<includeonly>{{#if: {{{1|{{{id|}}}}}}{{#property:P2349P345|from={{{qid|}}}}}
| {{EditAtWikidata|pid=P2349P345|nbsp=yes|{{{1|{{{id|}}}}}}|qid={{{qid|}}}}}
| {{Main other|[[Category:IMDb template with no id set]]}}
}}<!-- Tracking categories
}}{{#ifeq: {{Str left|{{{1|{{{id}}}}}}|2}} | tt
| -->{{#ifexprswitch: {{Str len#invoke:String2|{{{1matchAny|{{{id}}}}}}}} < 9 or {{Str len^tt.........|^tt.......|tt|.........|source={{{1|{{{id}}}}}}|plain=false}} > 10<!--
-->| 1 | 3 |= {{Main other|[[Category:IMDb template with invalid id set]]}}{{#invoke:Preview warning|main|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}}<!--
}}
-->}}<!--
| {{#ifexpr: {{Str len|{{{1|{{{id}}}}}}}} > 8
-->{{#ifeq: {{Wikidata|property|raw|P31}} | {{MainQ21191270 other| [[Category:Pages using IMDb templatetitle withinstead invalidof idIMDb setepisode]]}}{{#invoke:Preview warning|main|[[Template:IMDb IDepisode]] should notbe containused morefor thantelevision eightepisodes}} digits}}<!--
-->{{#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}} }}<!--
}}
}}--></includeonly><noinclude>
{{documentationDocumentation}}
</noinclude>