This is the template sandbox page for Template:Metacritic film (diff). See also the companion subpage for test cases. |
This template is used on approximately 4,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
- Metacritic ID (P1712) (see uses)
This template uses Lua: |
Template:Metacritic film displays an external link to a web page for film title at the Metacritic website. It is intended for use in the external links section of an article.
Usage
edit- Unnamed parameters
{{Metacritic film | ID }}
{{Metacritic film | ID | TITLE }}
- Named parameters
{{Metacritic film | id= ID }}
{{Metacritic film | id= ID | title= TITLE }}
- Using Wikidata property Metacritic ID (P1712)
{{Metacritic film}}
{{Metacritic film | title= TITLE }}
Instructions
edit- Go to Metacritic.com and search for the film title. Click on the correct link to go to the film's page. The URL should look like this:
https://www.metacritic.com/movie/film-name/
- Copy only the portion after
/movie/
and add one of the following to the External links section of the article:* {{Metacritic film | film-name }}
* {{Metacritic film | id= film-name }}
* {{Metacritic film | film-name | Film Name }}
* {{Metacritic film | id= film-name | title= Film Name }}
- where
film-name
is the film's unique ID string as copied from the URL - and
Film Name
is the title of the film (this is optional, if not specified it defaults to the Wikipedia article name).
Examples
editUnnamed parameters
edit- Usage
* {{Metacritic film | the-godfather | The Godfather }}
- Output
Named parameters
edit- Usage
* {{Metacritic film | id= the-terminator | title= The Terminator (1984) }}
- Output
No ID in template or Wikidata
edit- Usage
{{Metacritic film}}
- Output
- {{Metacritic film}} template missing ID and not present in Wikidata.
TemplateData
editTemplateData for Metacritic film
This template displays an external link to a film title web page at the Metacritic website. It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 1 | The ID portion of the URL, such as the-godfather in https://www.metacritic.com/movie/the-godfather/. This parameter is optional if Wikidata property P1712 exists, but required if not.
| String | optional |
Title | title 2 | The film title, which is displayed in italic type in the link text. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation.
| String | optional |
Tracking categories
editThe following are also used by {{Metacritic album}}, {{Metacritic television}} and {{Metacritic video game}}:
- Category:Metacritic ID not in Wikidata (1)
- Category:Metacritic ID different from Wikidata (0)
- Category:Metacritic ID same as Wikidata (19)
See also
editSimilar film title templates:
- {{IMDb title}}
- {{AllMovie title}}
- {{TCMDb title}}
- {{AFI film}}
- {{Rotten Tomatoes}}
- {{Mojo title}}
Other media:
- For a television series or made-for-TV movie, use {{Metacritic television}}
- For a music album, use {{Metacritic album}}
- For a video game, use {{Metacritic video game}}