Template:TCMDb title/doc: Difference between revisions
update intro and TemplateData |
Johnrdorazio (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
{{Template redirect|tcmdb title}} |
{{Template redirect|tcmdb title}} |
||
{{High-use}} |
{{High-use}} |
||
{{Uses Wikidata| |
{{Uses Wikidata|P1552}} |
||
{{Lua|Module:EditAtWikidata}} |
{{Lua|Module:EditAtWikidata}} |
||
Line 95: | Line 95: | ||
"label": "ID", |
"label": "ID", |
||
"description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 26660 is the ID in http://www.tcm.com/tcmdb/title/title.jsp?stid=26660 or http://www.tcm.com/tcmdb/title/26660/Screaming-Eagles/. This parameter is optional if Wikidata property P2631 exists, but required if not.", |
"description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 26660 is the ID in http://www.tcm.com/tcmdb/title/title.jsp?stid=26660 or http://www.tcm.com/tcmdb/title/26660/Screaming-Eagles/. This parameter is optional if Wikidata property P2631 exists, but required if not.", |
||
"default": "Wikidata property |
"default": "Wikidata property P1552", |
||
"type": "number", |
"type": "number", |
||
"required": false |
"required": false |
Latest revision as of 07:35, October 17, 2020
This is a documentation subpage for Template:TCMDb title. It contains usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 12,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
Template:TCMDb title displays an external link to a web page for a film title at the TCM Movie Database (TCMDb). It is intended for use in the external links section of an article.
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 | ID }}
{{TCMDb title | ID | TITLE }}
{{TCMDb title | ID | TITLE | DESCRIPTION }}
Named parameters:
{{TCMDb title | id= ID }}
{{TCMDb title | id= ID | title= TITLE }}
{{TCMDb title | id= ID | title= TITLE | description= DESCRIPTION }}
Using Wikidata property P2631:
{{TCMDb title}}
{{TCMDb title | title= TITLE }}
{{TCMDb title | 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."
- TCMDb 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/title.jsp?stid=######
- or
http://www.tcm.com/tcmdb/title/######/Film-Name/
- where "
######
" indicates a number.
- Copy the ID number that appears after
stid=
or/title/
in the URL. - In the article you are editing, type
{{TCMDb title | id= ###### | title= Film Name }}
.
Examples
Unnamed parameters
Usage:
* {{TCMDb title | 26660 | Screaming Eagles }}
* {{TCMDb title | 26660 | Screaming Eagles | (1956 film) }}
Output:
Current URLs:
- http://www.tcm.com/tcmdb/title/title.jsp?stid=26660
- http://www.tcm.com/tcmdb/title/26660/Screaming-Eagles/
Former URLs:
- http://tcmdb.com/title/title.jsp?stid=26660
- http://www.tcm.turner.com/title/title.jsp?stid=26660
- http://www.tcm.turner.com/tcmdb/title/title.jsp?stid=26660
Named parameters
Usage:
* {{TCMDb title | id= 68177 | title= Batman }}
* {{TCMDb title | id= 68177 | title= Batman | description= (1966 film) }}
Output:
- Batman at the TCM Movie Database
- Batman (1966 film) at the TCM Movie Database
Current URLs:
Former URLs:
- http://tcmdb.com/title/title.jsp?stid=68177
- http://www.tcm.turner.com/title/title.jsp?stid=68177
- http://www.tcm.turner.com/tcmdb/title/title.jsp?stid=68177
No ID in template or Wikidata
Usage:
{{TCMDb title}}
Output:
- {{TCMDb title}} template missing ID and not present in Wikidata.
TemplateData
TemplateData for TCMDb title
This template displays an external link to a web page for a film title at the TCM Movie Database (TCMDb). It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 26660 is the ID in http://www.tcm.com/tcmdb/title/title.jsp?stid=26660 or http://www.tcm.com/tcmdb/title/26660/Screaming-Eagles/. This parameter is optional if Wikidata property P2631 exists, but required if not.
| Number | optional |
Title | title 2 | The "title" parameter (or unnamed parameter "2") may be used to specify the film title, which is displayed in italic type in the link text. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(film)".
| String | optional |
Description | description 3 | The "description" parameter (or unnamed parameter "3") may be used to specify a description of the title, which is displayed after the title in the link text. | String | optional |
See also
Other TCMDb templates:
- {{TCMDb name}}
Similar film title templates:
- {{IMDb title}}
- {{AllMovie title}}
- {{AFI film}}
- {{BFI}}
- {{Rotten Tomatoes}}
- {{Metacritic film}}
- {{Mojo title}}