Difference between revisions of "Template:AllMovie title/testcases"
blackwiki>Edgars2007 |
blackwiki>Purposefree |
||
Line 61: | Line 61: | ||
== Value validation == | == Value validation == | ||
=== 1= === | === 1= === | ||
− | Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} 86623 {{))}}</code> | + | Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} 86623 {{))}}</code> |
* Output: {{ {{BASEPAGENAME}} | 86623 }} | * Output: {{ {{BASEPAGENAME}} | 86623 }} | ||
* Sandbox: {{ {{BASEPAGENAME}}/sandbox | 86623 }} | * Sandbox: {{ {{BASEPAGENAME}}/sandbox | 86623 }} | ||
− | Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} v86623 {{))}}</code> ( | + | 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> ( | + | 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> | + | 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> ( | + | Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= v86623 {{))}}</code> (trims "v") |
* Output: {{ {{BASEPAGENAME}} | id= v86623 }} | * Output: {{ {{BASEPAGENAME}} | id= v86623 }} | ||
− | * Sandbox: {{ {{BASEPAGENAME}}/sandbox |id= | + | * Sandbox: {{ {{BASEPAGENAME}}/sandbox | id= v86623 }} |
− | Usage: <code>{{((}} {{BASEPAGENAME}} {{!}} id= the-captain-is-a-lady-v86623 {{))}}</code> ( | + | 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
![]() | This is the template test cases page for the sandbox of Template:AllMovie title. Script error: No such module "Purge". 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 with these links: |
Contents
Parameter: id (1)
Usage: {{ AllMovie title | id= 356351 }}
- Output: Template:PAGENAMEBASE at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Template:PAGENAMEBASE at AllMovieTemplate:Ns0
Usage: {{ AllMovie title | 356351 }}
- Output: Template:PAGENAMEBASE at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Template:PAGENAMEBASE at AllMovieTemplate:Ns0
Parameter: title (2)
Usage: {{ AllMovie title | id= 356351 | title= Quantum of Solace }}
- Output: Quantum of Solace at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Quantum of Solace at AllMovieTemplate:Ns0
Usage: {{ AllMovie title | 356351 | Quantum of Solace }}
- Output: Quantum of Solace at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Quantum of Solace at AllMovieTemplate:Ns0
Parameter: tab
review
Usage: {{ AllMovie title | id= 356351 | title= Quantum of Solace (review) | tab= review }}
- Output: Quantum of Solace (review) at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0Template:Ns0
- Sandbox: Quantum of Solace (review) at AllMovieTemplate:Ns0Template:Ns0
Usage: {{ AllMovie title | 356351 | Quantum of Solace (review) | tab= review }}
- Output: Quantum of Solace (review) at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0Template:Ns0
- Sandbox: Quantum of Solace (review) at AllMovieTemplate:Ns0Template:Ns0
cast-crew
Usage: {{ AllMovie title | id= 356351 | title= Quantum of Solace (cast & crew) | tab= cast-crew }}
- Output: Quantum of Solace (cast & crew) at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Quantum of Solace (cast & crew) at AllMovieTemplate:Ns0
Usage: {{ AllMovie title | 356351 | Quantum of Solace (cast & crew) | tab= cast-crew }}
- Output: Quantum of Solace (cast & crew) at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Quantum of Solace (cast & crew) at AllMovieTemplate:Ns0
awards
Usage: {{ AllMovie title | id= 356351 | title= Quantum of Solace (awards) | tab= awards }}
- Output: Quantum of Solace (awards) at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Quantum of Solace (awards) at AllMovieTemplate:Ns0
Usage: {{ AllMovie title | 356351 | Quantum of Solace (awards) | tab= awards }}
- Output: Quantum of Solace (awards) at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Quantum of Solace (awards) at AllMovieTemplate:Ns0
releases
Usage: {{ AllMovie title | id= 356351 | title= Quantum of Solace (releases) | tab= releases }}
- Output: Quantum of Solace (releases) at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Quantum of Solace (releases) at AllMovieTemplate:Ns0
Usage: {{ AllMovie title | 356351 | Quantum of Solace (releases) | tab= releases }}
- Output: Quantum of Solace (releases) at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Quantum of Solace (releases) at AllMovieTemplate:Ns0
Value validation
1=
Usage: {{ AllMovie title | 86623 }}
- Output: Template:PAGENAMEBASE at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Template:PAGENAMEBASE at AllMovieTemplate:Ns0
Usage: {{ AllMovie title | v86623 }}
(trims "v")
- Output: Template:PAGENAMEBASE at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Template:PAGENAMEBASE at AllMovieTemplate:Ns0
Usage: {{ AllMovie title | the-captain-is-a-lady-v86623 }}
(trims non-numeric letters)
- Output: Template:PAGENAMEBASE at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Template:PAGENAMEBASE at AllMovieTemplate:Ns0
Usage: {{ AllMovie title | fahrenheit-451-v16576 }}
(trims all letters before the number at the end, even though the argument contains multiple numbers)
- Output: Template:PAGENAMEBASE at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Template:PAGENAMEBASE at AllMovieTemplate:Ns0
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)
- Output: Template:PAGENAMEBASE at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Template:PAGENAMEBASE at AllMovieTemplate:Ns0
Usage: {{ AllMovie title | the-captain-is-a-lady }}
(adds AllMovie titles with invalid value category since the argument is not a number)
- Output: Template:PAGENAMEBASE at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Template:PAGENAMEBASE at AllMovieTemplate:Ns0
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)
- Output: Template:PAGENAMEBASE at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Template:PAGENAMEBASE at AllMovieTemplate:Ns0
id
Usage: {{ AllMovie title | id= 86623 }}
- Output: Template:PAGENAMEBASE at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Template:PAGENAMEBASE at AllMovieTemplate:Ns0
Usage: {{ AllMovie title | id= v86623 }}
(trims "v")
- Output: Template:PAGENAMEBASE at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Template:PAGENAMEBASE at AllMovieTemplate:Ns0
Usage: {{ AllMovie title | id= the-captain-is-a-lady-v86623 }}
(trims non-numeric letters)
- Output: Template:PAGENAMEBASE at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Template:PAGENAMEBASE at AllMovieTemplate:Ns0
Usage: {{ AllMovie title | id= fahrenheit-451-v16576 }}
(trims all letters before the number at the end, even though the argument contains multiple numbers)
- Output: Template:PAGENAMEBASE at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Template:PAGENAMEBASE at AllMovieTemplate:Ns0
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)
- Output: Template:PAGENAMEBASE at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Template:PAGENAMEBASE at AllMovieTemplate:Ns0
Usage: {{ AllMovie title | id= the-captain-is-a-lady }}
(adds AllMovie titles with invalid value category since the argument is not a number)
- Output: Template:PAGENAMEBASE at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Template:PAGENAMEBASE at AllMovieTemplate:Ns0
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)
- Output: Template:PAGENAMEBASE at AllMovieScript error: No such module "EditAtWikidata".Template:Ns0
- Sandbox: Template:PAGENAMEBASE at AllMovieTemplate:Ns0