Difference between revisions of "Template:FilmLinks/doc"
imported>Zyxw (add template categories) |
imported>Zyxw (List parameters in order displayed by template. Add names of templates used, with links. Update URLs for templates now using https. Replace "field" with "parameter. Update examples.) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| + | <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | ||
{{Uses Wikidata|section=wikidata}} | {{Uses Wikidata|section=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. | 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. | ||
| Line 7: | Line 8: | ||
<includeonly>{{subst only}}</includeonly> | <includeonly>{{subst only}}</includeonly> | ||
| − | * Not all | + | * 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. | * Please discuss all proposed additions, deletions and formatting changes to the Template itself within the Template's Talk page. | ||
| − | ===Cut & paste=== | + | === Cut & paste === |
Either | Either | ||
<pre> | <pre> | ||
| Line 18: | Line 18: | ||
| imdb = | | imdb = | ||
| allmovie = | | allmovie = | ||
| + | | mojo = | ||
| + | | metacritic = | ||
| + | | rotten = | ||
| bfidb = | | bfidb = | ||
| screen = | | screen = | ||
| brit = | | brit = | ||
| − | |||
| − | |||
| − | |||
| sony = | | sony = | ||
| turner = | | turner = | ||
| Line 30: | Line 30: | ||
or (preferred) | or (preferred) | ||
<pre> | <pre> | ||
| − | {{subst:FilmLinks | name = | imdb = | allmovie = | | + | {{subst:FilmLinks | name = | imdb = | allmovie = | mojo = | metacritic = | rotten = | bfidb = | screen = | brit = | sony = | turner = }} |
</pre> | </pre> | ||
| − | The '''order''' of the | + | 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. | * 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. | * Do not use capital letters. They might disrupt the code. | ||
{| class=wikitable | {| class=wikitable | ||
| − | ! | + | ! Parameter !! Data !! Result !! Template !! [[URL]] source |
|- | |- | ||
| − | | ''name'' || text || n/a || name of movie, defaults to [[Help:Magic words#Variables|<nowiki>{{PAGENAME}}</nowiki>]] | + | | ''name'' || text || n/a || n/a || name of movie, defaults to [[Help:Magic words#Variables|<nowiki>{{PAGENAME}}</nowiki>]] |
|- | |- | ||
| − | | ''imdb'' || id || Entry || https://www.imdb.com /title/tt'''[imdb]''' | + | | ''imdb'' || id || Entry || {{tl|imdb title}} || https://www.imdb.com /title/tt'''[imdb]''' |
|- | |- | ||
| − | | ''allmovie'' || id || Entry || | + | | ''allmovie'' || id || Entry || {{tl|AllMovie title}} || https://www.allmovie.com /movie/v'''[allmovie]''' |
|- | |- | ||
| − | | '' | + | | ''mojo'' || name || Entry || {{tl|Mojo title}} || https://www.boxofficemojo.com /movies/?id='''[mojo]'''.htm |
|- | |- | ||
| − | | '' | + | | ''metacritic'' || name || Reviews || {{tl|Metacritic film}} || https://www.metacritic.com /movie/'''[metacritic]''' |
|- | |- | ||
| − | | '' | + | | ''rotten'' || name || Reviews || {{tl|Rotten Tomatoes}} || https://www.rottentomatoes.com /m/'''[rotten]''' |
|- | |- | ||
| − | | '' | + | | ''bfidb'' || id || Entry || {{tl|Bfidb title}} || http://ftvdb.bfi.org.uk /sift/title/'''[bfidb]''' |
|- | |- | ||
| − | | '' | + | | ''screen'' || id || Entry || {{tl|Screenonline title}} || http://www.screenonline.org.uk /film/id/'''[screen]''' |
|- | |- | ||
| − | | '' | + | | ''brit'' || id || Entry || {{tl|Britmovie title}} || http://www.britmovie.co.uk /films/'''[brit]''' |
|- | |- | ||
| − | | ''sony'' || id || Entry || http://www.sonyclassics.com /'''[sony]''' | + | | ''sony'' || id || Entry || {{tl|Sonyclassics title}} || http://www.sonyclassics.com /'''[sony]''' |
|- | |- | ||
| − | | ''turner'' || id || Entry || http:// | + | | ''turner'' || id || Entry || {{tl|Tcmdb title}} || http://www.tcm.turner.com/tcmdb /title/title.jsp?stid='''[turner]''' |
|} | |} | ||
== wikidata == | == wikidata == | ||
| − | * [[IMDb|Internet Movie Database]] | + | * [[IMDb|Internet Movie Database]] – {{Prop|345|id=f}} |
| − | * [[AllMovie]] | + | * [[AllMovie]] – {{Prop|1562|id=f}} |
| − | * [[Box Office Mojo]] | + | * [[Box Office Mojo]] – {{Prop|1237|id=f}} |
| − | * [[Metacritic]] | + | * [[Metacritic]] – {{Prop|1712|id=f}} |
| − | * [[Rotten Tomatoes]] | + | * [[Rotten Tomatoes]] – {{Prop|1258|id=f}} |
| + | |||
| + | == Examples == | ||
| + | |||
| + | === Example 1 === | ||
| + | <code><nowiki>{{subst:FilmLinks | name = Inception | imdb = 1375666 | allmovie = 480818 | mojo = inception | metacritic = inception | rotten = inception | bfidb = | screen = | brit = | sony = | turner = }}</nowiki></code> | ||
| − | + | Adds the following templates: | |
| − | + | <pre> | |
| − | < | ||
* {{imdb title|1375666|Inception}} | * {{imdb title|1375666|Inception}} | ||
* {{AllMovie title|480818|Inception}} | * {{AllMovie title|480818|Inception}} | ||
| Line 78: | Line 82: | ||
* {{Metacritic film|inception|Inception}} | * {{Metacritic film|inception|Inception}} | ||
* {{Rotten Tomatoes|inception|Inception}} | * {{Rotten Tomatoes|inception|Inception}} | ||
| + | </pre> | ||
| − | + | Displayed as: | |
| − | |||
* {{imdb title|1375666|Inception}} | * {{imdb title|1375666|Inception}} | ||
* {{AllMovie title|480818|Inception}} | * {{AllMovie title|480818|Inception}} | ||
| Line 86: | Line 90: | ||
* {{Metacritic film|inception|Inception}} | * {{Metacritic film|inception|Inception}} | ||
* {{Rotten Tomatoes|inception|Inception}} | * {{Rotten Tomatoes|inception|Inception}} | ||
| + | |||
| + | === Example 2 === | ||
| + | <code><nowiki>{{subst:FilmLinks | name = They Drive by Night | imdb = 0030858 | bfidb = 53898 | screen = 502445 | brit = They-Drive-by-Night_1938 }}</nowiki></code> | ||
| + | |||
| + | Adds the following templates: | ||
| + | <pre> | ||
| + | * {{imdb title|0030858|They Drive by Night}} | ||
| + | * {{Bfidb title|53898|They Drive by Night}} | ||
| + | * {{Screenonline title|502445|They Drive by Night}} | ||
| + | * {{Britmovie title|They-Drive-by-Night_1938|They Drive by Night}} | ||
| + | </pre> | ||
| + | |||
| + | Displayed as: | ||
| + | * {{imdb title|0030858|They Drive by Night}} | ||
| + | * {{Bfidb title|53898|They Drive by Night}} | ||
| + | * {{Screenonline title|502445|They Drive by Night}} | ||
| + | * {{Britmovie title|They-Drive-by-Night_1938|They Drive by Night}} | ||
| + | |||
| + | === Example 3 === | ||
| + | <code><nowiki>{{subst:FilmLinks | name = Midnight in Paris | imdb = 1605783 | sony = midnightinparis | turner = 802334 }}</nowiki></code> | ||
| + | |||
| + | Adds the following templates: | ||
| + | <pre> | ||
| + | * {{imdb title|1605783|Midnight in Paris}} | ||
| + | * {{Sonyclassics title|midnightinparis|Midnight in Paris}} | ||
| + | * {{Tcmdb title|802334|Midnight in Paris}} | ||
</pre> | </pre> | ||
| + | |||
| + | Displayed as: | ||
| + | * {{imdb title|1605783|Midnight in Paris}} | ||
| + | * {{Sonyclassics title|midnightinparis|Midnight in Paris}} | ||
| + | * {{Tcmdb title|802334|Midnight in Paris}} | ||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | ||
Revision as of 09:53, 1 April 2019
| This is a documentation subpage for Template:FilmLinks. It contains usage information, categories and other content that is not part of the original template page. |
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.
Contents
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 =
| bfidb =
| screen =
| brit =
| sony =
| turner =
}}
or (preferred)
{{subst:FilmLinks | name = | imdb = | allmovie = | mojo = | metacritic = | rotten = | bfidb = | 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 {{PAGENAME}} |
| 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] |
| bfidb | id | Entry | {{Bfidb title}} | http://ftvdb.bfi.org.uk /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 | {{Sonyclassics title}} | http://www.sonyclassics.com /[sony] |
| turner | id | Entry | {{Tcmdb title}} | http://www.tcm.turner.com/tcmdb /title/title.jsp?stid=[turner] |
wikidata
- Internet Movie Database – Template:Prop
- AllMovie – Template:Prop
- Box Office Mojo – Template:Prop
- Metacritic – Template:Prop
- Rotten Tomatoes – Template:Prop
Examples
Example 1
{{subst:FilmLinks | name = Inception | imdb = 1375666 | allmovie = 480818 | mojo = inception | metacritic = inception | rotten = inception | bfidb = | screen = | brit = | sony = | turner = }}
Adds the following templates:
* {{imdb title|1375666|Inception}}
* {{AllMovie title|480818|Inception}}
* {{Mojo title|inception|Inception}}
* {{Metacritic film|inception|Inception}}
* {{Rotten Tomatoes|inception|Inception}}
Displayed as:
- Expression error: Unrecognized punctuation character "[". Inception at IMDbScript error: No such module "EditAtWikidata".Expression error: Unrecognized punctuation character "[".
- Inception at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Template:Mojo title
- Template:Metacritic film
- Template:Rotten Tomatoes
Example 2
{{subst:FilmLinks | name = They Drive by Night | imdb = 0030858 | bfidb = 53898 | screen = 502445 | brit = They-Drive-by-Night_1938 }}
Adds the following templates:
* {{imdb title|0030858|They Drive by Night}}
* {{Bfidb title|53898|They Drive by Night}}
* {{Screenonline title|502445|They Drive by Night}}
* {{Britmovie title|They-Drive-by-Night_1938|They Drive by Night}}
Displayed as:
- Expression error: Unrecognized punctuation character "[". They Drive by Night at IMDbScript error: No such module "EditAtWikidata".Expression error: Unrecognized punctuation character "[".
- They Drive by Night at the British Film Institute's Film and TV Database
- Template:Screenonline title
- They Drive by Night at BritMovie (archived)
Example 3
{{subst:FilmLinks | name = Midnight in Paris | imdb = 1605783 | sony = midnightinparis | turner = 802334 }}
Adds the following templates:
* {{imdb title|1605783|Midnight in Paris}}
* {{Sonyclassics title|midnightinparis|Midnight in Paris}}
* {{Tcmdb title|802334|Midnight in Paris}}
Displayed as:
- Expression error: Unrecognized punctuation character "[". Midnight in Paris at IMDbScript error: No such module "EditAtWikidata".Expression error: Unrecognized punctuation character "[".
- Template:Sonyclassics title
- Template:Tcmdb title