Difference between revisions of "Template:AllMovie title/testcases"

From blackwiki
Jump to navigation Jump to search
blackwiki>Edgars2007
blackwiki>Purposefree
Line 61: Line 61:
 
== Value validation ==
 
== Value validation ==
 
=== 1= ===
 
=== 1= ===
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} 86623 {{))}}</code> (doesn't add {{c|AllMovie titles with invalid value}} category)
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} 86623 {{))}}</code>
 
* Output: {{ {{BASEPAGENAME}} | 86623 }}
 
* Output: {{ {{BASEPAGENAME}} | 86623 }}
 
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | 86623 }}
 
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | 86623 }}
  
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} v86623 {{))}}</code> (adds {{c|AllMovie titles with invalid value}} category)
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} v86623 {{))}}</code> (trims "v")
 
* Output: {{ {{BASEPAGENAME}} | v86623 }}
 
* Output: {{ {{BASEPAGENAME}} | v86623 }}
 
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | v86623 }}  
 
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | v86623 }}  
  
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} the-captain-is-a-lady-v86623 {{))}}</code> (adds {{c|AllMovie titles with invalid value}} category)
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} the-captain-is-a-lady-v86623 {{))}}</code> (trims non-numeric letters)
 
* Output: {{ {{BASEPAGENAME}} | the-captain-is-a-lady-v86623 }}
 
* Output: {{ {{BASEPAGENAME}} | the-captain-is-a-lady-v86623 }}
 
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | the-captain-is-a-lady-v86623 }}
 
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | the-captain-is-a-lady-v86623 }}
 +
 +
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} fahrenheit-451-v16576 {{))}}</code> (trims all letters before the number at the end, even though the argument contains multiple numbers)
 +
* Output: {{ {{BASEPAGENAME}} | fahrenheit-451-v16576 }}
 +
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | fahrenheit-451-v16576 }}
 +
 +
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} 4-months-3-weeks-and-2-days-v396871 {{))}}</code> (trims all letters before the number at the end, even though the argument contains multiple numbers)
 +
* Output: {{ {{BASEPAGENAME}} | 4-months-3-weeks-and-2-days-v396871 }}
 +
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | 4-months-3-weeks-and-2-days-v396871 }}
 +
 +
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} the-captain-is-a-lady {{))}}</code> (adds {{c|AllMovie titles with invalid value}} category since the argument is not a number)
 +
* Output: {{ {{BASEPAGENAME}} | the-captain-is-a-lady }}
 +
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | the-captain-is-a-lady }}
 +
 +
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} 4-months-3-weeks-and-2-days {{))}}</code> (adds {{c|AllMovie titles with invalid value}} category since the argument does not end with a number)
 +
* Output: {{ {{BASEPAGENAME}} | 4-months-3-weeks-and-2-days }}
 +
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | 4-months-3-weeks-and-2-days }}
  
 
=== id ===
 
=== id ===
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= 86623 {{))}}</code> (doesn't add {{c|AllMovie titles with invalid value}} category)
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= 86623 {{))}}</code>
 
* Output: {{ {{BASEPAGENAME}} | id= 86623 }}
 
* Output: {{ {{BASEPAGENAME}} | id= 86623 }}
 
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | id= 86623 }}
 
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | id= 86623 }}
  
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= v86623 {{))}}</code> (adds {{c|AllMovie titles with invalid value}} category)
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= v86623 {{))}}</code> (trims "v")
 
* Output: {{ {{BASEPAGENAME}} | id= v86623 }}
 
* Output: {{ {{BASEPAGENAME}} | id= v86623 }}
* Sandbox: {{ {{BASEPAGENAME}}/sandbox |id= v86623 }}  
+
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | id= v86623 }}  
  
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= the-captain-is-a-lady-v86623 {{))}}</code> (adds {{c|AllMovie titles with invalid value}} category)
+
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= the-captain-is-a-lady-v86623 {{))}}</code> (trims non-numeric letters)
 
* Output: {{ {{BASEPAGENAME}} | id= the-captain-is-a-lady-v86623 }}
 
* Output: {{ {{BASEPAGENAME}} | id= the-captain-is-a-lady-v86623 }}
 
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | id= the-captain-is-a-lady-v86623 }}
 
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | id= the-captain-is-a-lady-v86623 }}
 +
 +
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= fahrenheit-451-v16576 {{))}}</code> (trims all letters before the number at the end, even though the argument contains multiple numbers)
 +
