Шаблон:Rotten Tomatoes/док
{{#ifeq:док |док
|
{{#ifeq:show |show
|
| Ово је документациона подстраница за Шаблон:Rotten Tomatoes. Садржи информације о коришћењу, категоријама и другом садржају који није део оригиналне странице. |
}}{{#if: |
| {{#ifexist:Шаблон:Rotten Tomatoes
| [[Категорија:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#default=Википедије}}]]
|
}}
}}
|
}}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Шаблон
| template
| other
}}
}}
| template | шаблон
| šablon =
| {{#if:{{#ifeq:Rotten Tomatoes|Rotten Tomatoes|1|}} |{{#ifeq:вар|вар|Ћирилица и латиница су равноправна писма у српском језику. Ако постављате овај шаблон у изворно латинички текст, користите {{Rotten Tomatoes-lat}}.|Latinica i ćirilica su ravnopravna pisma u srpskom jeziku. Ako postavljate ovaj šablon u izvorno ćirilički tekst, koristite {{[[Šablon:{{PAGENAME{{#ifeq:вар|var||CYRILLICIZED}}}}|{{PAGENAME{{#ifeq:вар|var||CYRILLICIZED}}}}]]}}.}} |{{#if:{{#ifeq:вар|var|1|}} |{{#ifeq:вар|вар|Ћирилица и латиница су равноправна писма у српском језику. Ако постављате овај шаблон у изворно латинички текст, користите {{Rotten Tomatoes-lat}}.|Latinica i ćirilica su ravnopravna pisma u srpskom jeziku. Ako postavljate ovaj šablon u izvorno ćirilički tekst, koristite {{[[Šablon:{{PAGENAME{{#ifeq:вар|var||CYRILLICIZED}}}}|{{PAGENAME{{#ifeq:вар|var||CYRILLICIZED}}}}]]}}.}} |Ћирилица и латиница су равноправна писма у српском језику. Ако постављате овај шаблон у изворно латинички текст, користите {{Rotten Tomatoes-lat}}. }} }} |
| other | #default = }}
This template generates an external link to a page for a film title at the Rotten Tomatoes website.
Note: The Rotten Tomatoes website doesn't have the same type of "ID" that IMDb has. In this case, the "ID" of the instructions below refers to: the numerical number (followed by a dash or hyphen); then the movie's name (as listed on Rotten Tomatoes), in lower case, separated by an underscore.
Note: This template will only work with films on Rotten Tomatoes, if you would like to link to a TV show use Template:Rotten Tomatoes TV.
Usage
One parameter:
{{Rotten Tomatoes | ID }}{{Rotten Tomatoes | id= ID }}
Two parameters:
{{Rotten Tomatoes | ID | TITLE }}{{Rotten Tomatoes | id= ID | title= TITLE }}
Instructions
- Go to RottenTomatoes.com and enter the full movie title in the Search field, then press Search.
- On the results page, click the movie you're interested in.
- If you do not get a result corresponding to your movie, there may not be a Rotten Tomatoes review for your movie.
- The movie's review page should have a URL (shown in your browser's Address bar) like this:
- http://www.rottentomatoes.com/m/<ID>/
- where <ID> is Rotten Tomatoes' ID for this movie. For instance:
- http://www.rottentomatoes.com/m/1021517-time_travelers/
- is the review page for The Time Travelers (1964). NOTE: Most movies' IDs will simply be their complete title in all-lowercase, without punctuation, and with underscores replacing spaces. For instance:
- http://www.rottentomatoes.com/m/2001_a_space_odyssey/
- is the review page for 2001: A Space Odyssey.
- Add the following text to the "External links" section of your movie article:
- * {{Rotten Tomatoes|id=<ID>|title=<TITLE>}}
- replacing <ID> with the ID you found, and <TITLE> with the title as you wish it to appear. (The title will automatically be italicized.) For example:
- * {{Rotten Tomatoes|id=incredibles|title=The Incredibles}}
- will result in the following appearing in the "External links" section:
|}}
Examples
http://www.rottentomatoes.com/m/{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|1021517-time_travelers|1021517-time_travelers}}|1021517-time_travelers}}/
One parameter:
{{Rotten Tomatoes | 1021517-time_travelers }}
|}}
{{Rotten Tomatoes | id= 1021517-time_travelers }}
|}}
Two parameters:
{{Rotten Tomatoes | 1021517-time_travelers | The Time Travelers }}
|}}
{{Rotten Tomatoes | id= 1021517-time_travelers | title= The Time Travelers }}
|}}
Template data
TemplateData за Rotten Tomatoes
{{#ifeq:док|sandbox||
}} <templatedata> {
"description": "This template generates an external link to a page for a film title at the Rotten Tomatoes website.",
"params": { "1": { "label": "ID", "description": "ID string from the URL.", "type": "string", "required": true, "aliases": [ "id" ] }, "2": { "label": "Title", "description": "Title used as the link text (the template automatically displays it in italics). If not specified it defaults to the article's Rotten Tomatoes/док, without disambiguation.", "type": "string", "required": false, "aliases": [ "title" ] } } } </templatedata>
See also
- {{Rotten Tomatoes person}}
- {{Rotten Tomatoes TV}} - a template that works for TV shows on RT