Difference between revisions of "Template:IMDb name/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Anthony Appleyard
m (moved Template:IMDB name/testcases to Template:IMDb name/testcases: Requested at Wikipedia:Requested moves as uncontroversial (http://en.wikipedia.org/w/index.php?title=Wikipedia:Requested_moves&oldid=386440094#movereq-Template:IMDB_name)...)
imported>Zyxw
(update testcases for current version of template)
Line 1: Line 1:
{{Template test cases notice}}
+
{{template test cases notice}}
=={{SUBJECTSPACE}}:{{BASEPAGENAME}}==
 
"{{((}} {{BASEPAGENAME}} {{))}}":
 
:"{{ {{BASEPAGENAME}} }}"
 
  
"{{((}} {{BASEPAGENAME}} {{!}}0001109 {{))}}":
+
== No parameters ==
:"{{ {{BASEPAGENAME}} |0001109 }}"
 
  
"{{((}} {{BASEPAGENAME}} {{!}}0001109{{!}}Jaye Davidson {{))}}":
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{))}}</code>
:"{{ {{BASEPAGENAME}} |0001109|Jaye Davidson }}"
+
* Output: {{ {{BASEPAGENAME}} }}
 +
* Sandbox: {{ {{BASEPAGENAME}}/sandbox }}
  
"{{((}} {{BASEPAGENAME}} {{!}}0001109{{!}}Jaye Davidson{{!}}with fashion! {{))}}":
+
== Parameter: id (1) ==
:"{{ {{BASEPAGENAME}} |0001109|Jaye Davidson|with fashion! }}"
 
  
"{{((}} {{BASEPAGENAME}} {{!}} id=0001109 {{))}}":
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= 0001109 {{))}}</code>
:"{{ {{BASEPAGENAME}} | id=0001109 }}"
+
* Output: {{ {{BASEPAGENAME}} | id= 0001109 }}
 +
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | id= 0001109 }}  
  
"{{((}} {{BASEPAGENAME}} {{!}} id=0001109 {{!}} name=Jaye Davidson {{))}}":
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= nm0001109 {{))}}</code>
:"{{ {{BASEPAGENAME}} | id=0001109 | name=Jaye Davidson }}"
+
* Output: {{ {{BASEPAGENAME}} | id= nm0001109 }}
 +
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | id= nm0001109 }}  
  
"{{((}} {{BASEPAGENAME}} {{!}} id=0001109 {{!}} name=Jaye Davidson {{!}} description=with fashion! {{))}}":
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} 0001109 {{))}}</code>
:"{{ {{BASEPAGENAME}} | id=0001109 | name=Jaye Davidson | description=with fashion! }}"
+
* Output: {{ {{BASEPAGENAME}} | 0001109 }}
 +
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | 0001109 }}  
  
===Recommended date forms===
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} nm0001109 {{))}}</code>
"{{((}} {{BASEPAGENAME}} {{!}} id=0001109 {{!}} name=Jaye Davidson {{!}} description=with fashion! {{!}} accessdate={{#time:Y-m-d}} }}":
+
* Output: {{ {{BASEPAGENAME}} | nm0001109 }}
:"{{ {{BASEPAGENAME}} | id=0001109 | name=Jaye Davidson | description=with fashion! | accessdate={{#time:Y-m-d}} }}"
+
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | nm0001109 }}  
  
===Detail pages===
+
== Parameter: name (2) ==
====Select by position====
 
"{{((}} {{BASEPAGENAME}} {{!}}0001109{{!}}Jaye Davidson{{!}}with fashion!{{!}}award{{!}} accessdate={{#time:Y-m-d}} }}":
 
:"{{ {{BASEPAGENAME}} |0001109|Jaye Davidson|with fashion!|award| accessdate={{#time:Y-m-d}} }}"
 
  
"{{((}} {{BASEPAGENAME}} {{!}}0001109{{!}}Jaye Davidson{{!}}with fashion!{{!}}awards{{!}} accessdate={{#time:Y-m-d}} }}":
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= 0001109 {{!}} name= Jaye Davidson {{))}}</code>
:"{{ {{BASEPAGENAME}} |0001109|Jaye Davidson|with fashion!|awards| accessdate={{#time:Y-m-d}} }}"
+
* Output: {{ {{BASEPAGENAME}} | id= 0001109 | name= Jaye Davidson }}
 +
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | id= 0001109 | name= Jaye Davidson }}  
  
