跳至內容

模板: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」)可用於指定片名的描述,描述內容會顯示在片名之後。此參數可選。

字串非必填

另見

[編輯]