Шаблон:Tcmdb title-lat/док
Изглед
{{#ifeq:док |док
|
{{#ifeq:show |show
|
| Ово је документациона подстраница за Шаблон:Tcmdb title-lat. Садржи информације о коришћењу, категоријама и другом садржају који није део оригиналне странице. |
}}{{#if: |
| {{#ifexist:Шаблон:Tcmdb title-lat
| [[Категорија:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#default=Википедије}}]]
|
}}
}}
|
}}
This template is used to generate an external link to a web page at the TCM Movie Database. It is based on the templates {{IMDb title}} and {{AllMovie title}}. Turner Classic Movies (TCM) maintains its own comprehensive database of motion picture titles that are not limited to the film libraries that TCM owns, and includes links by which a user can suggest to TCM that they schedule any given title for viewing.
This template is designed for links to film titles; to a link to a person use {{Tcmdb name}} instead.
Usage
Unnamed parameters:
{{Tcmdb title-lat | ID }}{{Tcmdb title-lat | ID | TITLE }}{{Tcmdb title-lat | ID | TITLE | DESCRIPTION }}
Named parameters:
{{Tcmdb title-lat | id= ID }}{{Tcmdb title-lat | id= ID | title= TITLE }}{{Tcmdb title-lat | id= ID | title= TITLE | description= DESCRIPTION }}
Instructions
- Visit the TCM Movie Database.
- In the keyword search field, type in the title you want to link to, and click "Search."
- TCM will show a disambiguation page showing all titles that match your search words. Click on the title you want (make sure you have the correct year of release!).
- The page URL should look like this:
http://www.tcm.com/tcmdb/title/{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|######|######}}|######}}/Film-Name/- or
http://tcmdb.com/title/title.jsp?stid={{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|######|######}}|######}} - where "
######" indicates a number.
- Copy the ID number that appears after
/title/orstid=in the URL listing. - In the article you are editing, type
{{Tcmdb title | id= {{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|######|######}}|######}} | title= Film Name }}.
Example
- For Screaming Eagles, the TCM Movie Database page URL is:
http://www.tcm.com/tcmdb/title/{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|26660|26660}}|26660}}/Screaming-Eagles/- or
http://tcmdb.com/title/title.jsp?stid={{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|26660|26660}}|26660}}
- Copy
26660and add it to this template, i.e.:{{Tcmdb title | id= 26660 | title= Screaming Eagles }}- or
{{Tcmdb title | 26660 | Screaming Eagles }}
- This will display as:
- safesubst:#if:1| 26660 }} Screaming Eagles на сајту TCMDb {{#ifeq:|el|(jezik: engleski){{#if:true
|}}|(језик: енглески){{#if:true
|}}}}{{#ifeq:0|0||}}
- Use
|{{SAFESUBST:#if:description|description=}}(or an unnamed third parameter) to display text after the film title:{{Tcmdb title | id= 26660 | title= Screaming Eagles | description= (1956 film) }}- or
{{Tcmdb title | 26660 | Screaming Eagles | (1956 film) }} - produces safesubst:#if:1| 26660 }} Screaming Eagles (1956 film) на сајту TCMDb {{#ifeq:|el|(jezik: engleski){{#if:true
|}}|(језик: енглески){{#if:true
|}}}}{{#ifeq:0|0||}}
Template data
{{#if:|погледајте месечни извештај о грешкама за овај шаблон.|Ово је {{#if:|TemplateData|TemplateData}} документација за овај шаблон, коришћена у Визуелном уређивачу и у другим алаткама; погледајте месечни извештај о грешкама за овај шаблон.}}
TemplateData за Tcmdb title-lat
{{#ifeq:док|sandbox||
}} <templatedata> {
"description": "This template is used to generate an external link to a web page at the TCM (Turner Classic Movies) Movie Database.",
"params": {
"id": {
"label": "ID",
"description": "ID number used in the URL of the title's page at the TCM Movie Database.",
"type": "number",
"required": true,
"aliases" : [ "1" ]
},
"title": {
"label": "Title",
"description": "Name of the title. If not specified it defaults to article's Tcmdb title-lat/док, without any disambiguation such as (film).",
"type": "string",
"required": false,
"aliases" : [ "2" ]
},
"description": {
"label": "Description",
"description": "Description of the title.",
"type": "string",
"required": false,
"aliases" : [ "3" ]
}
}
} </templatedata>