Difference between revisions of "Template:Letterboxd title"
imported>Trivialist (adding a /) |
imported>Zyxw (display template on template page, remove unneeded ((Trim}} template since #if already removes leading and trailing spaces) |
||
| Line 1: | Line 1: | ||
| − | + | {{#if: {{{id<includeonly>|</includeonly>}}} {{{1|}}} {{#property:P6127}} | |
| − | | [https://letterboxd.com/film/{{#if:{{{id| | + | |
| + | | [https://letterboxd.com/film/{{#if: {{{id<includeonly>|{{{1|}}}</includeonly>}}} | {{{id<includeonly>|{{{1}}}</includeonly>}}} | {{First word|{{#property:P6127}}|sep=,}} }}/ ''{{#if: {{{title<includeonly>|{{{2|}}}</includeonly>}}} | {{{title<includeonly>|{{{2}}}</includeonly>}}} | {{PAGENAMEBASE}} }}''{{#if: {{{description|{{{3|}}}}}} | {{sp}}{{{description|{{{3|}}}}}} }}] at [[Letterboxd]]<includeonly>{{EditAtWikidata|pid=P6127|{{{id|{{{1|}}}}}}}}</includeonly> | ||
| + | |||
| <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> | ||
| − | }} | + | |
| + | }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES TO THE /doc SUBPAGE, THANKS --> | <!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES TO THE /doc SUBPAGE, THANKS --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 23:27, 9 August 2020
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. |