!! Version 2 !! article Template:1x !! text {{{1}}} !! endarticle !! article Template:T1 !! text
foo
!! endarticle ## This is actually a test of paragraph-wrapping to make sure it doesn't ## combine transparent nodes from multiple tranclusions into a p-wrapper. ## But, since the expectation is on template wrapping in Parsoid, we are ## add this test in this file. !! test Ensure that template encapsulation doesn't wrap multiple templates into a single unit !! options parsoid=wt2html !! wikitext {{T1}}{{T1}} !! html/parsoid
foo
foo
!! end ## This test demonstrates the pass ordering issue documented ## in the commit message of 9145f812 and ensures any future ## refactoring doesn't regress on this behavior. !! test Ensure that template encapsulation doesn't unnecessarily expand wrapping scope !! options parsoid=wt2html !! wikitext a b {{1x|c
d
}} !! html/parsoid

a

b

c

d
!! end