"{{((}} {{BASEPAGENAME}} {{!}}0001109{{!}}Jaye Davidson{{!}}with fashion!{{!}}bio{{!}} accessdate={{#time:Y-m-d}} }}":
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} 0001109 {{!}} Jaye Davidson {{))}}</code>
:"{{ {{BASEPAGENAME}} |0001109|Jaye Davidson|with fashion!|bio| accessdate={{#time:Y-m-d}} }}"
+
* Output: {{ {{BASEPAGENAME}} | 0001109 | Jaye Davidson }}
 +
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | 0001109 | Jaye Davidson }}  
  
"{{((}} {{BASEPAGENAME}} {{!}}0001109{{!}}Jaye Davidson{{!}}with fashion!{{!}}biography{{!}} accessdate={{#time:Y-m-d}} }}":
+
== Parameter: section ==
:"{{ {{BASEPAGENAME}} |0001109|Jaye Davidson|with fashion!|biography| accessdate={{#time:Y-m-d}} }}"
 
  
"{{((}} {{BASEPAGENAME}} {{!}}0001109{{!}}Jaye Davidson{{!}}with fashion!{{!}}filmokey{{!}} accessdate={{#time:Y-m-d}} }}":
+
=== award ===
:"{{ {{BASEPAGENAME}} |0001109|Jaye Davidson|with fashion!|filmokey| accessdate={{#time:Y-m-d}} }}"
 
  
"{{((}} {{BASEPAGENAME}} {{!}}0001109{{!}}Jaye Davidson{{!}}with fashion!{{!}}keywords{{!}} accessdate={{#time:Y-m-d}} }}":
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= 0001109 {{!}} name= Jaye Davidson {{!}} section= award }}</code>
:"{{ {{BASEPAGENAME}} |0001109|Jaye Davidson|with fashion!|keywords| accessdate={{#time:Y-m-d}} }}"
+
* Output: {{ {{BASEPAGENAME}} | id= 0001109 | name= Jaye Davidson | section= award }}
 +
* Output: {{ {{BASEPAGENAME}}/sandbox | id= 0001109 | name= Jaye Davidson | section= award }}
  
"{{((}} {{BASEPAGENAME}} {{!}}0001109{{!}}Jaye Davidson{{!}}with fashion!{{!}}publicity{{!}} accessdate={{#time:Y-m-d}} }}":
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} 0001109 {{!}} Jaye Davidson {{!}} section= award }}</code>
:"{{ {{BASEPAGENAME}} |0001109|Jaye Davidson|with fashion!|publicity|| accessdate={{#time:Y-m-d}} }}"
+
* Output: {{ {{BASEPAGENAME}} | 0001109 | Jaye Davidson | section= award }}
 +
* Output: {{ {{BASEPAGENAME}}/sandbox | 0001109 | name= Jaye Davidson | section= award }}
  
====Select by parameter====
+
=== awards ===
"{{((}} {{BASEPAGENAME}} {{!}} id=0001109 {{!}} name=Jaye Davidson {{!}} description=with fashion! {{!}} accessdate={{#time:Y-m-d}} {{!}} select=award }}":
 
:"{{ {{BASEPAGENAME}} | id=0001109 | name=Jaye Davidson | description=with fashion! | accessdate={{#time:Y-m-d}} | select=award }}"
 
  
"{{((}} {{BASEPAGENAME}} {{!}} id=0001109 {{!}} name=Jaye Davidson {{!}} description=with fashion! {{!}} accessdate={{#time:Y-m-d}} {{!}} select=awards }}":
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= 0001109 {{!}} name= Jaye Davidson {{!}} section= awards }}</code>
:"{{ {{BASEPAGENAME}} | id=0001109 | name=Jaye Davidson | description=with fashion! | accessdate={{#time:Y-m-d}} | select=awards }}"
+
* Output: {{ {{BASEPAGENAME}} | id= 0001109 | name= Jaye Davidson | section= awards }}
 +
* Output: {{ {{BASEPAGENAME}}/sandbox | id= 0001109 | name= Jaye Davidson | section= awards }}
  
