Шаблон:IMDb naslov-lat/док
{{#ifeq:док |док
|
{{#ifeq:show |show
|
| Ово је документациона подстраница за Шаблон:IMDb naslov-lat. Садржи информације о коришћењу, категоријама и другом садржају који није део оригиналне странице. |
}}{{#if: |
| {{#ifexist:Шаблон:IMDb naslov-lat
| [[Категорија:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#default=Википедије}}]]
|
}}
}}
|
}}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Шаблон
| template
| other
}}
}}
| template | шаблон
| šablon =
| {{#if:{{#ifeq:IMDb naslov-lat|IMDb naslov-lat|1|}} |{{#ifeq:|вар|Ћирилица и латиница су равноправна писма у српском језику. Ако постављате овај шаблон у изворно латинички текст, користите {{IMDb naslov-lat-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:|вар|Ћирилица и латиница су равноправна писма у српском језику. Ако постављате овај шаблон у изворно латинички текст, користите {{IMDb naslov-lat-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}}}}]]}}.}} |Ћирилица и латиница су равноправна писма у српском језику. Ако постављате овај шаблон у изворно латинички текст, користите {{IMDb naslov-lat-lat}}. }} }} |
| other | #default = }}
{{#switch:
| none =
| =
[[File:{{#switch: data
| commons = Commons-logo.svg
| meta|metawiki|m = Wikimedia Community Logo.svg
| wikibooks|wbk|wb|b = Wikibooks-logo-en-noslogan.svg
| wikidata|data = Wikidata-logo.svg
| wikiquote|quote|wqt|q = Wikiquote-logo.svg
| wikipedia|wp|w = Wikipedia-logo-v2.svg
| wikisource|source|ws|s = Wikisource-logo.svg
| wiktionary|wkt|wdy|d = Wiktionary-logo-sr.png
| wikinews|news|wnw|n = Wikinews-logo.svg
| wikispecies|species = Wikispecies-logo.svg
| wikiversity|wvy|v = Wikiversity-logo.svg
| wikivoyage|voyage|voy = Wikivoyage-Logo-v3-icon.svg
| mediawiki|mw = Mediawiki.png
| outreachwiki|outreach = Wikimedia Outreach.png
| incubator = Incubator-notext.svg
| #default = Wikimedia-logo.svg
}}|40x40px|class=noviewer|alt=|link=
]]
| #default =
}} |
Ovaj {{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Модул
| module
| other
}}
}}
| module = modul | other | #default = šablon }} koristi {{#if: | jedno ili više svojstava Vikipodataka; pogledajte [[#{{{section}}}|§ {{{section}}}]] za detalje. | svojstva Vikipodataka: Lua greška in Modul:Uses_Wikidata-lat at line 10: attempt to index field 'wikibase' (a nil value). }} |
{{#switch:док
|sandbox |testcases |doc= |#default= }}
This template is used to generate an external link to a web page at the Internet Movie Database. It should be used exclusively for TITLES (movies, TV series, games, etc.).
- For a person (actor, actress, etc.), use {{IMDb name-lat}}.
- For a specific TV episode or Web series episode, use {{IMDb episode-lat}}.
- For an episode list, use {{IMDb episodes-lat}}.
- For a company, use {{IMDb company-lat}}.
- For a character, use {{IMDb character-lat}}.
Usage
Unnamed parameters:
{{IMDb naslov-lat | ID }}{{IMDb naslov-lat | ID | TITLE }}{{IMDb naslov-lat | ID | TITLE | DESCRIPTION }}{{IMDb naslov-lat | ID | TITLE | DESCRIPTION | section= SECTION }}
Named parameters:
{{IMDb naslov-lat | id= ID }}{{IMDb naslov-lat | id= ID | title= TITLE }}{{IMDb naslov-lat | id= ID | title= TITLE | description= DESCRIPTION }}{{IMDb naslov-lat | id= ID | title= TITLE | description= DESCRIPTION | section= SECTION }}
Instructions
- Search on IMDb.com for the title you want. On the Wikipedia page of the film concerned this can often be done with the link produced by previewing
{{IMDb naslov-lat}}(this may not work if the page title is more than just the film title). - Click on the correct link to go to the movie's page (or whatever you're looking for). Be sure you're getting on the correct title page.
- The page URL should look like this:
http://www.imdb.com/title/tt{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|######|######}}|######}}/- where
######indicates a number.
- Copy the ID number that appears after
ttin the URL. The leading "tt" is not required, but the template will still work if it is included. The leading zeros in the number are not needed, but are recommended for Linksearch uniformity. - Add the following to the external links section of the article:
{{IMDb naslov-lat | {{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|######|######}}|######}} | Film Name }}- or
{{IMDb naslov-lat | id= {{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|######|######}}|######}} | title= Film Name }} - where
######is the number you've copied, andFilm Nameis the title of the movie or show.
- (Optional) If you want to add an additional description to distinguish this film/show from another that may be on the same page with the same name, use the following text:
{{IMDb naslov-lat | ####### | Title | Description }}- where
#######is the number you've copied,Titleis the title of the movie or show, andDescriptionis the description of the show, in parentheses.
- (Optional) There is also the
sectionparameter which can be set toawardsto link to the Awards section of the site.
Examples
Parameter: id (1)
- Search on IMDb.com for the title Alpha Dog. This can also be done on the Wikipedia page for Alpha Dog by previewing
{{IMDb naslov-lat}}and clicking that link ( http://www.imdb.com/Title?Alpha+Dog/ ). - On the IMDb search results page, click the link for "Alpha Dog (2006)". That IMDb page URL is:
http://www.imdb.com/title/tt{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|0426883|0426883}}|0426883}}/
- Copy
0426883and add it to the template.
Example: {{IMDb naslov-lat | 0426883 }}
- Result: [http://www.imdb.com/{{#if: 0426883 |title/{{#ifeq:04|tt||tt}}{{ safesubst:#if:1| 0426883 }}|{{#if:{{#property:P345}}|title/{{#property:P345}}|Title?IMDb+naslov-lat%2F%D0%B4%D0%BE%D0%BA}}}}/{{#switch:
|award|awards=awards Awards for }} IMDb naslov-lat/док{{#if:| }}] na sajtu IMDb {{#ifeq:|el|(jezik: engleski){{#if:true
|}}|(jezik: engleski){{#if:true
|}}}}{{#if: 0426883 {{#property:P345}}||}}
Example: {{IMDb naslov-lat |id= 0426883 }}
- Result: [http://www.imdb.com/{{#if:0426883%7Ctitle/{{#ifeq:04%7Ctt%7C%7Ctt}}{{ safesubst:#if:1|0426883}}|{{#if:{{#property:P345}}|title/{{#property:P345}}|Title?IMDb+naslov-lat%2F%D0%B4%D0%BE%D0%BA}}}}/{{#switch:
|award|awards=awards Awards for }} IMDb naslov-lat/док{{#if:| }}] na sajtu IMDb {{#ifeq:|el|(jezik: engleski){{#if:true
|}}|(jezik: engleski){{#if:true
|}}}}{{#if:0426883{{#property:P345}}||}}
Typically this is a list item in the external links section (even if there is only one link), so you should add "*" in front.
Parameter: title (2)
Example: {{IMDb naslov-lat | 0426883 | Alpha Dog }}
- Result: [http://www.imdb.com/{{#if: 0426883 |title/{{#ifeq:04|tt||tt}}{{ safesubst:#if:1| 0426883 }}|{{#if:{{#property:P345}}|title/{{#property:P345}}|Title?IMDb+naslov-lat%2F%D0%B4%D0%BE%D0%BA}}}}/{{#switch:
|award|awards=awards Awards for }} Alpha Dog {{#if:| }}] na sajtu IMDb {{#ifeq:|el|(jezik: engleski){{#if:true
|}}|(jezik: engleski){{#if:true
|}}}}{{#if: 0426883 {{#property:P345}}||}}
Example: {{IMDb naslov-lat | id= 0426883 | title= Alpha Dog }}
- Result: [http://www.imdb.com/{{#if:0426883%7Ctitle/{{#ifeq:04%7Ctt%7C%7Ctt}}{{ safesubst:#if:1|0426883}}|{{#if:{{#property:P345}}|title/{{#property:P345}}|Title?IMDb+naslov-lat%2F%D0%B4%D0%BE%D0%BA}}}}/{{#switch:
|award|awards=awards Awards for }} Alpha Dog{{#if:| }}] na sajtu IMDb {{#ifeq:|el|(jezik: engleski){{#if:true
|}}|(jezik: engleski){{#if:true
|}}}}{{#if:0426883{{#property:P345}}||}}
Parameter: description (3)
Example: {{IMDb naslov-lat | 0106117 | Route 66 | (1993 TV series) }}
- Result: [http://www.imdb.com/{{#if: 0106117 |title/{{#ifeq:01|tt||tt}}{{ safesubst:#if:1| 0106117 }}|{{#if:{{#property:P345}}|title/{{#property:P345}}|Title?IMDb+naslov-lat%2F%D0%B4%D0%BE%D0%BA}}}}/{{#switch:
|award|awards=awards Awards for }} Route 66 {{#if: (1993 TV series) | (1993 TV series) }}] na sajtu IMDb {{#ifeq:|el|(jezik: engleski){{#if:true
|}}|(jezik: engleski){{#if:true
|}}}}{{#if: 0106117 {{#property:P345}}||}}
Example: {{IMDb naslov-lat | id= 0106117 | title= Route 66 | description= (1993 TV series) }}
- Result: [http://www.imdb.com/{{#if:0106117%7Ctitle/{{#ifeq:01%7Ctt%7C%7Ctt}}{{ safesubst:#if:1|0106117}}|{{#if:{{#property:P345}}|title/{{#property:P345}}|Title?IMDb+naslov-lat%2F%D0%B4%D0%BE%D0%BA}}}}/{{#switch:
|award|awards=awards Awards for }} Route 66{{#if:(1993 TV series)| (1993 TV series)}}] na sajtu IMDb {{#ifeq:|el|(jezik: engleski){{#if:true
|}}|(jezik: engleski){{#if:true
|}}}}{{#if:0106117{{#property:P345}}||}}
Parameter: section
Example: {{IMDb naslov-lat | 0111282 | Stargate | section= awards }}
- Result: [http://www.imdb.com/{{#if: 0111282 |title/{{#ifeq:01|tt||tt}}{{ safesubst:#if:1| 0111282 }}|{{#if:{{#property:P345}}|title/{{#property:P345}}|Title?IMDb+naslov-lat%2F%D0%B4%D0%BE%D0%BA}}}}/{{#switch:awards
|award|awards=awards Awards for }} Stargate {{#if:| }}] na sajtu IMDb {{#ifeq:|el|(jezik: engleski){{#if:true
|}}|(jezik: engleski){{#if:true
|}}}}{{#if: 0111282 {{#property:P345}}||}}
Example: {{IMDb naslov-lat | id= 0111282 | title= Stargate | description= (1994 film) | section= awards }}
- Result: [http://www.imdb.com/{{#if:0111282%7Ctitle/{{#ifeq:01%7Ctt%7C%7Ctt}}{{ safesubst:#if:1|0111282}}|{{#if:{{#property:P345}}|title/{{#property:P345}}|Title?IMDb+naslov-lat%2F%D0%B4%D0%BE%D0%BA}}}}/{{#switch:awards
|award|awards=awards Awards for }} Stargate{{#if:(1994 film)| (1994 film)}}] na sajtu IMDb {{#ifeq:|el|(jezik: engleski){{#if:true
|}}|(jezik: engleski){{#if:true
|}}}}{{#if:0111282{{#property:P345}}||}}
Template data
TemplateData за IMDb naslov-lat
{{#ifeq:док|sandbox||
}} <templatedata> {
"description": "This is a template to generate links to Internet Movie Database.",
"params": {
"id": {
"label": "Title number",
"description": "Number of the IMDb title, taken from the numbers at the end of its IMDb URL. The Wikidata IMDb identifier (P345) can be used if id is not set.",
"type": "number",
"required": true,
"aliases" : [ "1" ]
},
"title": {
"label": "Title name",
"description": "Name of the production, which may include the year made (in parentheses). Defaults to IMDb naslov-lat/док without any disambiguation such as (film).",
"type": "string",
"required": false,
"aliases" : [ "2" ]
},
"description": {
"label": "Description",
"description": "Description of the production.",
"type": "string",
"required": false,
"aliases" : [ "3" ]
},
"section": {
"label": "Section",
"description": "Can 'award' or 'awards' which makes a link to the awards page. Other values are ignored.",
"type": "string",
"required": false
}
}
} </templatedata>
Wikidata
The Wikidata project provides a central collection of information and parameters for articles for the various Wikimedia projects. This includes the IMDb title codes for films. For example, the film Space Milkshake has a corresponding Wikidata item (Q7572422), which in turn includes an IMDb identifier. If {{IMDb naslov-lat}} is invoked in an article without the "id" parameter, and if Wikidata has an IMDb identifier specified for that article's corresponding item, the IMDb link with its title code will be included automatically.
For new film articles, the IMDb identifier property (and the film title item itself) may need to be added at Wikidata first, so that the default IMDb link can be available for use on Wikipedia and other Wikimedia projects.
This Wikidata capability was implemented on the English Wikipedia as of April 2013.
Note that the title code (first parameter) can still be specified as before and this will override the Wikidata default e.g. where this template is used to link to a film whose title does not correspond to the subject of the article (for example, in the case of a single article about a film and its sequels).
The second parameter for the film title override is still available to handle differences between article titles and film titles (e.g. due to disambiguation wording in the title). The first parameter may be left blank to default from Wikidata - for example {{IMDb naslov-lat||Film title}}.
Linksearch
For a given link target (or first part of that) the pages from where there are links are found by a link such as this:
See also
- Wikipedia:IMDb
- Category:IMDb template with no id set, a hidden tracking category used by this template