Template:IMDb title: Difference between revisions

From Seeds of the Word, the encyclopedia of the influence of the Gospel on culture
Content deleted Content added
use nbsp option from EditAtWikidata template
 
m 1 revision imported
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[https://www.imdb.com/{{#if: {{{1|{{{id|}}}}}}
[https://www.imdb.com/{{#if: {{{1|{{{id|}}}}}}
| title/{{#ifeq: {{Str left|{{{1|{{{id}}}}}}|2}} | tt
| title/{{#if:{{#invoke:ustring|match|1={{{1|{{{id}}}}}}|2=^tt}}
| {{Trim|{{{1|{{{id}}}}}}}}/
| {{Trim|{{{1|{{{id}}}}}}}}/{{WikidataCheck|property=P345|value={{Trim|{{{1|{{{id|}}}}}}}}|category=IMDb ID|qid={{{qid|}}}}}
| tt{{#ifexpr: {{Str len|{{{1|{{{id}}}}}}}} < 7
| tt{{padleft:{{{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:P345}}
| {{#if: {{#property:P345|from={{{qid|}}}}}
| title/{{First word|1={{#property:P345}}|sep=,}}/
| title/{{First word|1={{#property:P345|from={{{qid|}}}}}|sep=,}}/
| find?q={{urlencode:{{PAGENAME}}}}&s=tt
| find?q={{urlencode:{{PAGENAMEBASE}}}}&s=tt
}}
}}
}}{{#if: {{{1|}}} {{{id|}}} {{#property:P345}} | {{#switch: {{lc:{{{section|}}}}}
}}{{#if: {{{1|}}} {{{id|}}} {{#property:P345|from={{{qid|}}}}} | {{#switch: {{lc:{{{section|}}}}}
| award | awards = awards Awards for
| award | awards = awards Awards for
| cast = fullcredits Full cast and crew of
}}}} {{Trim|{{#if:{{{quotes|}}}|"|''}}{{#if: {{{2|{{{title|}}}}}}
}}}} {{Trim|{{#if:{{{quotes|}}}|"|''}}{{#if: {{{2|{{{title|}}}}}}
| {{{2|{{{title}}}}}}
| {{{2|{{{title}}}}}}
| {{PAGENAMEBASE}}
| {{PAGENAMEBASE}}
}}{{#if:{{{quotes|}}}|"|''}} {{{3|{{{description|}}}}}}}}] on [[IMDb]]<includeonly>{{#if: {{{1|{{{id|}}}}}}{{#property:P345}}
}}{{#if:{{{quotes|}}}|"|''}} {{{3|{{{description|}}}}}}}}] at {{#if:{{{link_hide|}}}| IMDb |[[IMDb]]}}<includeonly>{{#if: {{{1|{{{id|}}}}}}{{#property:P345|from={{{qid|}}}}}
| {{EditAtWikidata|pid=P345|nbsp=yes|{{{1|{{{id|}}}}}}}}
| {{EditAtWikidata|pid=P345|nbsp=yes|{{{1|{{{id|}}}}}}|qid={{{qid|}}}}}
| {{Main other|[[Category:IMDb template with no id set]]}}
| {{Main other|[[Category:IMDb template with no id set]]}}
}}<!-- Tracking categories
}}{{#ifeq: {{Str left|{{{1|{{{id}}}}}}|2}} | tt
| {{#ifexpr: {{Str len|{{{1|{{{id}}}}}}}} < 9 or {{Str len|{{{1|{{{id}}}}}}}} > 10
-->{{#switch: {{#invoke:String2|matchAny|^tt.........|^tt.......|tt|.........|source={{{1|{{{id}}}}}}|plain=false}}<!--
| {{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''}}
-->| 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}}<!--
}}
-->}}<!--
| {{#ifexpr: {{Str len|{{{1|{{{id}}}}}}}} > 8
| {{Main other|[[Category:IMDb template with invalid id set]]}}{{#invoke:Preview warning|main|IMDb ID should not contain more than eight digits}}
-->{{#ifeq: {{Wikidata|property|raw|P31}} | Q21191270 | [[Category:Pages using IMDb title instead of IMDb episode]]{{Preview warning|[[Template:IMDb episode]] should be used for television episodes}} }}<!--
-->{{#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>
--></includeonly><noinclude>
{{documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 16:23, May 4, 2023

IMDb title at IMDb