+ {{hprotected}}
|
Add wikidata target parameter, wikidata tracking categories and change the way the prefix is detected
|
||
(23 intermediate revisions by 13 users not shown) | |||
Line 1: | Line 1: | ||
{{#if:{{{1|{{{id|<noinclude>1</noinclude>}}}}}} |
|||
[http://www.rottentomatoes.com/m/{{{id}}}/ ''{{{2|{{{title|{{PAGENAME}}}}}}}}''] at [[Rotten Tomatoes]]<noinclude>{{hprotected}} |
|||
|[https://www.rottentomatoes.com/{{#ifeq:{{#invoke:String|find|source=m/tv/franchise/celebrity/critic/|target={{#invoke:String|match|nomatch=0|pattern=^%a+/|s={{{id|{{{1}}}}}}}}}}|0|m/}}{{Trim|{{{1|{{{id}}}}}}}} {{#ifeq: |
|||
[[Category:External link templates|Rotten Tomatoes]] |
|||
{{#invoke:String|find|source=celebrity/critic/|target={{#invoke:String|match|nomatch=0|pattern=^%a+/|s={{{id|{{{1}}}}}}}}}}|0|''}}{{#if:{{{title|{{{name|{{{2|<noinclude>1</noinclude>}}}}}}}}} |
|||
[[Category:Film templates|Rotten Tomatoes]] |
|||
|{{{title|{{{name|{{{2|<noinclude>{{{title}}}</noinclude>}}}}}}}}} |
|||
[[als:Vorlage:Rotten-tomatoes]] |
|||
|{{PAGENAMEBASE}} |
|||
[[de:Vorlage:Rottentomatoes]] |
|||
}}{{#ifeq:{{#invoke:String|find|source=celebrity/critic/|target={{#invoke:String|match|nomatch=0|pattern=^%a+/|s={{{id|{{{1}}}}}}}}}}|0|''}}] at [[Rotten Tomatoes]]{{WikidataCheck|property=P1258|value={{#ifeq:{{#invoke:String|find|source=m/tv/franchise/celebrity/critic/|target={{#invoke:String|match|nomatch=0|pattern=^%a+/|s={{{id|{{{1}}}}}}}}}}|0|m/}}{{Trim|{{{1|{{{id}}}}}}}}|category=Rotten Tomatoes ID|qid={{{qid|}}}}} |
|||
|{{#if:{{#property:P1258|from={{{qid|}}}}} |
|||
|[https://www.rottentomatoes.com/{{First word|1={{#property:P1258|from={{{qid|}}}}}|sep=,}} {{#ifeq: |
|||
{{#invoke:String|find|source=celebrity/critic/|target={{#invoke:String|match|nomatch=0|pattern=^%a+/|s={{#property:P1258|from={{{qid|}}}}}}}}}|0|''}}{{#if:{{{title|{{{name|{{{2|}}}}}}}}} |
|||
|{{{title|{{{name|{{{2}}}}}}}}} |
|||
|{{PAGENAMEBASE}} |
|||
}}{{#ifeq: |
|||
{{#invoke:String|find|source=celebrity/critic/|target={{#invoke:String|match|nomatch=0|pattern=^%a+/|s={{#property:P1258|from={{{qid|}}}}}}}}}|0|''}}] at [[Rotten Tomatoes]]{{EditAtWikidata|pid=P1258}} |
|||
|<span class="error">{{[[Template:Rotten Tomatoes|Rotten Tomatoes]]}} template missing ID and not present in Wikidata.</span>{{Main other|[[Category:Rotten Tomatoes template missing ID and not in Wikidata]]}} |
|||
}} |
|||
}}{{Main other|{{#if: {{{2|{{{name|{{{title|}}}}}}}}} | [[Category:Rotten Tomatoes template using name parameter]] }}}}<noinclude> |
|||
{{Documentation}} <!-- Add categories to the /doc subpage. Add interwiki links to Wikidata. --> |
|||
</noinclude> |
</noinclude> |
![]() | This template is used on approximately 23,000 pages and changes may be widely noticed. Test changes in the template's /sandboxor/testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
![]() | This template uses Lua:
|
Template:Rotten Tomatoes displays an external link to a page at the Rotten Tomatoes website. It is intended for use in the external links section of an article.
{{Rotten Tomatoes | ID }}
{{Rotten Tomatoes | ID | TITLEorNAME }}
{{Rotten Tomatoes | id= ID }}
{{Rotten Tomatoes | id= ID | title= TITLE }}
{{Rotten Tomatoes | id= ID | name= NAME }}
{{Rotten Tomatoes}}
{{Rotten Tomatoes | title= TITLE }}
{{Rotten Tomatoes | name= NAME }}
m/<ID>
is Rotten Tomatoes' ID for this page.* {{Rotten Tomatoes | 1021517-time_travelers | The Time Travelers }}
* {{Rotten Tomatoes | 1021517-time_travelers/reviews | The Time Travelers }}
* {{Rotten Tomatoes | m/xmen | X-Men }}
* {{Rotten Tomatoes | m/xmen/reviews | X-Men }}
* {{Rotten Tomatoes | tv/legion | Legion }}
* {{Rotten Tomatoes | franchise/x-men | X-Men: Movies and TV Shows }}
* {{Rotten Tomatoes | celebrity/luc_besson | Luc Besson }}
* {{Rotten Tomatoes | critic/richard-brody | Richard Brody }}
In accordance with the external links duplication guideline, it is acceptable to use Rotten Tomatoes as both an inline citation (supporting a Tomatometer score or critic consensus summary) and an external link.
TemplateData for Rotten Tomatoes
This template generates an external link to a page for a film title at the Rotten Tomatoes website.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | 1 id | The ID portion of the URL. Examples: 1021517_time_travelers or m/1021517_time_travelers, m/1021517_time_travelers/reviews, m/x-men, m/x-men/reviews, franchise/x-men, tv/legion, celebrity/luc_besson, critic/richard-brody. This parameter is optional if Wikidata property P1258 exists, but required if not.
| String | optional |
Title or name | 2 title name | Title of movie/film or TV series, or name of person, used as the link text. The template uses italic type for titles (IDs with m/, tv/, franchise/ prefix) and non-italic for people (IDs with celebrity/ or critic/ prefix). This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(film)" or "(director)".
| String | optional |