!! options version=2 parsoid-compatible=wt2html !! end !! test Self-closing tag: !! wikitext !! html/php !! html/parsoid

!! end !! test Empty tag: !! wikitext !! html/php !! html/parsoid

!! end !! test Empty function: {{#categorytree:}} !! wikitext {{#categorytree:}} !! html/php !! html/parsoid

!! end !! test Tag with Unknown category: Unknown category !! wikitext Unknown category !! html/php
Category Unknown category not found
!! html/parsoid
Category Unknown category not found
!! end !! test Function with Unknown category: {{#categorytree:Unknown category}} !! wikitext {{#categorytree:Unknown category}} !! html/php
Category Unknown category not found
!! html/parsoid
Category Unknown category not found
!! end !! test Tag with Unknown category and parameters: Unknown category !! wikitext Unknown category !! html/php
Category Unknown category not found
!! html/parsoid
Category Unknown category not found
!! end !! article Category:CategoryTree test category !! text !! endarticle !! test Tag with Category:CategoryTree test category !! wikitext CategoryTree test category !! html/php !! html/parsoid
no subcategories
!! end !! article Category:CategoryTree test category 2 !! text !! endarticle !! test Tag with Category:CategoryTree test category 2 and hideroot=1 !! wikitext CategoryTree test category 2 !! html/php
!! html/parsoid
!! end !! article Category:CategoryTree root !! text !! endarticle !! article Category:CategoryTree 1 !! text [[Category:CategoryTree root]] !! endarticle !! article Category:CategoryTree 2 !! text [[Category:CategoryTree root]] !! endarticle !! test Tag with CategoryTree root and two subcategories !! wikitext CategoryTree root !! html/php !! html/parsoid !! end