!! 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 # FIXME: I guess the empty will be cleaned up by Parsoid later? !! test VE Converter: Duplicate main content !! wikitext Miller Miller !! html/parsoid

[1] [1] [1]

1. 1 2 3 Miller

!! end # FIXME: I guess the empty will be cleaned up by Parsoid later? !! test VE Converter: Duplicate main content ( changing the main content ) !! wikitext Miller NEW Miller !! html/parsoid

[1] [1] [1]

1. 1 2 3 Miller

!! end !! test VE Converter: Simple main ref including details !! config wgCiteSubReferencing=true !! 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 ) !! config wgCiteSubReferencing=true !! 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 !! config wgCiteSubReferencing=true !! 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 ) !! config wgCiteSubReferencing=true !! wikitext Miller !! html/parsoid

[1.1] [1]

1. Miller
   1. page 1

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

[1]

1. Miller

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

[1.1]

1. Miller
   1. page 1

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

[1] [1.1]

1. Miller
   1. page 1

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

[1.1]

1. Miller
   1. page 1

!! end !! test VE Converter: Main plus details with duplicate main content !! config wgCiteSubReferencing=true !! 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 ) !! config wgCiteSubReferencing=true !! 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 !! test VE Converter: Two main refs with content ( convert both to sub-refs one at a time ) !! config wgCiteSubReferencing=true !! wikitext Miller !! html/parsoid

[1.1][1.2]

1. Miller
   1. page 1
   2. page 2

!! end !! test VE Converter: Sub-re reuse !! wikitext Miller !! html/parsoid

[1.1][1.1]

1. Miller
   1. page 1

!! end !! test VE Converter: Main plus details with {{reflist}} !! wikitext main plus details (body) {{Reflist}} !! html/parsoid

[1.1]

1. main plus details (body)
   1. ↑ p. 123

!! end # FIXME Main plus details ref should not vanish T395083 !! test VE Converter: Main plus details with {{reflist}}, deleted reflist !! wikitext !! html/parsoid

[1.1]

!! end # FIXME Main content should not be copied into the template T419035 !! test VE Converter: Template-generated main plus details !! wikitext {{1x|Miller}} Miller !! html/parsoid

[1.1] [1]

1. Miller

!! end !! test VE Converter: Template-generated main plus details; delete template !! wikitext Miller !! html/parsoid

[1]

1. Miller

!! end !! test VE Converter with store: List defined references and details !! config wgCiteSubReferencing=true !! 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 ) !! config wgCiteSubReferencing=true !! 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