Пређи на садржај

Шаблон:Rotten Tomatoes TV/док

Iz Vojne Enciklopedije

{{#ifeq:док |док

    | 

{{#ifeq:show |show

|

        }}{{#if: |
         |   {{#ifexist:Шаблон:Rotten Tomatoes TV
                  | [[Категорија:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#default=Википедије}}]]
                  | 
                 }}
        }}
    | 
   }}{{#switch:
 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Шаблон|Шаблон 
   | template 
   | other 
   }}
 }}

| template | шаблон

| šablon =

| other | #default = }}

This template generates an external link to a page for a television show 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" the instructions below refers to: the numerical number (followed by a dash or hyphen); then the TV show's name (as listed on Rotten Tomatoes), in lower case, separated by an underscore.

Note: This template will only work with TV shows on Rotten Tomatoes, if you would like to link to a film use Template:Rotten Tomatoes.

Usage

One parameter:

{{Rotten Tomatoes TV | ID }}
{{Rotten Tomatoes TV | id= ID }}

Two parameters:

{{Rotten Tomatoes TV | ID | TITLE }}
{{Rotten Tomatoes TV | id= ID | title= TITLE }}

Instructions

  1. Go to RottenTomatoes.com and enter the full TV show title in the Search field, then press Search.
    • On the results page, click the TV show you're interested in.
    • If you do not get a result corresponding to your TV show, there may not be a Rotten Tomatoes review for your TV show.
  2. The TV show's review page should have a URL (shown in your browser's Address bar) like this:
    https://www.rottentomatoes.com/tv/<ID>/
    where <ID> is Rotten Tomatoes' ID for this TV show. For instance:
    https://www.rottentomatoes.com/tv/game-of-thrones/s05/
    is the review page for Game of Thrones: Season 5 (2015). NOTE: Most TV show's IDs will simply be their complete title in all-lowercase, without punctuation, and with hyphens replacing spaces and a forwadslash followed by the season number as (sXX) with the XX representing a two-digit season number. For instance:
    https://www.rottentomatoes.com/tv/chef-s-table/s01/
    is the review page for Chef's Table: Season 1.
  3. Add the following text to the "External links" section of your TV show article:
    * {{Rotten Tomatoes TV|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 TV|id=seinfeld/s09|title=Seinfled: Season 9}}
    will result in the following appearing in the "External links" section:
|}}|(језик: енглески){{#if:true
|}}}}

Examples

https://www.rottentomatoes.com/tv/{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|game-of-thrones/s05|game-of-thrones/s05}}|game-of-thrones/s05}}/

One parameter:

  1. {{Rotten Tomatoes TV | game-of-thrones/s05 }}
    safesubst:#if:1| game-of-thrones/s05 }}/ Game of Thrones: Season 5 на сајту Rotten Tomatoes {{#ifeq:|el|(jezik: engleski){{#if:true
|}}|(језик: енглески){{#if:true
|}}}}
  1. {{Rotten Tomatoes TV | id= game-of-thrones/s05 }}
    safesubst:#if:1|game-of-thrones/s05}}/ Game of Thrones: Season 5 на сајту Rotten Tomatoes {{#ifeq:|el|(jezik: engleski){{#if:true
|}}|(језик: енглески){{#if:true
|}}}}

Two parameters:

  1. {{Rotten Tomatoes TV | game-of-thrones/s05 | Game of Thrones: Season 5 }}
    safesubst:#if:1| game-of-thrones/s05 }}/ Game of Thrones: Season 5 на сајту Rotten Tomatoes {{#ifeq:|el|(jezik: engleski){{#if:true
|}}|(језик: енглески){{#if:true
|}}}}
  1. {{Rotten Tomatoes TV | id= game-of-thrones/s05 | title= Game of Thrones: Season 5 }}
    safesubst:#if:1|game-of-thrones/s05}}/ Game of Thrones: Season 5 на сајту Rotten Tomatoes {{#ifeq:|el|(jezik: engleski){{#if:true
|}}|(језик: енглески){{#if:true
|}}}}

Template data

{{#if:|погледајте месечни извештај о грешкама за овај шаблон.|Ово је {{#if:|TemplateData|TemplateData}} документација за овај шаблон, коришћена у Визуелном уређивачу и у другим алаткама; погледајте месечни извештај о грешкама за овај шаблон.}}

TemplateData за Rotten Tomatoes TV

{{#ifeq:док|sandbox||

}} <templatedata> {

       "description": "This template generates an external link to a page for a TV show 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 TV/док, without disambiguation.", "type": "string",

                       "required": false,

"aliases": [ "title" ] } } } </templatedata>

See also