Jump to content

Template:IMDb name: Difference between revisions

m Protected "Template:IMDb name" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading]
Replaced content with "<includeonly>{{#if: {{{1|}}} | [https://www.imdb.com/name/{{{1}}}/ {{{2|{{{1}}}}}}] on IMDb }}</includeonly>"
Tag: Replaced
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[https://www.imdb.com/{{#if: {{{1|{{{id|}}}}}}
<includeonly>{{#if: {{{1|}}} | [https://www.imdb.com/name/{{{1}}}/ {{{2|{{{1}}}}}}] on [[IMDb]] }}</includeonly>
  | name/{{#if:{{#invoke:ustring|match|1={{{1|{{{id}}}}}}|2=^nm}}
    | {{Trim|{{{1|{{{id}}}}}}}}/
    | nm{{padleft:{{{1|{{{id}}}}}}|7}}/
    }}
  | {{#if: {{#property:P345}}
    | name/{{First word|1={{#property:P345}}|sep=,}}/
    | find?q={{urlencode:{{#if: {{{2|{{{name|}}}}}}
      | {{{2|{{{name}}}}}}
      | {{PAGENAMEBASE}}
      }}}}&s=nm
    }}
  }}{{#if: {{{1|}}} {{{id|}}} {{#property:P345}} | {{#switch: {{lc:{{{section|}}}}}
  | award | awards = awards Awards for | biography | bio = bio Biography for
  }}}} {{#if: {{{2|{{{name|}}}}}}
  | {{{2|{{{name}}}}}}
  | {{PAGENAMEBASE}}
  }}] at [[IMDb (identifier)|IMDb]]<includeonly>{{#if: {{{1|{{{id|}}}}}}{{#property:P345}}
  | {{Edit at Wikidata|pid=P345|nbsp=yes|{{{1|{{{id|}}}}}}}}
  | {{Main other|[[Category:IMDb name with no id set]]}}
}}{{#switch:{{#invoke:string2|matchAny|^nm.........|^nm.......|nm|.........|source={{{1|{{{id}}}}}}|plain=false}}
  | 1 | 3 =  {{Main other|[[Category:IMDb template with invalid id set]]}}{{Preview warning|IMDb ID starting with ''nm'' should be followed by seven or eight digits, such as ''nm0000567'' or ''nm12345678''}}
  | 4 = {{Main other|[[Category:IMDb template with invalid id set]]}}{{Preview warning|IMDb ID should not contain more than eight digits}}
}}</includeonly><!-- Tracking categories
-->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using IMDb name with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:IMDb name]] with unknown parameter "_VALUE_"|showblankpositional=1| 1 | 2 | id | name | section }}<!--
--><noinclude>
{{documentation}}
</noinclude>

Latest revision as of 19:03, 31 May 2026