Module:Labelled list hatnote/testcases
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 | Error: no page names specified (help). | Error: no page names specified (help). |
| "Basic" labels ("Singular" & "Plural") | Error: no page names specified (help). | Error: no page names specified (help). |
| "Basic" labels with ifexists | Error: no page names specified (help). | Error: no page names specified (help). |
| 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 |
Single section anchor 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 |
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.