Difference between revisions of "Template:Letterboxd title"
imported>Trivialist (fixing link) |
imported>Trivialist (adding a /) |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{id|}}}{{{1|}}}{{#property:P6127}} | <includeonly>{{#if:{{{id|}}}{{{1|}}}{{#property:P6127}} | ||
| − | | [https://letterboxd.com/film/{{#if:{{{id|}}}{{{1|}}}|{{{id|{{{1}}}}}}|{{First word|{{#property:P6127}}|sep=,}}}} ''{{#if:{{{title|}}}{{{2|}}}|{{trim|{{{title|{{{2}}}}}}}}|{{PAGENAMEBASE}}}}''{{#if:{{{description|{{{3|}}}}}}|{{sp}}{{{description|{{{3|}}}}}}}}] at [[Letterboxd]]{{EditAtWikidata|pid=P6127|{{{id|{{{1|}}}}}}}} | + | | [https://letterboxd.com/film/{{#if:{{{id|}}}{{{1|}}}|{{{id|{{{1}}}}}}|{{First word|{{#property:P6127}}|sep=,}}}}/ ''{{#if:{{{title|}}}{{{2|}}}|{{trim|{{{title|{{{2}}}}}}}}|{{PAGENAMEBASE}}}}''{{#if:{{{description|{{{3|}}}}}}|{{sp}}{{{description|{{{3|}}}}}}}}] at [[Letterboxd]]{{EditAtWikidata|pid=P6127|{{{id|{{{1|}}}}}}}} |
| <span class="error">{{[[Template:Letterboxd title|Letterboxd title]]}} template missing ID and not present in Wikidata.</span> | | <span class="error">{{[[Template:Letterboxd title|Letterboxd title]]}} template missing ID and not present in Wikidata.</span> | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
Revision as of 02:29, 6 October 2019
Template:Template redirect Template:Uses Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).
Template:Letterboxd title displays an external link to a web page for a film title at the Letterboxd website. It is intended for use in the external links section of an article.
Contents
Usage
Unnamed parameters:
Named parameters:
Using Wikidata property P6127:
Examples
Unnamed parameters
URL:
Usage:
Output:
- The Empire Strikes Back at LetterboxdScript error: No such module "EditAtWikidata".
- The Empire Strikes BackTemplate:Sp (1980 film) at LetterboxdScript error: No such module "EditAtWikidata".
Named parameters
URL:
Usage:
Output:
- The Lion King at LetterboxdScript error: No such module "EditAtWikidata".
- The Lion KingTemplate:Sp(1994 film) at LetterboxdScript error: No such module "EditAtWikidata".
No ID in template or Wikidata
- Usage
- Template:Tlcw
- Output
-
- Template:PAGENAMEBASE at LetterboxdScript error: No such module "EditAtWikidata".
TemplateData
TemplateData for Letterboxd title
This template displays an external link to a web page for a film title at the Letterboxd website. 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: the-lion-king is the ID in https://letterboxd.com/film/the-lion-king/. This parameter is optional if Wikidata property P6127 exists, but required if not.
| String | 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. This parameter is optional. | String | optional |
See also
- {{AllMovie title}}
- {{IMDb title}}
- {{Mojo title}}
- {{TCMDb title}}
| The above documentation is transcluded from Template:Letterboxd title/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |