Template:IMDb title/testcases
Appearance
![]() | This is the template test cases page for the sandbox of Template:IMDb title. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
No parameters
[edit]If no ID is provided, the template uses Wikidata property IMDb ID (P345):
- https://www.imdb.com/title/{{#property:P345}}/
If the page does not have a Wikidata item containing that property, the template uses the page name:
- https://www.imdb.com/Title?{{urlencode:{{PAGENAME}}}}/
- The template also adds Category:Pages using IMDb title with no id set if the page is located in the main or article namespace.
The link text should be the Wikipedia page name, without disambiguation (via {{PAGENAMEBASE}}).
No parameters
{{IMDb title}}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox}}
→ IMDb title/testcases at IMDb
empty ID (unnamed parameter)
{{IMDb title | }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | }}
→ IMDb title/testcases at IMDb
empty ID (named parameter)
{{IMDb title | id= }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | id= }}
→ IMDb title/testcases at IMDb
empty ID and Title (unnamed parameters)
{{IMDb title | | }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | | }}
→ IMDb title/testcases at IMDb
empty ID and Title (named parameters)
{{IMDb title | id= | title= }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | id= | title= }}
→ IMDb title/testcases at IMDb
Parameter: id (1)
[edit]If the ID does not start with "tt", the template adds "tt" (and leading zeros, if needed):
- 0111282 — https://www.imdb.com/title/tt0111282/ (valid ID: 7 digits)
- 111282 — https://www.imdb.com/title/tt0111282/ (valid ID: 7 digits after template adds leading zero)
- 10020954 — https://www.imdb.com/name/tt10020954/ (valid ID: 8 digits)
- 123456789 — https://www.imdb.com/name/tt123456789/ (invalid ID: more than 8 digits)
ID number with leading zeros (unnamed parameter)
{{IMDb title | 0111282 }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | 0111282 }}
→ IMDb title/testcases at IMDb
ID number with leading zeros (named parameter)
{{IMDb title | id= 0111282 }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | id= 0111282 }}
→ IMDb title/testcases at IMDb
ID number without leading zeros (unnamed parameter)
{{IMDb title | 111282 }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | 111282 }}
→ IMDb title/testcases at IMDb
ID number without leading zeros (named parameter)
{{IMDb title | id= 111282 }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | id= 111282 }}
→ IMDb title/testcases at IMDb
ID number with 8 digits (unnamed parameter)
{{IMDb title | 10020954 }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | 10020954 }}
→ IMDb title/testcases at IMDb
ID number with 8 digits (named parameter)
{{IMDb title | id= 10020954 }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | id= 10020954 }}
→ IMDb title/testcases at IMDb
ID number with 9 digits (unnamed parameter)
{{IMDb title | 123456789 }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | 123456789 }}
→ IMDb title/testcases at IMDb
ID number with 9 digits (named parameter)
{{IMDb title | id= 123456789 }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | id= 123456789 }}
→ IMDb title/testcases at IMDb
If the ID starts with "tt", the template does not make any changes:
- tt0111282 — https://www.imdb.com/title/tt0111282/ (valid ID: tt + 7 digits)
- tt111282 — https://www.imdb.com/title/tt111282/ (invalid ID: less than 7 digits)
- tt10020954 — https://www.imdb.com/name/tt10020954/ (valid ID: tt + 8 digits)
- tt123456789 — https://www.imdb.com/name/tt123456789/ (invalid ID: more than 8 digits)
- An article using
{{IMDb title|tt111282}}
or{{IMDb title|tt123456789}}
would be added to Category:Pages using IMDb title with no id set and a warning message is displayed in preview mode.
ID with "tt" and leading zeros (unnamed parameter)
{{IMDb title | tt0111282 }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | tt0111282 }}
→ IMDb title/testcases at IMDb
ID with "tt" and leading zeros (named parameter)
{{IMDb title | id= tt0111282 }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | id= tt0111282 }}
→ IMDb title/testcases at IMDb
ID with "tt" without leading zeros (unnamed parameter)
{{IMDb title | tt111282 }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | tt111282 }}
→ IMDb title/testcases at IMDb
ID with "tt" without leading zeros (named parameter)
{{IMDb title | id= tt111282 }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | id= tt111282 }}
→ IMDb title/testcases at IMDb
ID with "tt" with 8 digits (unnamed parameter)
{{IMDb title | tt10020954 }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | tt10020954 }}
→ IMDb title/testcases at IMDb
ID with "tt" with 8 digits (named parameter)
{{IMDb title | id= tt10020954 }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | id= tt10020954 }}
→ IMDb title/testcases at IMDb
ID with "tt" with 9 digits (unnamed parameter)
{{IMDb title | tt123456789 }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | tt123456789 }}
→ IMDb title/testcases at IMDb
ID with "tt" with 9 digits (named parameter)
{{IMDb title | id= tt123456789 }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | id= tt123456789 }}
→ IMDb title/testcases at IMDb
The link text should be the Wikipedia page name, without disambiguation (via {{PAGENAMEBASE}}).
ID and empty Title (unnamed parameters)
{{IMDb title | 0111282 | }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | 0111282 | }}
→ IMDb title/testcases at IMDb
ID and empty Title (named parameters)
{{IMDb title | id= 0111282 | title= }}
→ IMDb title/testcases at IMDb{{IMDb title/sandbox | id= 0111282 | title= }}
→ IMDb title/testcases at IMDb
Parameter: title (2)
[edit]By default, the title is displayed in italic type:
- see § Parameter: description (3) for non-italic text placed after the title
- see § Parameter: quotes for the title in quotation marks, instead of italics
ID and Title (unnamed parameters)
ID and Title (named parameters)
Title only, no ID (named parameters)
Title only, empty ID (unnamed parameters)
Title only, empty ID (named parameters)
Title with internal italics, empty ID (named parameters) – invalid usage; use
|description=
instead{{IMDb title | id= | title= Stargate ''(UK)''}}
→ Stargate (UK)' at IMDb{{IMDb title/sandbox | id= | title= Stargate ''(UK)''}}
→ Stargate (UK)' at IMDb
Parameter: description (3)
[edit]Any text in |description=
is added after the title, inside the link text.
ID, Title, Description (unnamed parameters)
{{IMDb title | 0111282 | Stargate | (1994 film) }}
→ Stargate (1994 film) at IMDb{{IMDb title/sandbox | 0111282 | Stargate | (1994 film) }}
→ Stargate (1994 film) at IMDb
ID, Title, Description (named parameters)
{{IMDb title | id= 0111282 | title= Stargate | description= (1994 film) }}
→ Stargate (1994 film) at IMDb{{IMDb title/sandbox | id= 0111282 | title= Stargate | description= (1994 film) }}
→ Stargate (1994 film) at IMDb
ID and Title, empty Description (unnamed parameters)
ID and Title, empty Description (named parameters)
ID and Description, no Title (named parameters)
{{IMDb title | id= 0111282 | description= (1994 film) }}
→ IMDb title/testcases (1994 film) at IMDb{{IMDb title/sandbox | id= 0111282 | description= (1994 film) }}
→ IMDb title/testcases (1994 film) at IMDb
ID and Description, empty Title (unnamed parameters)
{{IMDb title | 0111282 | | (1994 film) }}
→ IMDb title/testcases (1994 film) at IMDb{{IMDb title/sandbox | 0111282 | | (1994 film) }}
→ IMDb title/testcases (1994 film) at IMDb
ID and Description, empty Title (named parameters)
{{IMDb title | id= 0111282 | title= | description= (1994 film) }}
→ IMDb title/testcases (1994 film) at IMDb{{IMDb title/sandbox | id= 0111282 | title= | description= (1994 film) }}
→ IMDb title/testcases (1994 film) at IMDb
Parameter: quotes
[edit]Any value assigned to |quotes=
will place the title in quotes, instead of italics.
quotes (unnamed ID parameter, no Title parameters)
{{IMDb title | 0111282 | quotes= yes }}
→ "IMDb title/testcases" at IMDb{{IMDb title/sandbox | 0111282 | quotes= yes }}
→ "IMDb title/testcases" at IMDb
quotes (named ID parameter, no Title parameters)
{{IMDb title | id= 0111282 | quotes= no }}
→ "IMDb title/testcases" at IMDb{{IMDb title/sandbox | id= 0111282 | quotes= no }}
→ "IMDb title/testcases" at IMDb
quotes (unnamed ID and Title parameters)
{{IMDb title | 0111282 | Stargate | quotes= 1 }}
→ "Stargate" at IMDb{{IMDb title/sandbox | 0111282 | Stargate | quotes= 1 }}
→ "Stargate" at IMDb
quotes (named ID and Title parameters)
{{IMDb title | id= 0111282 | title= Stargate | quotes= 0 }}
→ "Stargate" at IMDb{{IMDb title/sandbox | id= 0111282 | title= Stargate | quotes= 0 }}
→ "Stargate" at IMDb
Parameter: qid
[edit]Using Wikidata property IMDb ID (P345) from WandaVision (Q65980217)
{{IMDb title|qid=Q65980217|title=WandaVision}}
→ WandaVision at IMDb{{IMDb title/sandbox|qid=Q65980217|title=WandaVision}}
→ WandaVision at IMDb
Automatic section
[edit]List of awards page (Q618779) - List of accolades received by WandaVision
{{IMDb title |qid_testcases=Q108381107|qid=Q65980217|title=WandaVision}}
→ Awards for WandaVision at IMDb{{IMDb title/sandbox |qid_testcases=Q108381107|qid=Q65980217|title=WandaVision}}
→ Awards for WandaVision at IMDb
List of actors (Q33999) - List of Marvel Cinematic Universe film actors (The Infinity Saga)
{{IMDb title |qid_testcases=Q105038067|qid=Q192724|title=Iron Man}}
→ Full cast and crew of Iron Man at IMDb{{IMDb title/sandbox |qid_testcases=Q105038067|qid=Q192724|title=Iron Man}}
→ Full cast and crew of Iron Man at IMDb
List of characters page (Q63032896) - List of Daredevil (TV series) characters
{{IMDb title |qid_testcases=Q20646147|qid=Q16977365|title=Daredevil}}
→ Full cast and crew of Daredevil at IMDb{{IMDb title/sandbox |qid_testcases=Q20646147|qid=Q16977365|title=Daredevil}}
→ Full cast and crew of Daredevil at IMDb
List of characters by occupation (Q66763446) - Politicians of The Wire
{{IMDb title |qid_testcases=Q7225147|qid=Q478360|title=The Wire}}
→ Full cast and crew of The Wire at IMDb{{IMDb title/sandbox |qid_testcases=Q7225147|qid=Q478360|title=The Wire}}
→ Full cast and crew of The Wire at IMDb
Multiple soundtrack releases (Q107974527) - Deadpool 2 (soundtrack)
{{IMDb title |qid_testcases=Q107970175|qid=Q25431158|title=Deadpool 2}}
→ Soundtrack of Deadpool 2 at IMDb{{IMDb title/sandbox |qid_testcases=Q107970175|qid=Q25431158|title=Deadpool 2}}
→ Soundtrack of Deadpool 2 at IMDb
Album page (Q482994) - Hot Fuzz (soundtrack)
{{IMDb title |qid_testcases=Q16844866|qid=Q729788|title=Hot Fuzz}}
→ Soundtrack of Hot Fuzz at IMDb{{IMDb title/sandbox |qid_testcases=Q16844866|qid=Q729788|title=Hot Fuzz}}
→ Soundtrack of Hot Fuzz at IMDb
All parameters
[edit]All parameters (unnamed parameters for ID, Title, Description)
{{IMDb title|0111282|Stargate|(1994 film)|quotes=y}}
→ "Stargate" (1994 film) at IMDb{{IMDb title/sandbox|0111282|Stargate|(1994 film)|quotes=y}}
→ "Stargate" (1994 film) at IMDb
All parameters (named parameters for ID, Title, Description)
{{IMDb title|id=0111282|title=Stargate|description=(1994 film)|quotes=y}}
→ "Stargate" (1994 film) at IMDb{{IMDb title/sandbox|id=0111282|title=Stargate|description=(1994 film)|quotes=y}}
→ "Stargate" (1994 film) at IMDb
Spaces in parameter values
[edit]Spaces in parameter values
{{IMDb title|title= Stargate |description= (1994 film) }}
→ Stargate (1994 film) at IMDb{{IMDb title/sandbox|title= Stargate |description= (1994 film) }}
→ Stargate (1994 film) at IMDb