Jump to content

Module talk:Suppress categories/testcases

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

4 of 14 tests failed.

test_main
Text Expected Actual
checkY {{#invoke:Suppress categories|main|foo}} foo foo
checkY {{#invoke:Suppress categories|main|foo[[Category:Some category]]}} foo foo
checkY {{#invoke:Suppress categories|main|foo[[Category:Some category]]bar[[Category:Another category]]}} foobar foobar
checkY {{#invoke:Suppress categories|main|foo{{{some_parameter|[[Category:Bar]]}}}}} foo foo
checkY {{#invoke:Suppress categories|main|foo[[Category:Bad ca[]tegory link]]}} foo[[Category:Bad ca[]tegory link]] foo[[Category:Bad ca[]tegory link]]
checkY {{#invoke:Suppress categories|main|foo[[:Category:Colon trick]]}} foo[[:Category:Colon trick]] foo[[:Category:Colon trick]]
checkY {{#invoke:Suppress categories|main|foo[[Category:Piped link|bar]]}} foo foo
checkY {{#invoke:Suppress categories|main|foo[[Category:Piped link|ba[]r]]}} foo foo
checkY {{#invoke:Suppress categories|main|foo[[non-category link]]}} foo[[non-category link]] foo[[non-category link]]
checkY {{#invoke:Suppress categories|main|foo[[ Category : Some category with spaces ]]}} foo foo
test_nested
Text Expected Actual
☒N {{#invoke:Suppress categories|main|[[Category:Fo[[Category:Bar]]o]]}} [[Category:Fo<span style="display: none;">[[]]</span>o]] [[Category:Fo[[Category:Bar]]o]]
☒N {{#invoke:Suppress categories|main|[[Category:Foo|b[[Category:Baz]]ar]]}} [[Category:Foo|b<span style="display: none;">[[]]</span>ar]] ar]]
☒N {{#invoke:Suppress categories|main|[[Category:Foo|ba[[Category:Baz|ba[[Category:Foobar|Bazbat]]m]]r]]}} [[Category:Foo|ba[[Category:Baz|ba<span style="display: none;">[[]]</span>m]]r]] m]]r]]
☒N {{#invoke:Suppress categories|main|[[Category:Foo|b[a[[Category:Baz|bam]]r]]}} [[Category:Foo|b[a<span style="display: none;">[[]]</span>r]] r]]

Start a discussion about improving the Module:Suppress categories/testcases page

Start a discussion