Jump to content

Template:Metacritic film/doc: Difference between revisions

no edit summary
m (1 revision imported)
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|P1712}}
{{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|1712}}:
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 P1712",
"default": "Wikidata property P652",
                         "required": false
                         "required": false
                 },
                 },