* Output: {{ {{BASEPAGENAME}} | id= fahrenheit-451-v16576 }}
 +
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | id= fahrenheit-451-v16576 }}
 +
 +
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= 4-months-3-weeks-and-2-days-v396871 {{))}}</code> (trims all letters before the number at the end, even though the argument contains multiple numbers)
 +
* Output: {{ {{BASEPAGENAME}} | id= 4-months-3-weeks-and-2-days-v396871 }}
 +
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | id= 4-months-3-weeks-and-2-days-v396871 }}
 +
 +
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= the-captain-is-a-lady {{))}}</code> (adds {{c|AllMovie titles with invalid value}} category since the argument is not a number)
 +
* Output: {{ {{BASEPAGENAME}} | id= the-captain-is-a-lady }}
 +
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | id= the-captain-is-a-lady }}
 +
 +
Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= 4-months-3-weeks-and-2-days {{))}}</code> (adds {{c|AllMovie titles with invalid value}} category since the argument does not end with a number)
 +
* Output: {{ {{BASEPAGENAME}} | id= 4-months-3-weeks-and-2-days }}
 +
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | id= 4-months-3-weeks-and-2-days }}

Revision as of 02:08, 13 February 2016

Parameter: id (1)

Usage: {{ AllMovie title | id= 356351 }}

Usage: {{ AllMovie title | 356351 }}

Parameter: title (2)

Usage: {{ AllMovie title | id= 356351 | title= Quantum of Solace }}

Usage: {{ AllMovie title | 356351 | Quantum of Solace }}

Parameter: tab

review

Usage: {{ AllMovie title | id= 356351 | title= Quantum of Solace (review) | tab= review }}

Usage: {{ AllMovie title | 356351 | Quantum of Solace (review) | tab= review }}

cast-crew

Usage: {{ AllMovie title | id= 356351 | title= Quantum of Solace (cast & crew) | tab= cast-crew }}

Usage: {{ AllMovie title | 356351 | Quantum of Solace (cast & crew) | tab= cast-crew }}

awards

Usage: {{ AllMovie title | id= 356351 | title= Quantum of Solace (awards) | tab= awards }}

Usage: {{ AllMovie title | 356351 | Quantum of Solace (awards) | tab= awards }}

releases

Usage: {{ AllMovie title | id= 356351 | title= Quantum of Solace (releases) | tab= releases }}

Usage: {{ AllMovie title | 356351 | Quantum of Solace (releases) | tab= releases }}

Value validation

1=

Usage: {{ AllMovie title | 86623 }}

Usage: {{ AllMovie title | v86623 }} (trims "v")

Usage: {{ AllMovie title | the-captain-is-a-lady-v86623 }} (trims non-numeric letters)

Usage: {{ AllMovie title | fahrenheit-451-v16576 }} (trims all letters before the number at the end, even though the argument contains multiple numbers)

Usage: {{ AllMovie title | 4-months-3-weeks-and-2-days-v396871 }} (trims all letters before the number at the end, even though the argument contains multiple numbers)

Usage: {{ AllMovie title | the-captain-is-a-lady }} (adds AllMovie titles with invalid value category since the argument is not a number)

Usage: {{ AllMovie title | 4-months-3-weeks-and-2-days }} (adds AllMovie titles with invalid value category since the argument does not end with a number)

id

Usage: {{ AllMovie title | id= 86623 }}

Usage: {{ AllMovie title | id= v86623 }} (trims "v")

Usage: {{ AllMovie title | id= the-captain-is-a-lady-v86623 }} (trims non-numeric letters)

Usage: {{ AllMovie title | id= fahrenheit-451-v16576 }} (trims all letters before the number at the end, even though the argument contains multiple numbers)

Usage: {{ AllMovie title | id= 4-months-3-weeks-and-2-days-v396871 }} (trims all letters before the number at the end, even though the argument contains multiple numbers)

Usage: {{ AllMovie title | id= the-captain-is-a-lady }} (adds AllMovie titles with invalid value category since the argument is not a number)

Usage: {{ AllMovie title | id= 4-months-3-weeks-and-2-days }} (adds AllMovie titles with invalid value category since the argument does not end with a number)