Template:Mojo title/sandbox
Mojo title/sandbox at Box Office Mojo
![]() | This is the template sandbox page for Template:Mojo title (diff). See also the companion subpage for test cases. |
![]() | This template is used on approximately 7,800 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
![](http://upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Wikidata-logo.svg/40px-Wikidata-logo.svg.png)
![]() | This template uses Lua: |
Template:Mojo title 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. For citing sources, see {{cite Box Office Mojo}}.
Usage
[edit]The template has two potential parameters, which are optional. The first is the ID, which is the text unique in the URL of the Box Office Mojo page for a film. The second can be used to specify the anchor text.
ID parameter:
{{Mojo title | ID }}
{{Mojo title | id= ID }}
ID and Title parameters:
{{Mojo title | ID | TITLE }}
{{Mojo title | id= ID | title= TITLE }}
Using Wikidata property P1237 or P345:
{{Mojo title}}
{{Mojo title | title= TITLE }}
Examples
[edit]Numeric ID in template
[edit]Since October 2019, Box Office Mojo shares IDs with IMDb. If the template's first unnamed parameter or |id=
contains a number with seven or more digits, the template links to the title page on Mojo. This ID may also be found in IMDb ID (P345) on the article's Wikidata page.
- Unnamed parameters
- Usage:
* {{Mojo title | 0190332 | Crouching Tiger, Hidden Dragon }}
- Output:
- URL:
- https://www.boxofficemojo.com/title/tt0190332/
- Named parameters
- Usage:
* {{Mojo title | id= 0499549 | title= Avatar }}
- Output:
- URL:
- https://www.boxofficemojo.com/title/tt0499549/
Non-numeric ID in template
[edit]If the template's first unnamed parameter or |id=
does not contain a number with seven or more digits, the template links to the movie page on Mojo. This is the ID used before the 2019 redesign and uses the former URL format, which now redirects to a different page. This ID may also be found in Box Office Mojo film ID (former scheme) (P1237) on the article's Wikidata page.
- Unnamed parameters
- Usage:
* {{Mojo title | crouchingtigerhiddendragon | Crouching Tiger, Hidden Dragon }}
- Output:
- URL:
- https://www.boxofficemojo.com/movies/?id=crouchingtigerhiddendragon.htm
- Website redirects to:
- Named parameters
- Usage:
* {{Mojo title | id= avatar | title= Avatar }}
- Output:
- URL:
- https://www.boxofficemojo.com/movies/?id=avatar.htm
- Website redirects to:
No ID in template or Wikidata
[edit]- Usage:
* {{Mojo title}}
- Output:
- {{Mojo title}} template missing ID and not present in Wikidata.
See also
[edit]Similar film title templates:
- {{IMDb title}}
- {{AllMovie title}}
- {{TCMDb title}}
- {{AFI film}}
- {{Rotten Tomatoes}}
- {{Metacritic film}}