Template:IMDb title/doc: Difference between revisions

Content deleted Content added
m 1 revision imported
 
(One intermediate revision by the same user not shown)
Line 5:
{{Lua|Module:EditAtWikidata}}
 
This template is used to generate an external link to a web page at [[wikipedia:IMDb|IMDb]]. It should be used '''exclusively for ''TITLES''''' (movies, TV series, games, etc.) and is intended for use in the [[Wikipedia:External links|external links]] section of an article.
 
: ''For a person (actor, actress, etc.), use {{tl|IMDb name}}.''
Line 55:
 
=== Parameter: id (1) ===
# Search on [https://www.imdb.com IMDb.com] for the title [[wikipedia:Alpha Dog|Alpha Dog]]. This can also be done on the Wikipedia page by previewing <code><nowiki>{{IMDb title}}</nowiki></code> and clicking that link (https://www.imdb.com/find?q=Alpha+Dog&s=tt).
# On the IMDb search results page, click the link for "Alpha Dog (2006)". That IMDb page URL is:
#: <code>[https://www.imdb.com/title/tt0426883/ https://www.imdb.com/title/tt{{Hilite|0426883}}/]</code> or <code>[http://www.imdb.com/title/tt0426883/ http://www.imdb.com/title/tt{{Hilite|0426883}}/]</code>
Line 133:
 
== Wikidata ==
The [[wikipedia:Wikidata|Wikidata]] project provides a central collection of information and parameters for articles for the various [[wikipedia:Wikimedia Foundation|Wikimedia Foundation]] projects. This includes the IMDB title codes for films. For example, the film ''[[wikipedia:Space Milkshake|Space Milkshake]]'' has a corresponding [[wikidata:Q7572422|Wikidata item (Q7572422)]], which in turn includes an [[wikidata:Property:P345|IMDb identifier]]. If {{tl|IMDb title}} is invoked in an article without the "id" parameter, and if Wikidata has an IMDb identifier specified for that article's corresponding item, the IMDb link with its title code will be included automatically.
 
For new film articles, the IMDb identifier property (and the film title item itself) may need to be added at Wikidata first, so that the default IMDb link can be available for use on Wikipedia and other Wikimedia projects.