|
|
| Line 1: |
Line 1: |
| {{#if:{{{1|{{{id|<noinclude>1</noinclude>}}}}}} | | <includeonly> |
| |[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:
| | {{#if: {{{1|}}} | |
| {{#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>}}}}}}}}}
| | [https://www.rottentomatoes.com/m/{{{1}}} Rotten Tomatoes] |
| |{{{title|{{{name|{{{2|<noinclude>{{{title}}}</noinclude>}}}}}}}}}
| | }} |
| |{{PAGENAMEBASE}}
| | </includeonly> |
| }}{{#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|}}}}}
| | <noinclude> |
| |{{#if:{{#property:P1258|from={{{qid|}}}}}
| | == Documentation == |
| |[https://www.rottentomatoes.com/{{First word|1={{#property:P1258|from={{{qid|}}}}}|sep=,}} {{#ifeq:
| | This template generates a link to a specific movie or TV show page on Rotten Tomatoes. |
| {{#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}}}}}}}}}
| | === Usage === |
| |{{PAGENAMEBASE}}
| | <syntaxhighlight lang="mediawiki"> |
| }}{{#ifeq:
| | {{Rotten Tomatoes|ID}} |
| {{#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}}
| | </syntaxhighlight> |
| |<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]]}}
| | |
| }}
| | === Parameters === |
| }}{{Main other|{{#if: {{{2|{{{name|{{{title|}}}}}}}}} | [[Category:Rotten Tomatoes template using name parameter]] }}}}<noinclude>
| | * `1` - The unique identifier for the movie or TV show on Rotten Tomatoes (mandatory). |
| {{Documentation}} <!-- Add categories to the /doc subpage. Add interwiki links to Wikidata. -->
| | |
| | === Example === |
| | <syntaxhighlight lang="mediawiki"> |
| | {{Rotten Tomatoes|an_american_werewolf_in_london}} |
| | </syntaxhighlight> |
| | |
| | Produces: |
| | [https://www.rottentomatoes.com/m/an_american_werewolf_in_london Rotten Tomatoes] |
| | |
| | === Notes === |
| | - The `1` parameter must be provided for the link to work. |
| | - The identifier corresponds to the movie's or show's Rotten Tomatoes URL segment. |
| | - For example, the identifier for "An American Werewolf in London" is `an_american_werewolf_in_london`. |
| | |
| </noinclude> | | </noinclude> |
Documentation[edit]
This template generates a link to a specific movie or TV show page on Rotten Tomatoes.
Parameters[edit]
- `1` - The unique identifier for the movie or TV show on Rotten Tomatoes (mandatory).
Example[edit]
{{Rotten Tomatoes|an_american_werewolf_in_london}}
Produces:
Rotten Tomatoes
- The `1` parameter must be provided for the link to work.
- The identifier corresponds to the movie's or show's Rotten Tomatoes URL segment.
- For example, the identifier for "An American Werewolf in London" is `an_american_werewolf_in_london`.