Template:Metacritic film/doc: Difference between revisions
Johnrdorazio (talk | contribs) m (1 revision imported) |
Johnrdorazio (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> | <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> | ||
{{High-use| 4,000 }} | {{High-use| 4,000 }} | ||
{{Uses Wikidata| | {{Uses Wikidata|P652}} | ||
{{Lua|Module:EditAtWikidata}} | {{Lua|Module:EditAtWikidata}} | ||
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a web page for ''film title'' at the [[Metacritic]] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article. | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a web page for ''film title'' at the [[w:Metacritic|Metacritic]] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article. | ||
: ''For a television series or made-for-TV movie, use {{tl|Metacritic television}}'' | : ''For a television series or made-for-TV movie, use {{tl|Metacritic television}}'' | ||
Line 20: | Line 20: | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <var>ID</var> | title= <var>TITLE</var> }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <var>ID</var> | title= <var>TITLE</var> }}</code> | ||
Using [[Wikidata]] property {{Property| | Using [[w:Wikidata|Wikidata]] property {{Property|652}}: | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}}}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}}}</code> | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | title= <var>TITLE</var> }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | title= <var>TITLE</var> }}</code> | ||
== Instructions == | == Instructions == | ||
# Go to [https://www.metacritic.com 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: | # Go to [https://www.metacritic.com Metacritic.com] and search for the film title. Click on the correct link to go to the film's page. The [[w:URL|URL]] should look like this: | ||
#: <code><nowiki>https://</nowiki>www.metacritic.com/movie/{{Hilite|film-name}}</code> | #: <code><nowiki>https://</nowiki>www.metacritic.com/movie/{{Hilite|film-name}}</code> | ||
# Copy only the portion after <code>/movie/</code> and add one of the following to the '''External links''' section of the article: | # Copy only the portion after <code>/movie/</code> and add one of the following to the '''External links''' section of the article: | ||
Line 75: | Line 75: | ||
"description": "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.", | "description": "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.", | ||
"type": "string", | "type": "string", | ||
"default": "Wikidata property | "default": "Wikidata property P652", | ||
"required": false | "required": false | ||
}, | }, |
Latest revision as of 07:31, October 17, 2020
This is a documentation subpage for Template:Metacritic film. It contains usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 4,100 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 (P652) (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.
- 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}}
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 Metacritic ID (P652):
{{Metacritic film}}
{{Metacritic film | title= TITLE }}
Instructions
- 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
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}} template missing ID and not present in Wikidata.
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 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.
| String | optional |
Title | title 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.
| String | optional |
See also
Similar film title templates:
- {{IMDb title}}
- {{AllMovie title}}
- {{TCMDb title}}
- {{AFI film}}
- {{BFI}}
- {{Rotten Tomatoes}}
- {{Mojo title}}