Jump to content
Wikipedia The Free Encyclopedia

Module:Labelled list hatnote/testcases

From Wikipedia, the free encyclopedia

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

[edit ]
No-input test cases
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

[edit ]
One existent input test cases
Test case Main output Sandbox output
No template-level input
See also: Foobar
See also: Foobar
"Universal" label
Universal: Foobar
Universal: Foobar
"Universal" label with ifexists
Universal: Foobar
Universal: Foobar
"Basic" labels ("Singular" & "Plural")
Singular: Foobar
Singular: Foobar
"Basic" labels with ifexists
Singular: Foobar
Singular: Foobar
Extraclasses
Singular: Foobar
Singular: Foobar
Namespace-based labels
Main: Foobar
Main: Foobar

One nonexistent input

[edit ]
One nonexistent input test cases
Test case Main output Sandbox output
No template-level input
See also: Nonexistent page
See also: Nonexistent page
"Universal" label
Universal: Nonexistent page
Universal: Nonexistent page
"Universal" label with ifexists
"Basic" labels ("Singular" & "Plural")
Singular: Nonexistent page
Singular: Nonexistent page
"Basic" labels with ifexists
Extraclasses
Singular: Nonexistent page
Singular: Nonexistent page
Namespace-based labels

Two existent inputs

[edit ]
Two existent inputs test cases
Test case Main output Sandbox output
No template-level input
See also: Foo and Bar
See also: Foo and Bar
"Universal" label
Universal: Foo and Bar
Universal: Foo and Bar
"Universal" label with ifexists
Universal: Foo and Bar
Universal: Foo and Bar
"Basic" labels ("Singular" & "Plural")
Plural: Foo and Bar
Plural: Foo and Bar
"Basic" labels with ifexists
Plural: Foo and Bar
Plural: Foo and Bar
Extraclasses
Plural: Foo and Bar
Plural: Foo and Bar
Namespace-based labels
Mains: Foo and Bar
Mains: Foo and Bar

One existent and one nonexistent input

[edit ]
One existent and one nonexistent input test cases
Test case Main output Sandbox output
No template-level input
See also: Foo and Nonexistent page
See also: Foo and Nonexistent page
"Universal" label
Universal: Foo and Nonexistent page
Universal: Foo and Nonexistent page
"Universal" label with ifexists
Universal: Foo
Universal: Foo
"Basic" labels ("Singular" & "Plural")
Plural: Foo and Nonexistent page
Plural: Foo and Nonexistent page
"Basic" labels with ifexists
Singular: Foo
Singular: Foo
Extraclasses
Plural: Foo and Nonexistent page
Plural: Foo and Nonexistent page
Namespace-based labels
Mains: Foo and Nonexistent page
Mains: Foo and Nonexistent page

Three existent inputs

[edit ]
Three existent inputs test cases
Test case Main output Sandbox output
No template-level input
See also: Foo, Bar, and Baz
See also: Foo, Bar, and Baz
"Universal" label
Universal: Foo, Bar, and Baz
Universal: Foo, Bar, and Baz
"Universal" label with ifexists
Universal: Foo, Bar, and Baz
Universal: Foo, Bar, and Baz
"Basic" labels ("Singular" & "Plural")
Plural: Foo, Bar, and Baz
Plural: Foo, Bar, and Baz
"Basic" labels with ifexists
Plural: Foo, Bar, and Baz
Plural: Foo, Bar, and Baz
Extraclasses
Plural: Foo, Bar, and Baz
Plural: Foo, Bar, and Baz
Namespace-based labels
Mains: Foo, Bar, and Baz
Mains: Foo, Bar, and Baz

Two existent inputs and one nonexistent

[edit ]
Two existent inputs and one nonexistent test cases
Test case Main output Sandbox output
No template-level input
See also: Foo, Nonexistent page, and Bar
See also: Foo, Nonexistent page, and Bar
"Universal" label
Universal: Foo, Nonexistent page, and Bar
Universal: Foo, Nonexistent page, and Bar
"Universal" label with ifexists
Universal: Foo and Bar
Universal: Foo and Bar
"Basic" labels ("Singular" & "Plural")
Plural: Foo, Nonexistent page, and Bar
Plural: Foo, Nonexistent page, and Bar
"Basic" labels with ifexists
Plural: Foo and Bar
Plural: Foo and Bar
Extraclasses
Plural: Foo, Nonexistent page, and Bar
Plural: Foo, Nonexistent page, and Bar
Namespace-based labels
Mains: Foo, Nonexistent page, and Bar
Mains: Foo, Nonexistent page, and Bar

Display override

[edit ]
Display override test cases
Test case Main output Sandbox output
No template-level input
See also: One, Two, and Three
See also: One, Two, and Three
"Universal" label
Universal: One, Two, and Three
Universal: One, Two, and Three
"Universal" label with ifexists
Universal: One and Three
Universal: One and Three
"Basic" labels ("Singular" & "Plural")
Plural: One, Two, and Three
Plural: One, Two, and Three
"Basic" labels with ifexists
Plural: One and Three
Plural: One and Three
Extraclasses
Plural: One, Two, and Three
Plural: One, Two, and Three
Namespace-based labels
Mains: One, Two, and Three
Mains: One, Two, and Three

Single non-mainspace input

[edit ]
Single non-mainspace input test cases
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

[edit ]
Mixed-namespace test cases
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

[edit ]
Mixed-namespace and nonexistent input test cases
Test case Main output Sandbox output
No template-level input
"Universal" label
"Universal" label with ifexists
Universal: Foobar
Universal: Foobar
"Basic" labels ("Singular" & "Plural")
"Basic" labels with ifexists
Singular: Foobar
Singular: Foobar
Extraclasses
Namespace-based labels

Six inputs and selfref feature

[edit ]
Six inputs and selfref feature test cases
Test case Main output Sandbox output
No template-level input
See also: One, Two, Three, Four, Five, and Six
See also: One, Two, Three, Four, Five, and Six
"Universal" label
Universal: One, Two, Three, Four, Five, and Six
Universal: One, Two, Three, Four, Five, and Six
"Universal" label with ifexists
Universal: One, Two, Three, Four, Five, and Six
Universal: One, Two, Three, Four, Five, and Six
"Basic" labels ("Singular" & "Plural")
Plural: One, Two, Three, Four, Five, and Six
Plural: One, Two, Three, Four, Five, and Six
"Basic" labels with ifexists
Plural: One, Two, Three, Four, Five, and Six
Plural: One, Two, Three, Four, Five, and Six
Extraclasses
Plural: One, Two, Three, Four, Five, and Six
Plural: One, Two, Three, Four, Five, and Six
Namespace-based labels
Mains: One, Two, Three, Four, Five, and Six
Mains: One, Two, Three, Four, Five, and Six

Parameter gaps

[edit ]
Parameter gaps test cases
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

AltStyle によって変換されたページ (->オリジナル) /