!! options version=2 parsoid-compatible=html2wt !! end # VE does emit output that's not for Paroid round-tripping but just for converting back to Wikitext # These tests should cover cases regarding that # See T396017 and T400038 !! test VE: List defined references convert back to valid Wikitext !! wikitext Default FooNew Bar !! html/parsoid

1. Default
2. FooNew
3. Bar

!! end # See T396017 !! test VE: Neither wrapping nor order matter in VEs references HTML output !! wikitext Default FooNew Bar !! html/parsoid

Bar FooNew Default
!! end !! test VE Converter: mw:Reference with comment !! wikitext Foo !! html/parsoid

!! end !! test VE Converter: mw:Reference: Simple reference re-use (T296044) !! wikitext Foo[[Bar]]Baz !! html/parsoid

FooBaz

!! end # FIXME: I guess the empty will be cleaned up by Parsoid later? !! test VE Converter: Simple ref reuse !! wikitext Body Text !! html/parsoid

[1] Text [1]

1. 1 2 Body

!! end # FIXME: I guess the empty will be cleaned up by Parsoid later? !! test VE Converter: Simple ref reuse ( delete ref ) !! wikitext Text Body !! html/parsoid

Text [1]

1. 1 2 Body

!! end !! test VE Converter: Simple main ref including details !! wikitext Miller !! html/parsoid

[1.1]

1. Miller
   1. page. 123

!! end !! test VE Converter: Simple main ref including details ( edits on main and details ) !! wikitext Miller NEW !! html/parsoid

[1.1]

1. Miller NEW
   1. page. 123 NEW

!! end !! test VE Converter: Simple template in refs !! wikitext {{Cite|author=Miller|title=Foo}} {{Cite|author=Smith|title=Bar}} !! html/parsoid

[1] [2]

1. ↑ Template:Cite
2. ↑ Template:Cite

!! end !! test VE Converter: Simple template in refs ( edits on template parameters ) !! wikitext {{Cite|author=Miller|title=Foo New}} {{Cite|author=Smith|title=Bar New}} !! html/parsoid

[1] [2]

!! end !! test VE Converter: Moving main content from subref !! wikitext Miller !! html/parsoid

[1.1] [1.2] [1]

1. Miller
   1. page 1
   2. page 2

!! end !! test VE Converter: Moving main content from subref ( delete subref providing the main ) !! wikitext Miller !! html/parsoid

[1.1] [1]

1. Miller
   1. page 1

!! end !! test VE Converter: Moving main content from subref ( delete all subrefs ) !! wikitext Miller !! html/parsoid

[1]

1. Miller

!! end !! test VE Converter: Moving main content from subref ( delete subref providing the main and other reuse ) !! wikitext Miller !! html/parsoid

[1.1]

1. Miller
   1. page 1

!! end !! test VE Converter: Delete main used by sub !! wikitext Miller !! html/parsoid

[1] [1.1]

1. ↑ Miller
   1. ↑ page 1

!! end !! test VE Converter: Delete main used by sub ( delete main ref ) !! wikitext Miller !! html/parsoid

[1.1]

1. Miller
   1. page 1

!! end !! test VE Converter: Main plus details with duplicate main content !! wikitext Miller Miller !! html/parsoid

[1.1] [1.2]

1. Miller
   1. page 1
   2. page 2

!! end !! test VE Converter: Main plus details with duplicate main content ( edit main ) !! wikitext Miller NEW Miller NEW !! html/parsoid

[1.1] [1.2]

1. Miller NEW
   1. page 1
   2. page 2

!! end !! test VE Converter: List-defined references with default and custom group !! wikitext Default group content Custom group content Custom group content other !! html/parsoid

[1] [g 1] [g 2]

1. ↑ Default group content

1. ↑ Custom group content
2. ↑ Custom group content other

!! end !! test VE Converter: List-defined references with default and custom group ( edit custom ldr ) !! wikitext Default group content Custom group content NEW Custom group content other !! html/parsoid

[1] [g 1] [g 2]

1. ↑ Default group content

1. Custom group content NEW
2. Custom group content other

!! end !! test VE Converter: Two main refs with content !! wikitext Miller !! html/parsoid

[1][1]

1. 1 2 Miller

!! end #FIXME ideally the main content does not move around here T404089 !! test VE Converter: Two main refs with content ( convert both to sub-refs ) !! wikitext Miller !! html/parsoid

[1.1][1.2]

1. Miller
   1. page 1
   2. page 2

!! end !! test VE Converter: Two main refs with content ( adding two fresh sub-refs ) !! wikitext Miller Smith !! html/parsoid

[1][1][2.1][2.2]

1. Miller
2. Smith
   1. page 3
   2. page 4

!! end !! test VE Converter with store: List defined references and details !! wikitext Default Main Foo Bar !! html/parsoid

[1] [2] [3] [4.1]

1. Default
2. Foo
3. Bar
4. Main
   1. page 123

!! end !! test VE Converter with store: List defined references and details ( editing main and details ) !! wikitext Default Main NEW Foo Bar !! html/parsoid

[1] [2] [3] [4.1]

1. Default
2. Foo
3. Bar
4. Main NEW
   1. page 123 NEW

!! end