"{{((}} {{BASEPAGENAME}} {{!}} id=0001109 {{!}} name=Jaye Davidson {{!}} description=with fashion! {{!}} accessdate={{#time:Y-m-d}} {{!}} select=bio }}":
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} 0001109 {{!}} Jaye Davidson {{!}} section= awards }}</code>
:"{{ {{BASEPAGENAME}} | id=0001109 | name=Jaye Davidson | description=with fashion! | accessdate={{#time:Y-m-d}} | select=bio }}"
+
* Output: {{ {{BASEPAGENAME}} | 0001109 | Jaye Davidson | section= awards }}
 +
* Output: {{ {{BASEPAGENAME}}/sandbox | 0001109 | name= Jaye Davidson | section= awards }}
  
"{{((}} {{BASEPAGENAME}} {{!}} id=0001109 {{!}} name=Jaye Davidson {{!}} description=with fashion! {{!}} accessdate={{#time:Y-m-d}} {{!}} select=biography }}":
+
=== bio ===
:"{{ {{BASEPAGENAME}} | id=0001109 | name=Jaye Davidson | description=with fashion! | accessdate={{#time:Y-m-d}} | select=biography }}"
 
  
"{{((}} {{BASEPAGENAME}} {{!}} id=0001109 {{!}} name=Jaye Davidson {{!}} description=with fashion! {{!}} accessdate={{#time:Y-m-d}} {{!}} select=filmokey }}":
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= 0001109 {{!}} name= Jaye Davidson {{!}} section= bio }}</code>
:"{{ {{BASEPAGENAME}} | id=0001109 | name=Jaye Davidson | description=with fashion! | accessdate={{#time:Y-m-d}} | select=filmokey }}"
+
* Output: {{ {{BASEPAGENAME}} | id= 0001109 | name= Jaye Davidson | section= bio }}
 +
* Output: {{ {{BASEPAGENAME}}/sandbox | id= 0001109 | name= Jaye Davidson | section= bio }}
  
"{{((}} {{BASEPAGENAME}} {{!}} id=0001109 {{!}} name=Jaye Davidson {{!}} description=with fashion! {{!}} accessdate={{#time:Y-m-d}} {{!}} select=keywords }}":
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} 0001109 {{!}} Jaye Davidson {{!}} section= bio }}</code>
:"{{ {{BASEPAGENAME}} | id=0001109 | name=Jaye Davidson | description=with fashion! | accessdate={{#time:Y-m-d}} | select=keywords }}"
+
* Output: {{ {{BASEPAGENAME}} | 0001109 | Jaye Davidson | section= bio }}
 +
* Output: {{ {{BASEPAGENAME}}/sandbox | 0001109 | name= Jaye Davidson | section= bio }}
  
"{{((}} {{BASEPAGENAME}} {{!}} id=0001109 {{!}} name=Jaye Davidson {{!}} description=with fashion! {{!}} accessdate={{#time:Y-m-d}} {{!}} select=publicity }}":
+
=== biography ===
:"{{ {{BASEPAGENAME}} | id=0001109 | name=Jaye Davidson | description=with fashion! | accessdate={{#time:Y-m-d}} | select=publicity }}"
 
  
=={{SUBJECTSPACE}}:{{BASEPAGENAME}}/sandbox==
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= 0001109 {{!}} name= Jaye Davidson {{!}} section= biography }}</code>
"{{((}} {{BASEPAGENAME}}/sandbox {{))}}":
+
* Output: {{ {{BASEPAGENAME}} | id= 0001109 | name= Jaye Davidson | section= biography }}
:"{{ {{BASEPAGENAME}}/sandbox }}"
+
* Output: {{ {{BASEPAGENAME}}/sandbox | id= 0001109 | name= Jaye Davidson | section= biography }}
  
"{{((}} {{BASEPAGENAME}}/sandbox {{!}}0001109 {{))}}":
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} 0001109 {{!}} Jaye Davidson {{!}} section= biography }}</code>
:"{{ {{BASEPAGENAME}}/sandbox |0001109 }}"
+
* Output: {{ {{BASEPAGENAME}} | 0001109 | Jaye Davidson | section= biography }}
 
+
* Output: {{ {{BASEPAGENAME}}/sandbox | 0001109 | name= Jaye Davidson | section= biography }}
"{{((}} {{BASEPAGENAME}}/sandbox {{!}}0001109{{!}}Jaye Davidson {{))}}":
 
:"{{ {{BASEPAGENAME}}/sandbox |0001109|Jaye Davidson }}"
 
 
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}}0001109{{!}}Jaye Davidson{{!}}with fashion! {{))}}":
 
