#################################################################### # MY TESTS # BEGIN HERE !! article Template:deadcats !! text This template has cats[[Category:Foo]]That will not appear !! endarticle !! article Template:livecats !! text This template has cats[[Category:Bar]]That will appear !! endarticle # Creating the cats cleans up the output code !! article Category:Foo !! text Foo !! endarticle !! article Category:Bar !! text Bar !! endarticle !! article Category:Lorem !! text Lorem !! endarticle !! article Category:Ipsum !! text Ipsum !! endarticle !! test nocat1 !! options cat !! input {{nocat:deadcats}} !! result !! end !! test nocat2 !! input {{livecats}} !! result

This template has catsThat will appear

!! end # Test both !! test nocat3 !! input {{nocat:deadcats}} {{livecats}} !! result

This template has catsThat will not appear This template has catsThat will appear

!! end # Now with the cat option !! test nocat4 !! options cat !! input {{nocat:deadcats}} {{livecats}} !! result Bar !! end # MY TESTS END HERE!! ####################################################################