跳转到内容

Template:Letterboxd title/doc

维基百科,自由的百科全书

Template:Letterboxd title用于在条目的外部链接章节显示一个指向Letterboxd英语Letterboxd网站上电影页面的外部链接。

用法

[编辑]

无名参数:

{{Letterboxd title | ID }}
{{Letterboxd title | ID | 片名 }}
{{Letterboxd title | ID | 片名 | 描述 }}

具名参数:

{{Letterboxd title | id= ID }}
{{Letterboxd title | id= ID | title= 片名 }}
{{Letterboxd title | id= ID | title= 片名 | description= 描述 }}

使用维基数据属性P6127

{{Letterboxd title}}
{{Letterboxd title | title= 片名 }}
{{Letterboxd title | title= 片名 | description= 描述 }}

示例

[编辑]

无名参数

[编辑]

URL:

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

用法:

* {{Letterboxd title | the-empire-strikes-back | 星際大戰五部曲:帝國大反擊 }}
* {{Letterboxd title | the-empire-strikes-back | 星際大戰五部曲:帝國大反擊 | (1980年電影) }}

输出:

具名参数

[编辑]

URL:

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

用法:

* {{Letterboxd title | id= the-lion-king | title= 狮子王 }}
* {{Letterboxd title | id= the-lion-king | title= 狮子王 | description= (1994年電影) }}

输出:

模板或维基数据缺少ID

[编辑]
用法
* {{Letterboxd title}}
输出

TemplateData

[编辑]
以下是该模板的模板数据,适用于可视化编辑器等工具。

Letterboxd title模板数据

此模板用于在条目的外部链接章节显示指向Letterboxd网站上某电影页面的外部链接。

模板参数

参数描述类型状态
IDid 1

“id”参数(或无名参数“1”)应填写 URL 中的 ID 部分。例如:在 https://letterboxd.com/film/the-lion-king/ 中,ID 是 the-lion-king。如果维基数据中存在 P6127 属性,那么该参数可选,否则必须填写。

默认值
维基数据属性 P6127
字符串可选
片名title 2

“title”参数(或无名参数“2”)可用于指定电影名字,片名会加书名号显示在链接文本中。此参数可选,默认值为维基百科条目标题,不包括任何消歧义标注(如“(电影)”)。

默认值
{{PAGENAMEBASE}}
字符串可选
描述description 3

“description”参数(或无名参数“3”)可用于指定片名的描述,描述内容会显示在片名之后。此参数可选。

字符串可选

另见

[编辑]