!! options parsoid-compatible=wt2html,wt2wt version=2 !! end !! test When ParsoidExperimentalParserFunctionOutput is enabled, Parsoid should generate v3.x HTML for parser functions !! config wgParsoidExperimentalParserFunctionOutput=true !! wikitext a {{#if:foo|bar|baz}} b !! html/parsoid

a bar b

!! end !! test When ParsoidExperimentalParserFunctionOutput is disabled, Parsoid should generate v2.x HTML for parser functions !! config wgParsoidExperimentalParserFunctionOutput=false !! wikitext a {{#if:foo|bar|baz}} b !! html/parsoid

a bar b

!! end !! test Handle comments around the function name for v3 parser functions !! config wgParsoidExperimentalParserFunctionOutput=true !! wikitext a {{#if:foo|bar|baz}} b !! html/parsoid

a bar b

!! end