:"{{ {{BASEPAGENAME}}/sandbox |0001109|Jaye Davidson|with fashion! }}"
 
 
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} id=0001109 {{))}}":
 
:"{{ {{BASEPAGENAME}}/sandbox | id=0001109 }}"
 
 
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} id=0001109 {{!}} name=Jaye Davidson {{))}}":
 
:"{{ {{BASEPAGENAME}}/sandbox | id=0001109 | name=Jaye Davidson }}"
 
 
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} id=0001109 {{!}} name=Jaye Davidson {{!}} description=with fashion! {{))}}":
 
:"{{ {{BASEPAGENAME}}/sandbox | id=0001109 | name=Jaye Davidson | description=with fashion! }}"
 
 
 
===Recommended date forms===
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} id=0001109 {{!}} name=Jaye Davidson {{!}} description=with fashion! {{!}} accessdate={{#time:Y-m-d}} }}":
 
:"{{ {{BASEPAGENAME}}/sandbox | id=0001109 | name=Jaye Davidson | description=with fashion! | accessdate={{#time:Y-m-d}} }}"
 
 
 
===Detail pages===
 
====Select by position====
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}}0001109{{!}}Jaye Davidson{{!}}with fashion!{{!}}award{{!}} accessdate={{#time:Y-m-d}} }}":
 
:"{{ {{BASEPAGENAME}}/sandbox |0001109|Jaye Davidson|with fashion!|award| accessdate={{#time:Y-m-d}} }}"
 
 
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}}0001109{{!}}Jaye Davidson{{!}}with fashion!{{!}}awards{{!}} accessdate={{#time:Y-m-d}} }}":
 
:"{{ {{BASEPAGENAME}}/sandbox |0001109|Jaye Davidson|with fashion!|awards| accessdate={{#time:Y-m-d}} }}"
 
 
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}}0001109{{!}}Jaye Davidson{{!}}with fashion!{{!}}bio{{!}} accessdate={{#time:Y-m-d}} }}":
 
:"{{ {{BASEPAGENAME}}/sandbox |0001109|Jaye Davidson|with fashion!|bio| accessdate={{#time:Y-m-d}} }}"
 
 
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}}0001109{{!}}Jaye Davidson{{!}}with fashion!{{!}}biography{{!}} accessdate={{#time:Y-m-d}} }}":
 
:"{{ {{BASEPAGENAME}}/sandbox |0001109|Jaye Davidson|with fashion!|biography| accessdate={{#time:Y-m-d}} }}"
 
 
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}}0001109{{!}}Jaye Davidson{{!}}with fashion!{{!}}filmokey{{!}} accessdate={{#time:Y-m-d}} }}":
 
:"{{ {{BASEPAGENAME}}/sandbox |0001109|Jaye Davidson|with fashion!|filmokey| accessdate={{#time:Y-m-d}} }}"
 
 
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}}0001109{{!}}Jaye Davidson{{!}}with fashion!{{!}}keywords{{!}} accessdate={{#time:Y-m-d}} }}":
 
:"{{ {{BASEPAGENAME}}/sandbox |0001109|Jaye Davidson|with fashion!|keywords| accessdate={{#time:Y-m-d}} }}"
 
 
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}}0001109{{!}}Jaye Davidson{{!}}with fashion!{{!}}publicity{{!}} accessdate={{#time:Y-m-d}} }}":
 
:"{{ {{BASEPAGENAME}}/sandbox |0001109|Jaye Davidson|with fashion!|publicity|| accessdate={{#time:Y-m-d}} }}"
 
 
 
====Select by parameter====
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} id=0001109 {{!}} name=Jaye Davidson {{!}} description=with fashion! {{!}} accessdate={{#time:Y-m-d}} {{!}} select=award }}":
 
:"{{ {{BASEPAGENAME}}/sandbox | id=0001109 | name=Jaye Davidson | description=with fashion! | accessdate={{#time:Y-m-d}} | select=award }}"
 
 
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} id=0001109 {{!}} name=Jaye Davidson {{!}} description=with fashion! {{!}} accessdate={{#time:Y-m-d}} {{!}} select=awards }}":
 
:"{{ {{BASEPAGENAME}}/sandbox | id=0001109 | name=Jaye Davidson | description=with fashion! | accessdate={{#time:Y-m-d}} | select=awards }}"
 
 
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} id=0001109 {{!}} name=Jaye Davidson {{!}} description=with fashion! {{!}} accessdate={{#time:Y-m-d}} {{!}} select=bio }}":
 
:"{{ {{BASEPAGENAME}}/sandbox | id=0001109 | name=Jaye Davidson | description=with fashion! | accessdate={{#time:Y-m-d}} | select=bio }}"
 
 
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} id=0001109 {{!}} name=Jaye Davidson {{!}} description=with fashion! {{!}} accessdate={{#time:Y-m-d}} {{!}} select=biography }}":
 
:"{{ {{BASEPAGENAME}}/sandbox | id=0001109 | name=Jaye Davidson | description=with fashion! | accessdate={{#time:Y-m-d}} | select=biography }}"
 
 
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} id=0001109 {{!}} name=Jaye Davidson {{!}} description=with fashion! {{!}} accessdate={{#time:Y-m-d}} {{!}} select=filmokey }}":
 
:"{{ {{BASEPAGENAME}}/sandbox | id=0001109 | name=Jaye Davidson | description=with fashion! | accessdate={{#time:Y-m-d}} | select=filmokey }}"
 
 
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} id=0001109 {{!}} name=Jaye Davidson {{!}} description=with fashion! {{!}} accessdate={{#time:Y-m-d}} {{!}} select=keywords }}":
 
:"{{ {{BASEPAGENAME}}/sandbox | id=0001109 | name=Jaye Davidson | description=with fashion! | accessdate={{#time:Y-m-d}} | select=keywords }}"
 
 
 
"{{((}} {{BASEPAGENAME}}/sandbox {{!}} id=0001109 {{!}} name=Jaye Davidson {{!}} description=with fashion! {{!}} accessdate={{#time:Y-m-d}} {{!}} select=publicity }}":
 
:"{{ {{BASEPAGENAME}}/sandbox | id=0001109 | name=Jaye Davidson | description=with fashion! | accessdate={{#time:Y-m-d}} | select=publicity }}"
 

Revision as of 10:12, 10 September 2014

No parameters

Usage: {{ IMDb name }}

  • Output: Template:PAGENAMEBASE at IMDbScript error: No such module "EditAtWikidata".Expression error: Unrecognized punctuation character "[".
  • Sandbox: Template:PAGENAMEBASE at IMDbScript error: No such module "EditAtWikidata".Expression error: Unrecognized punctuation character "[".

Parameter: id (1)

Usage: {{ IMDb name | id= 0001109 }}

Usage: {{ IMDb name | id= nm0001109 }}

  • Output: Template:PAGENAMEBASE at IMDbScript error: No such module "EditAtWikidata".Expression error: Unrecognized punctuation character "[".
  • Sandbox: Template:PAGENAMEBASE at IMDbScript error: No such module "EditAtWikidata".Expression error: Unrecognized punctuation character "[".

Usage: {{ IMDb name | 0001109 }}

Usage: {{ IMDb name | nm0001109 }}

  • Output: Template:PAGENAMEBASE at IMDbScript error: No such module "EditAtWikidata".Expression error: Unrecognized punctuation character "[".
  • Sandbox: Template:PAGENAMEBASE at IMDbScript error: No such module "EditAtWikidata".Expression error: Unrecognized punctuation character "[".

Parameter: name (2)

Usage: {{ IMDb name | id= 0001109 | name= Jaye Davidson }}

Usage: {{ IMDb name | 0001109 | Jaye Davidson }}

Parameter: section

award

Usage: {{ IMDb name | id= 0001109 | name= Jaye Davidson | section= award }}

Usage: {{ IMDb name | 0001109 | Jaye Davidson | section= award }}

awards

Usage: {{ IMDb name | id= 0001109 | name= Jaye Davidson | section= awards }}

Usage: {{ IMDb name | 0001109 | Jaye Davidson | section= awards }}

bio

Usage: {{ IMDb name | id= 0001109 | name= Jaye Davidson | section= bio }}

Usage: {{ IMDb name | 0001109 | Jaye Davidson | section= bio }}

biography

Usage: {{ IMDb name | id= 0001109 | name= Jaye Davidson | section= biography }}

Usage: {{ IMDb name | 0001109 | Jaye Davidson | section= biography }}