Template:Cite Metacritic: Difference between revisions
PrimeHunter (talk | contribs) Restored revision 1027182412 by Some Dude From North Carolina (talk): Broke all tested season links, e.g. in Doctor Who (series 11) |
Chompy Ace (talk | contribs) Swap to {{cite web}} wrapper Tags: Mobile edit Mobile web edit |
||
Line 1: | Line 1: | ||
<includeonly>{{ |
<includeonly>{{ |
||
| url = {{#ifeq: {{{type|}}}{{{id|}}} | {{{type}}}{{{id}}} | https://www.metacritic.com/{{#switch: {{{type}}} |movie|film=movie|tv|television=tv|game|videogame=game}}{{#if:{{{vgtype|}}}|/{{#switch: {{{vgtype}}} |pc|playstation-3|playstation-4|playstation-vita|xbox-one|xbox-360|ios|3ds|wii-u|switch|ds{{{vgtype}}}|#default={{{vgtype}}}}}|}}/{{{id}}}{{#if:{{{season|}}}|/season-{{#switch: {{{season}}} |1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50{{{season}}}|#default={{{season}}}}}|}} | https://www.metacritic.com/ }} |
|||
-->{{#if:{{{type|}}}|<!--Error checking for type parameter |
|||
{{#if:{{{title|}}}|< |
|||
| script-title = {{{script-title|}}} |
|||
-->{{#if:{{{url-status|}}}|{{#ifeq:{{{url-status}}}|live|[https://www.metacritic.com/{{#switch: {{{type}}} |movie|film=movie|tv|television=tv|game|videogame=game}}{{#if:{{{vgtype|}}}|/{{#switch: {{{vgtype}}} |pc|playstation-3|playstation-4|playstation-vita|xbox-one|xbox-360|ios|3ds|wii-u|switch|ds={{{vgtype}}}|#default={{{vgtype}}}}}|}}/{{{id}}}{{#if:{{{season|}}}|/season-{{#switch: {{{season}}} |1|2|3|4|5|6|7|8|9={{{season}}}|#default={{{season}}}}}|}} "''{{{title}}}''{{#if:{{{season|}}}|<nowiki>:</nowiki> Season {{{season}}}|}}"]|[{{{archive-url|{{{archiveurl|}}}}}} "''{{{title}}}''{{#if:{{{season|}}}|<nowiki>:</nowiki> Season {{{season}}}|}}]"}}|[https://www.metacritic.com/{{#switch: {{{type}}} |movie|film=movie|tv|television=tv|game|videogame=game}}{{#if:{{{vgtype|}}}|/{{#switch: {{{vgtype}}} |pc|playstation-3|playstation-4|playstation-vita|xbox-one|xbox-360|ios|3ds|wii-u|switch|ds={{{vgtype}}}|#default={{{vgtype}}}}}|}}/{{{id}}}{{#if:{{{season|}}}|/season-{{#switch: {{{season}}} |1|2|3|4|5|6|7|8|9={{{season}}}|#default={{{season}}}}}|}} "''{{{title}}}''{{#if:{{{season|}}}|<nowiki>:</nowiki> Season {{{season}}}|}}]"}}{{#ifeq:{{{mode}}}|cs2|,|.}} ''[[Metacritic]]''{{#ifeq:{{{mode}}}|cs2|,|.}} [[Red Ventures]]{{#if:{{{archive-url|}}}{{{archiveurl|}}}|{{#ifeq:{{{mode}}}|cs2|,|.}} {{#if:{{{url-status|}}}|{{#ifeq:{{{url-status}}}|live|[{{{archive-url|{{{archiveurl|}}}}}} {{#ifeq:{{{mode}}}|cs2|a|A}}rchived] from the original|{{#ifeq:{{{mode}}}|cs2|a|A}}rchived from [https://www.metacritic.com/{{#switch: {{{type}}} |movie|film=movie|tv|television=tv|game|videogame=game}}{{#if:{{{vgtype|}}}|/{{#switch: {{{vgtype}}} |pc|playstation-3|playstation-4|playstation-vita|xbox-one|xbox-360|ios|3ds|wii-u|switch|ds={{{vgtype}}}|#default={{{vgtype}}}}}|}}/{{{id}}}{{#if:{{{season|}}}|/season-{{#switch: {{{season}}} |1|2|3|4|5|6|7|8|9={{{season}}}|#default={{{season}}}}}|}} the original]}}}} on {{{archive-date|{{{archivedate|}}}}}}}}{{#if:{{{access-date|}}}{{{accessdate|}}}|{{#ifeq:{{{mode}}}|cs2|,|.}} {{#ifeq:{{{mode}}}|cs2|r|R}}etrieved {{{access-date|{{{accessdate|}}}}}}}}{{#ifeq:{{{mode}}}|cs2||.}}|<!-- |
|||
| trans-title = {{{trans-title|}}} |
|||
| language = {{{language|}}} |
|||
| website = [[Metacritic]] |
|||
| publisher = {{#if:{{{publisher_hide|}}}| |[[Red Ventures]]}} |
|||
| date = {{{date|}}} |
|||
| location = {{{location|}}} |
|||
| access-date = {{{access-date|{{{accessdate|}}} }}} |
|||
| archive-date = {{{archive-date|{{{archivedate|}}} }}} |
|||
| archive-url = {{{archive-url|{{{archiveurl|}}} }}} |
|||
| url-status = {{{url-status|{{{dead-url|{{{deadurl|}}}}}}}}} |
|||
| ref = {{{ref|}}} |
|||
| df = {{{df|}}} |
|||
| mode = {{{mode|}}} |
|||
}}<!-- |
|||
Error checking |
Error checking |
||
No id -->{{#if:{{{id|}}}||<span style="font-size:100%" class="error citation-comment">Missing or empty <kbd>|id=</kbd></span>{{main other|[[Category:Cite Metacritic templates with errors]]}} }}<!-- |
|||
(Note: error message is provided by CS1 module) |
|||
No type --> {{#if:{{{type|}}}||<span style="font-size:100%" class="error citation-comment">Missing or empty <kbd>|id=</kbd></span>{{main other|[[Category:Cite Metacritic templates with errors]]}} }}<!-- |
|||
-->{{Citation error|no {{para|title}} specified|Cite Metacritic}}}}|{{Citation error|no {{para|type}} specified|Cite Metacritic}}}}|{{Citation error|no {{para|id}} specified|Cite Metacritic}}}}</includeonly><noinclude> |
|||
No title --> {{#if:{{{title|}}}||<span style="font-size:100%" class="error citation-comment">Missing or empty <kbd>|id=</kbd></span>{{main other|[[Category:Cite Metacritic templates with errors]]}} }}<!-- |
|||
--></includeonly><noinclude> |
|||
{{Documentation}} |
{{Documentation}} |
||
</noinclude> |
</noinclude> |
Revision as of 23:06, 11 December 2021
![]() | This template is a Citation Style 1 wrapper template based on {{Cite web}}. For centralised Citation Style 1 discussions, see Help talk:Citation Style 1. |
A template for citing information on Metacritic.
Usage
Copy a blank version to use. Almost all parameter names are supported only in lower case (some initialisms, such as |isbn=
have upper-case aliases like |ISBN=
, which are acceptable for use). Use the "|" (pipe) character between each parameter. Unused parameters may be deleted to avoid clutter in the edit window. Some samples on this documentation page may include the current date. If the date is not current, then the page.
|
|
Examples
Films
For Ralph Breaks the Internet:
{{Cite Metacritic |id=ralph-breaks-the-internet |type=movie |title=Ralph Breaks the Internet}}
{{Cite Metacritic |id=ralph-breaks-the-internet |type=movie |title=Ralph Breaks the Internet |accessdate=January 14, 2021}}
- "Ralph Breaks the Internet". Metacritic. Red Ventures. Retrieved January 14, 2021.
{{Cite Metacritic |id=ralph-breaks-the-internet |type=movie |title=Ralph Breaks the Internet |accessdate=January 14, 2021 |mode=cs2}}
- "Ralph Breaks the Internet", Metacritic, Red Ventures, retrieved January 14, 2021
Television series
For Descendants:
{{Cite Metacritic |id=descendants |type=tv |title=Descendants |accessdate=January 24, 2021}}
- "Descendants". Metacritic. Red Ventures. Retrieved January 24, 2021.
For WandaVision (season 1):
{{Cite Metacritic |title=WandaVision |id=wandavision |type=tv |season=1 |access-date=January 25, 2021 }}
- "WandaVision: Season 1". Metacritic. Red Ventures. Retrieved January 25, 2021.
Video games
For PlayerUnknown's Battlegrounds (PC):
{{Cite Metacritic |id=playerunknowns-battlegrounds |type=game |vgtype=pc |title=PlayerUnknown{{'}}s Battlegrounds (PC) |access-date=February 14, 2021}}
- "PlayerUnknown's Battlegrounds (PC)". Metacritic. Red Ventures. Retrieved February 14, 2021.
Error detection
- The parameters
|id=
,|type=
,|title=
, and|access-date=
are required. If omitted or left blank, errors will be reported. For example:
{{Cite Metacritic|title=I'm an incomplete citation!|type=movie}}
Tracking categories
- Category:Cite Metacritic templates with errors (0)
- Category:Cite Metacritic template with unknown parameters (1)
TemplateData
TemplateData for Cite Metacritic
A template for citing information on Metacritic
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id | URL identifier used by Metacritic for the media | String | required |
type | type | To identify if it is a film, a television series, or a video game. Acceptable inputs are 'movie', 'm', 'film', 'tv', 'television', 'vg', or 'videogame' | String | required |
vgtype | vgtype | To identify the video game's type. Acceptable inputs are 'pc', 'playstation-3', 'playstation-4', 'playstation-5', 'playstation-vita', 'xbox-one', 'xbox-360', 'ios', '3ds', 'wii-u', 'switch', or 'ds' | String | optional |
season | season | The specific season of a television series | Number | optional |
title | title | The name of the media. If not entered, will pull from page name. | String | optional |
publisher_hide | publisher_hide | To hide the publisher parameter | String | optional |
access date | access-date accessdate | The full date when the site was accessed; do not wikilink | Date | required |
archive URL | archive-url archiveurl | The URL of an archived copy of a web page, if or in case the URL becomes unavailable; requires 'archive-date' | String | optional |
archive date | archive-date archivedate | Date when the original URL was archived; do not wikilink | Date | optional |
URL status | url-status | If set to 'live', the title displays as the live link; if set to dead, the title displays as the archive link | String | optional |
mode | mode | Similar to the parameter used by cs1|2 templates, when set to cs2, element separator switches from dot to comma; static text is rendered in lowercase; rendering omits the trailing dot | String | optional |