Template:Metacritic film/doc

From MOASSpedia
Jump to navigation Jump to search

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

Unnamed parameters:

{{Metacritic film | ID }}
{{Metacritic film | ID | TITLE }}

Named parameters:

{{Metacritic film | id= ID }}
{{Metacritic film | id= ID | title= TITLE }}

Using Wikidata property (P1712):

{{Metacritic film}}
{{Metacritic film | title= TITLE }}

Instructions

  1. 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
  2. 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

Unnamed parameters

URL:

https://www.metacritic.com/movie/the-godfather

Usage:

* {{Metacritic film | the-godfather | The Godfather }}

Output:

Named parameters

URL:

https://www.metacritic.com/movie/the-terminator

Usage:

* {{Metacritic film | id= the-terminator | title= The Terminator (1984) }}

Output:

No ID in template or Wikidata

Usage:

{{Metacritic film}}

Output:

Metacritic film/doc at MetacriticLua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData 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.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The "id" parameter (or unnamed parameter "1") may be used to specify the ID portion of the URL. Example: the-godfather is the ID in https://www.metacritic.com/movie/the-godfather. This parameter is optional if Wikidata property P1712 exists, but required if not.

Default
Wikidata property P1712
Stringoptional
Titletitle 2

The "title" parameter (or unnamed parameter "2") may be used to specify 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.

Default
{{PAGENAMEBASE}}
Stringoptional

See also

Similar film title templates:

Other media: