Module:Labelled list hatnote/testcases: Difference between revisions
From Kenshi Wiki
More actions
Prd created the page Module:Labelled list hatnote/testcases using a non-default content model "wikitext" |
No edit summary |
||
Line 1: | Line 1: | ||
The below tables show the output as rendered through {{[[Module:Labelled list hatnote/testcases/template]]}}, which provides a set of template calls from the module and its sandbox version for comparison, corresponding to each table entry. Some details follow: | |||
* "Universal" label means that only one label is provided, "Universal". | |||
* "Basic" means that two labels are provided, "Singular" and "Plural" in that order. | |||
* "with ifexists" means that the "ifexists" option is enabled for that test | |||
* "Namespace-based labels" means that four labels are provided, "Main", "Mains", "Other", "Others", which allows the label to be based on the namespaces of the target titles: if any non-mainspace pages are targeted then "Other" or "Others" labels should be picked, and otherwise, "Main" or "Mains" labels should be picked. | |||
==No input== | |||
{| class="wikitable" | |||
|+ No-input test cases | |||
|- | |||
! scope="col" | Test case | |||
! scope="col" | Main output | |||
! scope="col" | Sandbox output | |||
|- | |||
| No template-level input | |||
| {{Module:Labelled list hatnote/testcases/template|test=default|category=no}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=sandbox|category=no}} | |||
|- | |||
| "Universal" label | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal|category=no}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-sandbox|category=no}} | |||
|- | |||
| "Universal" label with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists|category=no}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists-sandbox|category=no}} | |||
|- | |||
| "Basic" labels ("Singular" & "Plural") | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic|category=no}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-sandbox|category=no}} | |||
|- | |||
| "Basic" labels with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists|category=no}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists-sandbox|category=no}} | |||
|- | |||
| Extraclasses | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses|category=no}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses-sandbox|category=no}} | |||
|- | |||
| Namespace-based labels | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace|category=no}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace-sandbox|category=no}} | |||
|- | |||
|} | |||
==One existent input== | |||
{| class="wikitable" | |||
|+ One existent input test cases | |||
|- | |||
! scope="col" | Test case | |||
! scope="col" | Main output | |||
! scope="col" | Sandbox output | |||
|- | |||
| No template-level input | |||
| {{Module:Labelled list hatnote/testcases/template|test=default|category=no|Foobar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=sandbox|category=no|Foobar}} | |||
|- | |||
| "Universal" label | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal|category=no|Foobar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-sandbox|category=no|Foobar}} | |||
|- | |||
| "Universal" label with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists|category=no|Foobar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists-sandbox|category=no|Foobar}} | |||
|- | |||
| "Basic" labels ("Singular" & "Plural") | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic|category=no|Foobar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-sandbox|category=no|Foobar}} | |||
|- | |||
| "Basic" labels with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists|category=no|Foobar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists-sandbox|category=no|Foobar}} | |||
|- | |||
| Extraclasses | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses|category=no|Foobar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses-sandbox|category=no|Foobar}} | |||
|- | |||
| Namespace-based labels | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace|category=no|Foobar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace-sandbox|category=no|Foobar}} | |||
|- | |||
|} | |||
==One nonexistent input== | |||
{| class="wikitable" | |||
|+ One nonexistent input test cases | |||
|- | |||
! scope="col" | Test case | |||
! scope="col" | Main output | |||
! scope="col" | Sandbox output | |||
|- | |||
| No template-level input | |||
| {{Module:Labelled list hatnote/testcases/template|test=default|category=no|Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=sandbox|category=no|Nonexistent page}} | |||
|- | |||
| "Universal" label | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal|category=no|Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-sandbox|category=no|Nonexistent page}} | |||
|- | |||
| "Universal" label with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists|category=no|Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists-sandbox|category=no|Nonexistent page}} | |||
|- | |||
| "Basic" labels ("Singular" & "Plural") | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic|category=no|Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-sandbox|category=no|Nonexistent page}} | |||
|- | |||
| "Basic" labels with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists|category=no|Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists-sandbox|category=no|Nonexistent page}} | |||
|- | |||
| Extraclasses | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses|category=no|Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses-sandbox|category=no|Nonexistent page}} | |||
|- | |||
| Namespace-based labels | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace|category=no|Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace-sandbox|category=no|Nonexistent page}} | |||
|- | |||
|} | |||
==Two existent inputs== | |||
{| class="wikitable" | |||
|+ Two existent inputs test cases | |||
|- | |||
! scope="col" | Test case | |||
! scope="col" | Main output | |||
! scope="col" | Sandbox output | |||
|- | |||
| No template-level input | |||
| {{Module:Labelled list hatnote/testcases/template|test=default|category=no|Foo|Bar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=sandbox|category=no|Foo|Bar}} | |||
|- | |||
| "Universal" label | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal|category=no|Foo|Bar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-sandbox|category=no|Foo|Bar}} | |||
|- | |||
| "Universal" label with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists|category=no|Foo|Bar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists-sandbox|category=no|Foo|Bar}} | |||
|- | |||
| "Basic" labels ("Singular" & "Plural") | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic|category=no|Foo|Bar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-sandbox|category=no|Foo|Bar}} | |||
|- | |||
| "Basic" labels with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists|category=no|Foo|Bar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists-sandbox|category=no|Foo|Bar}} | |||
|- | |||
| Extraclasses | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses|category=no|Foo|Bar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses-sandbox|category=no|Foo|Bar}} | |||
|- | |||
| Namespace-based labels | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace|category=no|Foo|Bar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace-sandbox|category=no|Foo|Bar}} | |||
|- | |||
|} | |||
==One existent and one nonexistent input== | |||
{| class="wikitable" | |||
|+ One existent and one nonexistent input test cases | |||
|- | |||
! scope="col" | Test case | |||
! scope="col" | Main output | |||
! scope="col" | Sandbox output | |||
|- | |||
| No template-level input | |||
| {{Module:Labelled list hatnote/testcases/template|test=default|category=no|Foo|Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=sandbox|category=no|Foo|Nonexistent page}} | |||
|- | |||
| "Universal" label | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal|category=no|Foo|Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-sandbox|category=no|Foo|Nonexistent page}} | |||
|- | |||
| "Universal" label with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists|category=no|Foo|Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists-sandbox|category=no|Foo|Nonexistent page}} | |||
|- | |||
| "Basic" labels ("Singular" & "Plural") | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic|category=no|Foo|Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-sandbox|category=no|Foo|Nonexistent page}} | |||
|- | |||
| "Basic" labels with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists|category=no|Foo|Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists-sandbox|category=no|Foo|Nonexistent page}} | |||
|- | |||
| Extraclasses | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses|category=no|Foo|Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses-sandbox|category=no|Foo|Nonexistent page}} | |||
|- | |||
| Namespace-based labels | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace|category=no|Foo|Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace-sandbox|category=no|Foo|Nonexistent page}} | |||
|- | |||
|} | |||
==Three existent inputs== | |||
{| class="wikitable" | |||
|+ Three existent inputs test cases | |||
|- | |||
! scope="col" | Test case | |||
! scope="col" | Main output | |||
! scope="col" | Sandbox output | |||
|- | |||
| No template-level input | |||
| {{Module:Labelled list hatnote/testcases/template|test=default|category=no|Foo|Bar|Baz}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=sandbox|category=no|Foo|Bar|Baz}} | |||
|- | |||
| "Universal" label | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal|category=no|Foo|Bar|Baz}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-sandbox|category=no|Foo|Bar|Baz}} | |||
|- | |||
| "Universal" label with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists|category=no|Foo|Bar|Baz}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists-sandbox|category=no|Foo|Bar|Baz}} | |||
|- | |||
| "Basic" labels ("Singular" & "Plural") | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic|category=no|Foo|Bar|Baz}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-sandbox|category=no|Foo|Bar|Baz}} | |||
|- | |||
| "Basic" labels with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists|category=no|Foo|Bar|Baz}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists-sandbox|category=no|Foo|Bar|Baz}} | |||
|- | |||
| Extraclasses | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses|category=no|Foo|Bar|Baz}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses-sandbox|category=no|Foo|Bar|Baz}} | |||
|- | |||
| Namespace-based labels | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace|category=no|Foo|Bar|Baz}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace-sandbox|category=no|Foo|Bar|Baz}} | |||
|- | |||
|} | |||
==Two existent inputs and one nonexistent== | |||
{| class="wikitable" | |||
|+ Two existent inputs and one nonexistent test cases | |||
|- | |||
! scope="col" | Test case | |||
! scope="col" | Main output | |||
! scope="col" | Sandbox output | |||
|- | |||
| No template-level input | |||
| {{Module:Labelled list hatnote/testcases/template|test=default|category=no|Foo|Nonexistent page|Bar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=sandbox|category=no|Foo|Nonexistent page|Bar}} | |||
|- | |||
| "Universal" label | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal|category=no|Foo|Nonexistent page|Bar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-sandbox|category=no|Foo|Nonexistent page|Bar}} | |||
|- | |||
| "Universal" label with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists|category=no|Foo|Nonexistent page|Bar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists-sandbox|category=no|Foo|Nonexistent page|Bar}} | |||
|- | |||
| "Basic" labels ("Singular" & "Plural") | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic|category=no|Foo|Nonexistent page|Bar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-sandbox|category=no|Foo|Nonexistent page|Bar}} | |||
|- | |||
| "Basic" labels with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists|category=no|Foo|Nonexistent page|Bar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists-sandbox|category=no|Foo|Nonexistent page|Bar}} | |||
|- | |||
| Extraclasses | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses|category=no|Foo|Nonexistent page|Bar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses-sandbox|category=no|Foo|Nonexistent page|Bar}} | |||
|- | |||
| Namespace-based labels | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace|category=no|Foo|Nonexistent page|Bar}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace-sandbox|category=no|Foo|Nonexistent page|Bar}} | |||
|- | |||
|} | |||
==Display override== | |||
{| class="wikitable" | |||
|+ Display override test cases | |||
|- | |||
! scope="col" | Test case | |||
! scope="col" | Main output | |||
! scope="col" | Sandbox output | |||
|- | |||
| No template-level input | |||
| {{Module:Labelled list hatnote/testcases/template|test=default|category=no|Foo|Nonexistent page|Bar|label 1=ONE|label1=One|label2=Two|label3=Three}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=sandbox|category=no|Foo|Nonexistent page|Bar|label 1=ONE|label1=One|label2=Two|label3=Three}} | |||
|- | |||
| "Universal" label | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal|category=no|Foo|Nonexistent page|Bar|label 1=ONE|label1=One|label2=Two|label3=Three}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-sandbox|category=no|Foo|Nonexistent page|Bar|label 1=ONE|label1=One|label2=Two|label3=Three}} | |||
|- | |||
| "Universal" label with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists|category=no|Foo|Nonexistent page|Bar|label 1=ONE|label1=One|label2=Two|label3=Three}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists-sandbox|category=no|Foo|Nonexistent page|Bar|label 1=ONE|label1=One|label2=Two|label3=Three}} | |||
|- | |||
| "Basic" labels ("Singular" & "Plural") | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic|category=no|Foo|Nonexistent page|Bar|label 1=ONE|label1=One|label2=Two|label3=Three}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-sandbox|category=no|Foo|Nonexistent page|Bar|label 1=ONE|label1=One|label2=Two|label3=Three}} | |||
|- | |||
| "Basic" labels with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists|category=no|Foo|Nonexistent page|Bar|label 1=ONE|label1=One|label2=Two|label3=Three}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists-sandbox|category=no|Foo|Nonexistent page|Bar|label 1=ONE|label1=One|label2=Two|label3=Three}} | |||
|- | |||
| Extraclasses | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses|category=no|Foo|Nonexistent page|Bar|label 1=ONE|label1=One|label2=Two|label3=Three}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses-sandbox|category=no|Foo|Nonexistent page|Bar|label 1=ONE|label1=One|label2=Two|label3=Three}} | |||
|- | |||
| Namespace-based labels | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace|category=no|Foo|Nonexistent page|Bar|label 1=ONE|label1=One|label2=Two|label3=Three}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace-sandbox|category=no|Foo|Nonexistent page|Bar|label 1=ONE|label1=One|label2=Two|label3=Three}} | |||
|- | |||
|} | |||
==Single non-mainspace input== | |||
{| class="wikitable" | |||
|+ Single non-mainspace input test cases | |||
|- | |||
! scope="col" | Test case | |||
! scope="col" | Main output | |||
! scope="col" | Sandbox output | |||
|- | |||
| No template-level input | |||
| {{Module:Labelled list hatnote/testcases/template|test=default|category=no|Wikipedia:Ignore all rules}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=sandbox|category=no|Wikipedia:Ignore all rules}} | |||
|- | |||
| "Universal" label | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal|category=no|Wikipedia:Ignore all rules}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-sandbox|category=no|Wikipedia:Ignore all rules}} | |||
|- | |||
| "Universal" label with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists|category=no|Wikipedia:Ignore all rules}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists-sandbox|category=no|Wikipedia:Ignore all rules}} | |||
|- | |||
| "Basic" labels ("Singular" & "Plural") | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic|category=no|Wikipedia:Ignore all rules}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-sandbox|category=no|Wikipedia:Ignore all rules}} | |||
|- | |||
| "Basic" labels with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists|category=no|Wikipedia:Ignore all rules}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists-sandbox|category=no|Wikipedia:Ignore all rules}} | |||
|- | |||
| Extraclasses | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses|category=no|Wikipedia:Ignore all rules}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses-sandbox|category=no|Wikipedia:Ignore all rules}} | |||
|- | |||
| Namespace-based labels | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace|category=no|Wikipedia:Ignore all rules}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace-sandbox|category=no|Wikipedia:Ignore all rules}} | |||
|- | |||
|} | |||
==Mixed-namespace input== | |||
{| class="wikitable" | |||
|+ Mixed-namespace test cases | |||
|- | |||
! scope="col" | Test case | |||
! scope="col" | Main output | |||
! scope="col" | Sandbox output | |||
|- | |||
| No template-level input | |||
| {{Module:Labelled list hatnote/testcases/template|test=default|category=no|Foobar|Wikipedia:Ignore all rules}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=sandbox|category=no|Foobar|Wikipedia:Ignore all rules}} | |||
|- | |||
| "Universal" label | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal|category=no|Foobar|Wikipedia:Ignore all rules}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-sandbox|category=no|Foobar|Wikipedia:Ignore all rules}} | |||
|- | |||
| "Universal" label with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists|category=no|Foobar|Wikipedia:Ignore all rules}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists-sandbox|category=no|Foobar|Wikipedia:Ignore all rules}} | |||
|- | |||
| "Basic" labels ("Singular" & "Plural") | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic|category=no|Foobar|Wikipedia:Ignore all rules}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-sandbox|category=no|Foobar|Wikipedia:Ignore all rules}} | |||
|- | |||
| "Basic" labels with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists|category=no|Foobar|Wikipedia:Ignore all rules}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists-sandbox|category=no|Foobar|Wikipedia:Ignore all rules}} | |||
|- | |||
| Extraclasses | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses|category=no|Foobar|Wikipedia:Ignore all rules}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses-sandbox|category=no|Foobar|Wikipedia:Ignore all rules}} | |||
|- | |||
| Namespace-based labels | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace|category=no|Foobar|Wikipedia:Ignore all rules}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace-sandbox|category=no|Foobar|Wikipedia:Ignore all rules}} | |||
|- | |||
|} | |||
==Mixed-namespace and nonexistent input== | |||
{| class="wikitable" | |||
|+ Mixed-namespace and nonexistent input test cases | |||
|- | |||
! scope="col" | Test case | |||
! scope="col" | Main output | |||
! scope="col" | Sandbox output | |||
|- | |||
| No template-level input | |||
| {{Module:Labelled list hatnote/testcases/template|test=default|category=no|Foobar|Wikipedia:Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=sandbox|category=no|Foobar|Wikipedia:Nonexistent page}} | |||
|- | |||
| "Universal" label | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal|category=no|Foobar|Wikipedia:Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-sandbox|category=no|Foobar|Wikipedia:Nonexistent page}} | |||
|- | |||
| "Universal" label with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists|category=no|Foobar|Wikipedia:Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists-sandbox|category=no|Foobar|Wikipedia:Nonexistent page}} | |||
|- | |||
| "Basic" labels ("Singular" & "Plural") | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic|category=no|Foobar|Wikipedia:Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-sandbox|category=no|Foobar|Wikipedia:Nonexistent page}} | |||
|- | |||
| "Basic" labels with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists|category=no|Foobar|Wikipedia:Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists-sandbox|category=no|Foobar|Wikipedia:Nonexistent page}} | |||
|- | |||
| Extraclasses | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses|category=no|Foobar|Wikipedia:Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses-sandbox|category=no|Foobar|Wikipedia:Nonexistent page}} | |||
|- | |||
| Namespace-based labels | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace|category=no|Foobar|Wikipedia:Nonexistent page}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace-sandbox|category=no|Foobar|Wikipedia:Nonexistent page}} | |||
|- | |||
|} | |||
==Six inputs and selfref feature== | |||
{| class="wikitable" | |||
|+ Six inputs and selfref feature test cases | |||
|- | |||
! scope="col" | Test case | |||
! scope="col" | Main output | |||
! scope="col" | Sandbox output | |||
|- | |||
| No template-level input | |||
| {{Module:Labelled list hatnote/testcases/template|test=default|category=no|One|Two|Three|Four|Five|Six|selfref=true}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=sandbox|category=no|One|Two|Three|Four|Five|Six|selfref=true}} | |||
|- | |||
| "Universal" label | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal|category=no|One|Two|Three|Four|Five|Six|selfref=true}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-sandbox|category=no|One|Two|Three|Four|Five|Six|selfref=true}} | |||
|- | |||
| "Universal" label with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists|category=no|One|Two|Three|Four|Five|Six|selfref=true}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists-sandbox|category=no|One|Two|Three|Four|Five|Six|selfref=true}} | |||
|- | |||
| "Basic" labels ("Singular" & "Plural") | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic|category=no|One|Two|Three|Four|Five|Six|selfref=true}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-sandbox|category=no|One|Two|Three|Four|Five|Six|selfref=true}} | |||
|- | |||
| "Basic" labels with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists|category=no|One|Two|Three|Four|Five|Six|selfref=true}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists-sandbox|category=no|One|Two|Three|Four|Five|Six|selfref=true}} | |||
|- | |||
| Extraclasses | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses|category=no|One|Two|Three|Four|Five|Six|selfref=true}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses-sandbox|category=no|One|Two|Three|Four|Five|Six|selfref=true}} | |||
|- | |||
| Namespace-based labels | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace|category=no|One|Two|Three|Four|Five|Six|selfref=true}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace-sandbox|category=no|One|Two|Three|Four|Five|Six|selfref=true}} | |||
|- | |||
|} | |||
==Parameter gaps== | |||
{| class="wikitable" | |||
|+ Parameter gaps test cases | |||
|- | |||
! scope="col" | Test case | |||
! scope="col" | Main output | |||
! scope="col" | Sandbox output | |||
|- | |||
| No template-level input | |||
| {{Module:Labelled list hatnote/testcases/template|test=default|category=no|| Fish | Spammnik | Nonexistent page | Europe | ||| Category:Volcanoes | zxcvbnmlk | Ships|||Russian people|Category:French politicians}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=sandbox|category=no|| Fish | Spammnik | Nonexistent page | Europe | ||| Category:Volcanoes | zxcvbnmlk | Ships|||Russian people|Category:French politicians}} | |||
|- | |||
| "Universal" label | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal|category=no|| Fish | Spammnik | Nonexistent page | Europe | ||| Category:Volcanoes | zxcvbnmlk | Ships|||Russian people|Category:French politicians}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-sandbox|category=no|| Fish | Spammnik | Nonexistent page | Europe | ||| Category:Volcanoes | zxcvbnmlk | Ships|||Russian people|Category:French politicians}} | |||
|- | |||
| "Universal" label with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists|category=no|| Fish | Spammnik | Nonexistent page | Europe | ||| Category:Volcanoes | zxcvbnmlk | Ships|||Russian people|Category:French politicians}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=universal-ifexists-sandbox|category=no|| Fish | Spammnik | Nonexistent page | Europe | ||| Category:Volcanoes | zxcvbnmlk | Ships|||Russian people|Category:French politicians}} | |||
|- | |||
| "Basic" labels ("Singular" & "Plural") | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic|category=no|| Fish | Spammnik | Nonexistent page | Europe | ||| Category:Volcanoes | zxcvbnmlk | Ships|||Russian people|Category:French politicians}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-sandbox|category=no|| Fish | Spammnik | Nonexistent page | Europe | ||| Category:Volcanoes | zxcvbnmlk | Ships|||Russian people|Category:French politicians}} | |||
|- | |||
| "Basic" labels with ifexists | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists|category=no|| Fish | Spammnik | Nonexistent page | Europe | ||| Category:Volcanoes | zxcvbnmlk | Ships|||Russian people|Category:French politicians}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=basic-ifexists-sandbox|category=no|| Fish | Spammnik | Nonexistent page | Europe | ||| Category:Volcanoes | zxcvbnmlk | Ships|||Russian people|Category:French politicians}} | |||
|- | |||
| Extraclasses | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses|category=no|| Fish | Spammnik | Nonexistent page | Europe | ||| Category:Volcanoes | zxcvbnmlk | Ships|||Russian people|Category:French politicians}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=extraclasses-sandbox|category=no|| Fish | Spammnik | Nonexistent page | Europe | ||| Category:Volcanoes | zxcvbnmlk | Ships|||Russian people|Category:French politicians}} | |||
|- | |||
| Namespace-based labels | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace|category=no|| Fish | Spammnik | Nonexistent page | Europe | ||| Category:Volcanoes | zxcvbnmlk | Ships|||Russian people|Category:French politicians}} | |||
| {{Module:Labelled list hatnote/testcases/template|test=namespace-sandbox|category=no|| Fish | Spammnik | Nonexistent page | Europe | ||| Category:Volcanoes | zxcvbnmlk | Ships|||Russian people|Category:French politicians}} | |||
|- | |||
|} | |||
[[Category:Module testcases]] | |||
[[Category:Module sand&test]] |
Latest revision as of 01:09, 14 March 2025
The below tables show the output as rendered through {{Module:Labelled list hatnote/testcases/template}}, which provides a set of template calls from the module and its sandbox version for comparison, corresponding to each table entry. Some details follow:
- "Universal" label means that only one label is provided, "Universal".
- "Basic" means that two labels are provided, "Singular" and "Plural" in that order.
- "with ifexists" means that the "ifexists" option is enabled for that test
- "Namespace-based labels" means that four labels are provided, "Main", "Mains", "Other", "Others", which allows the label to be based on the namespaces of the target titles: if any non-mainspace pages are targeted then "Other" or "Others" labels should be picked, and otherwise, "Main" or "Mains" labels should be picked.
No input
Test case | Main output | Sandbox output |
---|---|---|
No template-level input | Error: no page names specified (help). | Error: no page names specified (help). |
"Universal" label | Error: no page names specified (help). | Error: no page names specified (help). |
"Universal" label with ifexists | ||
"Basic" labels ("Singular" & "Plural") | Error: no page names specified (help). | Error: no page names specified (help). |
"Basic" labels with ifexists | ||
Extraclasses | Error: no page names specified (help). | Error: no page names specified (help). |
Namespace-based labels | Error: no page names specified (help). | Error: no page names specified (help). |
One existent input
Test case | Main output | Sandbox output |
---|---|---|
No template-level input | ||
"Universal" label | ||
"Universal" label with ifexists | ||
"Basic" labels ("Singular" & "Plural") | ||
"Basic" labels with ifexists | ||
Extraclasses | ||
Namespace-based labels |
One nonexistent input
Test case | Main output | Sandbox output |
---|---|---|
No template-level input | ||
"Universal" label | ||
"Universal" label with ifexists | ||
"Basic" labels ("Singular" & "Plural") | ||
"Basic" labels with ifexists | ||
Extraclasses | ||
Namespace-based labels |
Two existent inputs
Test case | Main output | Sandbox output |
---|---|---|
No template-level input | ||
"Universal" label | ||
"Universal" label with ifexists | ||
"Basic" labels ("Singular" & "Plural") | ||
"Basic" labels with ifexists | ||
Extraclasses | ||
Namespace-based labels |
One existent and one nonexistent input
Test case | Main output | Sandbox output |
---|---|---|
No template-level input | ||
"Universal" label | ||
"Universal" label with ifexists | ||
"Basic" labels ("Singular" & "Plural") | ||
"Basic" labels with ifexists | ||
Extraclasses | ||
Namespace-based labels |
Three existent inputs
Test case | Main output | Sandbox output |
---|---|---|
No template-level input | ||
"Universal" label | ||
"Universal" label with ifexists | ||
"Basic" labels ("Singular" & "Plural") | ||
"Basic" labels with ifexists | ||
Extraclasses | ||
Namespace-based labels |
Two existent inputs and one nonexistent
Test case | Main output | Sandbox output |
---|---|---|
No template-level input | ||
"Universal" label | ||
"Universal" label with ifexists | ||
"Basic" labels ("Singular" & "Plural") | ||
"Basic" labels with ifexists | ||
Extraclasses | ||
Namespace-based labels |
Display override
Test case | Main output | Sandbox output |
---|---|---|
No template-level input | ||
"Universal" label | ||
"Universal" label with ifexists | ||
"Basic" labels ("Singular" & "Plural") | ||
"Basic" labels with ifexists | ||
Extraclasses | ||
Namespace-based labels |
Single non-mainspace input
Test case | Main output | Sandbox output |
---|---|---|
No template-level input | ||
"Universal" label | ||
"Universal" label with ifexists | ||
"Basic" labels ("Singular" & "Plural") | ||
"Basic" labels with ifexists | ||
Extraclasses | ||
Namespace-based labels |
Mixed-namespace input
Test case | Main output | Sandbox output |
---|---|---|
No template-level input | ||
"Universal" label | ||
"Universal" label with ifexists | ||
"Basic" labels ("Singular" & "Plural") | ||
"Basic" labels with ifexists | ||
Extraclasses | ||
Namespace-based labels |
Mixed-namespace and nonexistent input
Test case | Main output | Sandbox output |
---|---|---|
No template-level input | ||
"Universal" label | ||
"Universal" label with ifexists | ||
"Basic" labels ("Singular" & "Plural") | ||
"Basic" labels with ifexists | ||
Extraclasses | ||
Namespace-based labels |
Six inputs and selfref feature
Test case | Main output | Sandbox output |
---|---|---|
No template-level input | ||
"Universal" label | ||
"Universal" label with ifexists | ||
"Basic" labels ("Singular" & "Plural") | ||
"Basic" labels with ifexists | ||
Extraclasses | ||
Namespace-based labels |
Parameter gaps
Test case | Main output | Sandbox output |
---|---|---|
No template-level input | ||
"Universal" label | ||
"Universal" label with ifexists | ||
"Basic" labels ("Singular" & "Plural") | ||
"Basic" labels with ifexists | ||
Extraclasses | ||
Namespace-based labels |