Jump to content

Wikipedia:IMDb link templates

From Wikipedia, the free encyclopedia

For links to the Internet Movie Database (IMDb), there are the following templates:

Template Example code Example rendered
Template:IMDb title (links, talk) {{IMDb title|0094721|Beetlejuice}} Beetle Juice at IMDb
Template:IMDb name (links, talk) {{IMDb name|0000197|Jack Nicholson}} Jack Nicholson at IMDb
{{IMDb name|0000197|Jack Nicholson|section=bio}} Biography for Jack Nicholson at IMDb
Template:IMDb episode (links, talk) {{IMDb episode|0539826|One for the Road}} "One for the Road" at IMDb
Template:IMDb episodes (links, talk) {{IMDb episodes|0411008|Lost}} Lost at IMDb
Template:IMDb event (links, talk) {{IMDb event|0000453|MTV Movie Awards}} MTV Movie Awards at IMDb
Template:IMDb country year (links, talk) {{IMDb country year|gb|2022}} Films of 2022 at IMDb

Further instructions about the use of these templates can be found on their respective document pages. They are intended for use in the external links section of articles.

[edit]

The following interwiki links allow links as well:

[[IMDbName:Name id]]
e.g. IMDbName:0000197 (Jack Nicholson)
[[IMDbTitle:Title id]]
e.g. IMDbTitle:0094721 (Beetle Juice)
[[IMDbCompany:Company id]]
e.g. IMDbCompany:0005073 (Universal Pictures)

This type of link should not be used in articles, for reasons explained at WT:WikiProject Film/Archive 79#Masking imdb links as wikilinks. It may be appropriate on Talk Pages as a simple way to link to relevant material.

See meta:Interwiki map.

[edit]

If you have a browser that shows the external link icon () then you can set any IMDb links to show its own icon ()

See also m:Help:User style for more info on CSS selectors.

Edit either your common.css or your skin-specific css and add:

#bodyContent a.extiw[href ^="http://www.imdb.com/"],
#bodyContent a.external[href *="imdb.com/"],
#bodyContent a.external[href *="imdb.co.uk/"] {
        background: url(http://upload.wikimedia.org/wikipedia/en/5/53/IMDb_external.png) center right no-repeat;
        padding-right: 13px;
}

Once you save the page, you may need to hold Shift and click Reload.

If you do not want interwiki links to show the icon, eliminate the a.extiw entry

Please see help on m:Help:User style

Testing

[edit]

Do you see it here on this plain link?
or on this interwiki link?

See also

[edit]