Difference between revisions of "Template:FilmLinks"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(updated to fix non-working AllRovi links; now known as AllMovie and URL changed from allrovi.com/movies/movie/ to allmovie.com/movie/)
imported>Zyxw
(use #if with name parameter so it still defaults to PAGENAME even when template includes "|name=")
Line 1: Line 1:
 
{{#if:{{{imdb|}}}|
 
{{#if:{{{imdb|}}}|
* [http://www.imdb.com/title/tt{{{imdb}}} ''{{{name|{{PAGENAME}}}}}''] at the [[Internet Movie Database]]
+
* [http://www.imdb.com/title/tt{{{imdb}}} ''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}''] at the [[Internet Movie Database]]
 
}}{{#if:{{{allmovie|}}}{{{allrovi|}}}|
 
}}{{#if:{{{allmovie|}}}{{{allrovi|}}}|
* [http://www.allmovie.com/movie/v{{{allrovi|}}}{{{allmovie|}}} ''{{{name|{{PAGENAME}}}}}''] at [[AllMovie]]
+
* [http://www.allmovie.com/movie/v{{{allrovi|}}}{{{allmovie|}}} ''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}''] at [[AllMovie]]
 
}}{{#if:{{{yahoo|}}}|
 
}}{{#if:{{{yahoo|}}}|
* [http://movies.yahoo.com/movie/{{{yahoo}}}/info ''{{{name|{{PAGENAME}}}}}''] at [[Yahoo! Movies]]
+
* [http://movies.yahoo.com/movie/{{{yahoo}}}/info ''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}''] at [[Yahoo! Movies]]
 
}}{{#if:{{{bfidb|}}}|
 
}}{{#if:{{{bfidb|}}}|
* [http://ftvdb.bfi.org.uk/sift/title/{{{bfidb}}}/ ''{{{name|{{PAGENAME}}}}}''] at the [[British Film Institute]]
+
* [http://ftvdb.bfi.org.uk/sift/title/{{{bfidb}}}/ ''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}''] at the [[British Film Institute]]
 
}}{{#if:{{{screen|}}}|
 
}}{{#if:{{{screen|}}}|
* [http://www.screenonline.org.uk/film/id/{{{screen}}}/ ''{{{name|{{PAGENAME}}}}}''] at the [[British Film Institute]]'s [[Screenonline]]
+
* [http://www.screenonline.org.uk/film/id/{{{screen}}}/ ''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}''] at the [[British Film Institute]]'s [[Screenonline]]
 
}}{{#if:{{{brit|}}}|
 
}}{{#if:{{{brit|}}}|
* [http://www.britmovie.co.uk/films/{{{brit}}} ''{{{name|{{PAGENAME}}}}}''] at the Britmovie Database
+
* [http://www.britmovie.co.uk/films/{{{brit}}} ''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}''] at the Britmovie Database
 
}}{{#if:{{{sony|}}}|
 
}}{{#if:{{{sony|}}}|
* [http://www.sonyclassics.com/{{{sony}}} ''{{{name|{{PAGENAME}}}}}''] at [[Sony Pictures Classics]]
+
* [http://www.sonyclassics.com/{{{sony}}} ''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}''] at [[Sony Pictures Classics]]
 
}}{{#if:{{{turner|}}}|
 
}}{{#if:{{{turner|}}}|
* [http://tcmdb.com/title/title.jsp?stid={{{turner}}} ''{{{name|{{PAGENAME}}}}}''] at the [[Turner Classic Movies|TCM Movie Database]]
+
* [http://tcmdb.com/title/title.jsp?stid={{{turner}}} ''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}''] at the [[Turner Classic Movies|TCM Movie Database]]
 
}}{{#if:{{{mojo|}}}|
 
}}{{#if:{{{mojo|}}}|
* [http://www.boxofficemojo.com/movies/?id={{{mojo}}}.htm ''{{{name|{{PAGENAME}}}}}''] at [[Box Office Mojo]]
+
* [http://www.boxofficemojo.com/movies/?id={{{mojo}}}.htm ''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}''] at [[Box Office Mojo]]
 
}}{{#if:{{{metacritic|}}}|
 
}}{{#if:{{{metacritic|}}}|
* [http://www.metacritic.com/movie/{{{metacritic}}} ''{{{name|{{PAGENAME}}}}}''] at [[Metacritic]]
+
* [http://www.metacritic.com/movie/{{{metacritic}}} ''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}''] at [[Metacritic]]
 
}}{{#if:{{{rotten|}}}|
 
}}{{#if:{{{rotten|}}}|
* [http://www.rottentomatoes.com/m/{{{rotten}}} ''{{{name|{{PAGENAME}}}}}''] at [[Rotten Tomatoes]]
+
* [http://www.rottentomatoes.com/m/{{{rotten}}} ''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}''] at [[Rotten Tomatoes]]
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 09:17, 30 March 2014

Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata

This template allows linking to external links found on most film title articles. This will aid in the maintenance and standardization of these external links.

How to use

  • Not all parameters must be used, but do not delete parameters when using. An empty parameter shows a link was considered not worth adding, but a missing link implies the parameter was forgotten or didn't exist at the time the template was applied.
  • Please discuss all proposed additions, deletions and formatting changes to the Template itself within the Template's Talk page.

Cut & paste

Either

{{subst:FilmLinks
| name            = 
| imdb            = 
| allmovie        = 
| mojo            = 
| metacritic      = 
| rotten          = 
| bfi             = 
| screen          = 
| brit            = 
| sony            = 
| turner          = 
}}

or (preferred)

{{subst:FilmLinks | name = | imdb = | allmovie = | mojo = | metacritic = | rotten = | bfi = | screen = | brit = | sony = | turner = }}

The order of the parameters does not matter.

Parameters

  • All parameters are optional, but if you don't include any of them, nothing will show up.
  • Do not use capital letters. They might disrupt the code.
Parameter Data Result Template URL source
name text n/a n/a name of movie, defaults to {{PAGENAMEBASE}}
imdb id Entry {{IMDb title}} https://www.imdb.com /title/tt[imdb]
allmovie id Entry {{AllMovie title}} https://www.allmovie.com /movie/v[allmovie]
mojo name Entry {{Mojo title}} https://www.boxofficemojo.com /movies/?id=[mojo].htm
metacritic name Reviews {{Metacritic film}} https://www.metacritic.com /movie/[metacritic]
rotten name Reviews {{Rotten Tomatoes}} https://www.rottentomatoes.com /m/[rotten]
bfi id Entry {{BFI}} https://www.bfi.org.uk/films-tv-people /[bfi]
bfidb id Entry {{Bfidb title}} http://www.bfi.org.uk/films-tv-people /sift/title/[bfidb]
screen id Entry {{Screenonline title}} http://www.screenonline.org.uk /film/id/[screen]
brit id Entry {{Britmovie title}} http://www.britmovie.co.uk /films/[brit]
sony id Entry n/a http://www.sonyclassics.com /[sony]
turner id Entry {{TCMDb title}} http://www.tcm.turner.com/tcmdb /title/title.jsp?stid=[turner]

wikidata

Examples

Example 1

{{subst:FilmLinks | name = Inception | imdb = 1375666 | allmovie = 480818 | mojo = inception | metacritic = inception | rotten = inception }}

Adds the following:

* {{IMDb title|1375666|Inception}}
* {{AllMovie title|480818|Inception}}
* {{Mojo title|inception|Inception}}
* {{Metacritic film|inception|Inception}}
* {{Rotten Tomatoes|inception|Inception}}

Displayed as:

Example 2

{{subst:FilmLinks | name = They Drive by Night | imdb = 0030858 | bfi = 4ce2b6b81692c | screen = 502445 | brit = They-Drive-by-Night_1938 }}

Adds the following:

* {{IMDb title|0030858|They Drive by Night}}
* {{BFI|4ce2b6b81692c|They Drive by Night}}
* {{Screenonline title|502445|They Drive by Night}}
* {{Britmovie title|They-Drive-by-Night_1938|They Drive by Night}}

Displayed as:

Example 3

{{subst:FilmLinks | name = Midnight in Paris | imdb = 1605783 | sony = midnightinparis | turner = 802334 }}

Adds the following:

* {{IMDb title|1605783|Midnight in Paris}}
* [http://www.sonyclassics.com/midnightinparis ''Midnight in Paris''] at [[Sony Pictures Classics]]
* {{TCMDb title|802334|Midnight in Paris}}

Displayed as: