Template:IMDb title: 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|}}}}}}
* <span class="plainlinks">[https://www.imdb.com/title/{{{1}}} {{{2}}}at] [https://en.wikipedia.org/wiki/IMDb IMDb]</span>
  | title/{{#ifeq: {{Str left|{{{1|{{{id}}}}}}|2}} | tt
<noinclude>
    | {{Trim|{{{1|{{{id}}}}}}}}/
<templatedata>
    | tt{{#ifexpr: {{Str len|{{{1|{{{id}}}}}}}} < 7
{
      | {{Str rightmost|000000{{Trim|{{{1|{{{id}}}}}}}}|7}}/
"params": {
      | {{Trim|{{{1|{{{id}}}}}}}}/
"1": {
      }}
"aliases": [
    }}
"id"
  | {{#if: {{#property:P345}}
],
    | title/{{First word|1={{#property:P345}}|sep=,}}/
"label": "IMDb id",
    | find?q={{urlencode:{{PAGENAME}}}}&s=tt
"description": "Title id from IMDb URL",
    }}
"example": "\"tt0057751\" (For: https://www.imdb.com/title/tt0057751/ which is page for Gilligan's Island)",
  }}{{#if: {{{1|}}} {{{id|}}} {{#property:P345}} | {{#switch: {{lc:{{{section|}}}}}
"type": "string",
  | award | awards = awards Awards for
"required": true
  }}}} {{Trim|{{#if:{{{quotes|}}}|"|''}}{{#if: {{{2|{{{title|}}}}}}
},
  | {{{2|{{{title}}}}}}
"2": {
  | {{PAGENAMEBASE}}
"aliases": [
  }}{{#if:{{{quotes|}}}|"|''}} {{{3|{{{description|}}}}}}}}] at [[IMDb]]<includeonly>{{#if: {{{1|{{{id|}}}}}}{{#property:P345}}
"Title"
  | {{EditAtWikidata|pid=P345|nbsp=yes|{{{1|{{{id|}}}}}}}}
],
  | {{Main other|[[Category:IMDb template with no id set]]}}
"label": "Title",
  }}{{#ifeq: {{Str left|{{{1|{{{id}}}}}}|2}} | tt
"description": "Title of TV Series or Movie that IMDb page is about",
  | {{#ifexpr: {{Str len|{{{1|{{{id}}}}}}}} < 9 or {{Str len|{{{1|{{{id}}}}}}}} > 10
"example": "\"Gilligan's Island\" (For: https://www.imdb.com/title/tt0057751/ which is page for Gilligan's Island)",
    | {{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''}}
"type": "string",
    }}
"required": true
  | {{#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}}
},
    }}
"description": "Returns external link to a title on IMDb website and link to Wikipedia IMDb page."
  }}</includeonly><noinclude>
}
{{documentation}}
</templatedata>
</noinclude>
</noinclude>

Revision as of 03:43, 14 March 2021

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

Template parameters

ParameterDescriptionTypeStatus
IMDb id1 id

Title id from IMDb URL

Example
"tt0057751" (For: https://www.imdb.com/title/tt0057751/ which is page for Gilligan's Island)
Stringrequired
Title2 Title

Title of TV Series or Movie that IMDb page is about

Example
"Gilligan's Island" (For: https://www.imdb.com/title/tt0057751/ which is page for Gilligan's Island)
Stringrequired