Difference between revisions of "Template:Letterboxd title"

From blackwiki
Jump to navigation Jump to search
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:
<includeonly>{{#if:{{{id|}}}{{{1|}}}{{#property:P6127}}
+
{{#if: {{{id<includeonly>|</includeonly>}}} {{{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<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">&#123;&#123;[[Template:Letterboxd title|Letterboxd title]]&#125;&#125; template missing ID and not present in Wikidata.</span>
 
| <span class="error">&#123;&#123;[[Template:Letterboxd title|Letterboxd title]]&#125;&#125; template missing ID and not present in Wikidata.</span>
}}</includeonly><noinclude>
+
 
 +
}}<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

{{{title}}} at Letterboxd

Template documentation[view] [edit] [history] [purge]

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.

Usage

Unnamed parameters:

Template:Tlcw
Template:Tlcw
Template:Tlcw

Named parameters:

Template:Tlcw
Template:Tlcw
Template:Tlcw

Using Wikidata property P6127:

Template:Tlcw
Template:Tlcw
Template:Tlcw

Examples

Unnamed parameters

URL:

https://letterboxd.com/film/the-empire-strikes-back/

Usage:

Template:Tlcw
Template:Tlcw

Output:

Named parameters

URL:

https://letterboxd.com/film/the-lion-king/

Usage:

Template:Tlcw
Template:Tlcw

Output:

No ID in template or Wikidata

Usage
Template:Tlcw
Output

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

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.

Template parameters

ParameterDescriptionTypeStatus
IDid 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.

Default
Wikidata property P6127
Stringoptional
Titletitle 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)".

Default
{{PAGENAMEBASE}}
Stringoptional
Descriptiondescription 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.

Stringoptional

See also