Template:IMDb name: Difference between revisions

From Good Old TV Fan Wiki
m (1 revision imported)
 
No edit summary
Line 1: Line 1:
[https://www.imdb.com/{{#if:{{{1|{{{id|}}}}}}|name/{{#ifeq:{{Str left|{{{1|{{{id}}}}}}|2}}|nm|{{Trim|{{{1|{{{id}}}}}}}}|nm{{#if:{{str len|{{{1|{{{id}}}}}}}}<7|{{str rightmost|000000{{Trim|{{{1|{{{id}}}}}}}}|7}}}}}}|{{#if:{{#property:P345}}|name/{{#property:P345}}|Name?{{urlencode:{{PAGENAME}}}}}}}}/{{#switch:{{lc:{{{section|}}} }}
* <span class="plainlinks">[https://www.imdb.com/name/{{{1}}} {{{2}}}at] [https://en.wikipedia.org/wiki/IMDb IMDb]</span>
|award|awards=awards Awards for
<noinclude>
|biography|bio=bio Biography for
<templatedata>
}} {{{2|{{{name|{{PAGENAMEBASE}}}}}}}}] on [[IMDb]]<includeonly>{{EditAtWikidata|pid=P345|{{{1|{{{id|}}}}}}}}{{#if:{{{1|{{{id|}}}}}}{{#property:P345}}||{{main other|[[Category:IMDb template with no id set]]}}}}{{#ifeq:{{Str left|{{{1|{{{id}}}}}}|2}}|nm|{{#ifeq:{{str len|{{{1|{{{id}}}}}}}}|9||{{main other|[[Category:IMDb template with invalid id set]]}}}}}}</includeonly><noinclude>
{
{{documentation}}
"params": {
"1": {
"aliases": [
"id"
],
"label": "IMDb id",
"description": "Name id from IMDb URL",
"example": "\"nm0920171\" (For: https://www.imdb.com/name/nm0920171/ which is page for Dawn Wells)",
"type": "string",
"required": true
},
"2": {
"aliases": [
"Name"
],
"label": "Name",
"description": "Name of Person that IMDb page is about",
"example": "\"Dawn Wells\" (For: https://www.imdb.com/name/nm0920171/ which is page for Dawn Wells)",
"type": "string",
"required": true
}
},
"description": "Returns external link to a person on IMDb website and link to Wikipedia IMDb page."
}
</templatedata>
</noinclude>
</noinclude>

Revision as of 03:42, 14 March 2021

Returns external link to a person on IMDb website and link to Wikipedia IMDb page.

Template parameters

ParameterDescriptionTypeStatus
IMDb id1 id

Name id from IMDb URL

Example
"nm0920171" (For: https://www.imdb.com/name/nm0920171/ which is page for Dawn Wells)
Stringrequired
Name2 Name

Name of Person that IMDb page is about

Example
"Dawn Wells" (For: https://www.imdb.com/name/nm0920171/ which is page for Dawn Wells)
Stringrequired