Bản mẫu:Mojo tựa

Bách khoa toàn thư mở Wikipedia
Buớc tưới chuyển hướng Bước tới tìm kiếm

Mojo tựa tại Box Office Mojo

Hình tượng tài liệu Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm tươi]

Bản mẫu:Mojo tựa displays an external link to a page for a given film at Box Office Mojo. It is intended for use in the external links section of an article.

Usage[sửa mã nguồn]

The template has three potential parameters, two of which are optional. The required parameter is the ID, which is the unique text specific to the Box Office Mojo website that identifies the absolute uniform resource identifier for a film. Optional parameters include TITLE, which can be used to specify the anchor text, and INTL, which is used to specify that the film has a primary geographic market other than the United States (see examples below).

American films[sửa mã nguồn]

ID parameter:

{{Mojo tựa | ID }}
{{Mojo tựa | id= ID }}

ID and Title parameters:

{{Mojo tựa | ID | TITLE }}
{{Mojo tựa | id= ID | title= TITLE }}

Using Wikidata property P1237:

{{Mojo tựa}}
{{Mojo tựa | title= TITLE }}

International films[sửa mã nguồn]

ID parameter:

{{Mojo tựa | ID | intl= yes }}
{{Mojo tựa | id= ID | intl= yes }}

ID and Title parameters:

{{Mojo tựa | ID | TITLE | intl= yes }}
{{Mojo tựa | id= ID | title= TITLE | intl= yes }}

Examples[sửa mã nguồn]

American films[sửa mã nguồn]

Unnamed parameters
URL:
https://www.boxofficemojo.com/movies/?id=crouchingtigerhiddendragon.htm
Usage:
* {{Mojo tựa | crouchingtigerhiddendragon | Crouching Tiger, Hidden Dragon }}
Output:
Named parameters
URL:
https://www.boxofficemojo.com/movies/?id=avatar.htm
Usage:
* {{Mojo tựa | id= avatar | title= Avatar }}
Output:
No ID in template or Wikidata
Usage:
* {{Mojo tựa}}
Output:

International films[sửa mã nguồn]

Note the somewhat different formatting of the ID field compared to American films. The URL includes intl/ and does not not end with .htm.

Unnamed ID and Title parameters
URL:
https://www.boxofficemojo.com/movies/intl/?id=_fKAMISAMANOKARUTE01
Usage:
* {{Mojo tựa | _fKAMISAMANOKARUTE01 | Kamisama no Karute | intl= yes }}
Output:
Named ID and Title parameters
URL:
http://www.boxofficemojo.com/movies/intl/?id=_fLISTYDOM01
Usage:
* {{Mojo tựa | id= _fLISTYDOM01 | title= Listy do M. | intl= yes }}
Output:

Xem thêm[sửa mã nguồn]

Similar film title templates: