Template:IMDb title: Difference between revisions

From Good Old TV Fan Wiki
m (1 revision imported)
 
m (1 revision imported)
(One intermediate revision by the same user 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/{{#ifeq: {{Str left|{{{1|{{{id}}}}}}|2}} | tt
     | {{{1|{{{id}}}}}}
     | {{Trim|{{{1|{{{id}}}}}}}}/
     | tt{{#if: {{Str len|{{{1|{{{id}}}}}}}} < 7
     | tt{{#ifexpr: {{Str len|{{{1|{{{id}}}}}}}} < 7
       | {{Str rightmost|000000{{Trim|{{{1|{{{id}}}}}}}}|7}}
       | {{Str rightmost|000000{{Trim|{{{1|{{{id}}}}}}}}|7}}/
      | {{Trim|{{{1|{{{id}}}}}}}}/
       }}
       }}
     }}
     }}
   | {{#if: {{#property:P345}}
   | {{#if: {{#property:P345}}
     | title/{{First word|1={{#property:P345}}|sep=,}}
     | title/{{First word|1={{#property:P345}}|sep=,}}/
     | Title?{{urlencode:{{PAGENAME}}}}
     | find?q={{urlencode:{{PAGENAME}}}}&s=tt
     }}
     }}
   }}/{{#switch: {{lc:{{{section|}}}}}
   }}{{#if: {{{1|}}} {{{id|}}} {{#property:P345}} | {{#switch: {{lc:{{{section|}}}}}
   | award | awards = awards Awards for
   | award | awards = awards Awards for
   }} {{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 [[IMDb]]<includeonly>{{#if: {{{1|{{{id|}}}}}}{{#property:P345}}
   | &#32;{{EditAtWikidata|pid=P345|{{{1|{{{id|}}}}}}}}
   | {{EditAtWikidata|pid=P345|nbsp=yes|{{{1|{{{id|}}}}}}}}
   | {{Main other|[[Category:IMDb template with no id set]]}}
   | {{Main other|[[Category:IMDb template with no id set]]}}
   }}{{#ifeq: {{Str left|{{{1|{{{id}}}}}}|2}} | tt
   }}{{#ifeq: {{Str left|{{{1|{{{id}}}}}}|2}} | tt
   | {{#ifeq: {{Str len|{{{1|{{{id}}}}}}}} | 9
   | {{#ifexpr: {{Str len|{{{1|{{{id}}}}}}}} < 9 or {{Str len|{{{1|{{{id}}}}}}}} > 10
     |
    | {{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''}}
     | {{Main other|[[Category:IMDb template with invalid id set]]}}
     }}
  | {{#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}}
     }}
     }}
   }}</includeonly><noinclude>
   }}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 12:14, 10 March 2021

IMDb title at IMDb