Template:IMDb title: Difference between revisions

From Good Old TV Fan Wiki
m (1 revision imported)
 
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
[https://www.imdb.com/{{#if: {{{1|{{{id|}}}}}}
* [https://www.imdb.com/title/{{{1}}} {{{2}}}] at <span class="plainlinks">[https://en.wikipedia.org/wiki/IMDb IMDb]</span>
  | title/{{#ifeq: {{Str left|{{{1|{{{id}}}}}}|2}} | tt
    | {{Trim|{{{1|{{{id}}}}}}}}/
    | tt{{#ifexpr: {{Str len|{{{1|{{{id}}}}}}}} < 7
      | {{Str rightmost|000000{{Trim|{{{1|{{{id}}}}}}}}|7}}/
      | {{Trim|{{{1|{{{id}}}}}}}}/
      }}
    }}
  | {{#if: {{#property:P345}}
    | title/{{First word|1={{#property:P345}}|sep=,}}/
    | find?q={{urlencode:{{PAGENAME}}}}&s=tt
    }}
  }}{{#if: {{{1|}}} {{{id|}}} {{#property:P345}} | {{#switch: {{lc:{{{section|}}}}}
  | award | awards = awards Awards for
  }}}} {{Trim|{{#if:{{{quotes|}}}|"|''}}{{#if: {{{2|{{{title|}}}}}}
  | {{{2|{{{title}}}}}}
  | {{PAGENAMEBASE}}
  }}{{#if:{{{quotes|}}}|"|''}} {{{3|{{{description|}}}}}}}}] at [[IMDb]]<includeonly>{{#if: {{{1|{{{id|}}}}}}{{#property:P345}}
  | {{EditAtWikidata|pid=P345|nbsp=yes|{{{1|{{{id|}}}}}}}}
  | {{Main other|[[Category:IMDb template with no id set]]}}
  }}{{#ifeq: {{Str left|{{{1|{{{id}}}}}}|2}} | tt
  | {{#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''}}
    }}
  | {{#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>
{{documentation}}
</noinclude>

Latest revision as of 04:24, 14 March 2021