": {
"selser [2,0,0,4,[4,0],3,0]": "1m78266\n\nA [foo]\n\ng92zhb\n\n1sqtkvt[bar]\n\n"
},
"Erroneous refs": {
"wt2wt": "[Zero]\n\n[Also zero, but differently! (Normal ref)]\n\n\n\n\n\n\n\n\n\n",
"html2wt": "[Zero]\n\n[Also zero, but differently! (Normal ref)]\n\n\n\n\n\n\n\n\n",
"selser [0,0,4,2,4,0,0,3,0,0,0,0,0]": "[Zero]\n\nwie687\n\n1u7xv04\n\n1pm36tv\n\n\n\n\n\n\n\n",
"selser [3,2,0,0,1,2,0,0,1,0,0,2,0]": "1tb8tca\n\n[Also zero, but differently! (Normal ref)]\n\n\n\nl49cv6\n\n\n\n\n\nql4aqu\n\n",
"selser [0,3,0,0,0,2,0,0,1,0,0,3,0]": "[Zero]\n\n[Also zero, but differently! (Normal ref)]\n\n\n\n1if3p11\n\n\n\n\n\n",
"selser [2,0,4,3,4,4,0,0,0,3,0,0,0]": "1s759zl\n\n[Zero]\n\n1qgybr7\n\n1mfflfd\n\nruzy1u\n\n\n\n\n\n",
"selser [0,4,0,3,0,0,0,0,0,3,0,0,0]": "[Zero]\n\n1lc0182\n\n[Also zero, but differently! (Normal ref)]\n\n\n\n\n\n\n\n",
"selser [3,0,0,0,0,4,0,0,3,0,0,2,0]": "\n[Also zero, but differently! (Normal ref)]\n\n\n\nmg82zd\n\n\n\nxefmhr\n\n",
"selser [3,2,4,2,4,0,0,2,3,0,0,4,0]": "im3he0\n\njws5le\n\ngf9tte\n\nsqickf\n\n\n\n14jiq7o\n\n1i0xhb",
"selser [3,0,4,2,0,2,0,0,0,0,0,4,0]": "\n1to8jou\n\n1q4t40z\n\n\n\nh1kd4g\n\n\n\n\n\n2s6rnl",
"selser [0,0,1,0,0,4,0,3,1,2,0,4,0]": "[Zero]\n\n[Also zero, but differently! (Normal ref)]\n\n\n\nermh8y\n\n\n\n\n\n1lc73ob\n\nmzul4n",
"selser [1,0,0,3,1,3,1,0,2,0,0,4,0]": "[Zero]\n\n[Also zero, but differently! (Normal ref)]\n\n\n\n\n\ngmbpkw\n\n\n\n1xfh5g7",
"selser [2,0,3,2,0,0,2,3,4,0,0,0,0]": "mucbqr\n\n[Zero]\n\ni8peub\n\n\n\n1px26o6\n\n\n\n18pbxhl\n\n\n\n",
"selser [2,0,2,2,0,4,2,0,0,3,0,3,0]": "sqk5eb\n\n[Zero]\n\n4v5cn6\n\n[Also zero, but differently! (Normal ref)]\n\n1v6r6u9\n\n\n\n1nafanq\n\nc5qatn\n\n\n\n",
"selser [4,4,4,0,0,0,0,3,1,2,0,0,0]": "1devhdy\n\n1o3vfrh\n\n1hbzkdi\n\n\n\n\n\n\n\nqgk2ub\n\n\n\n",
"selser [0,0,2,0,2,2,2,4,0,0,0,2,0]": "[Zero]\n\n154g1s7\n\n[Also zero, but differently! (Normal ref)]\n\n1lzjdgw\n\n\n\nmycz92\n\n1phfm0r\n\n\n\n18223mm\n\n\n\nodszxr\n\n",
"selser [0,0,1,0,0,0,0,0,0,4,0,0,0]": "[Zero]\n\n[Also zero, but differently! (Normal ref)]\n\n\n\n\n\n\n\n1tejkzu\n\n",
"selser [0,0,0,3,0,2,2,3,1,0,0,2,0]": "[Zero]\n\n[Also zero, but differently! (Normal ref)]\n\n\n\narbfc9\n\n1nbyl9p\n\n\n\n\n\n19hld02\n\n"
},
"Grouped references with automatic group references generating errors": {
"selser [2,3,0,0,0,4,0]": "e7hpvx\n\nGROUP [theValue]\nGROUP3 [theValue3]\nGROUP2 [theValue2]\naDifferentNameGROUP3 [anotherValue3differentName]\naDifferentNameGROUP2 [anotherValue2DifferentName]\nanotherGROUP3 [anotherValue3]\naDifferentNameGROUP [anotherValueDifferentName]2qh34j",
"selser [[3,0,0,0,0,0,4,0,2,0,4,0,2,0],0,0,0,0,4,0]": "[theValue]\nGROUP3 [theValue3]\nGROUP2 [theValue2]1h4fq7t[anotherValue3differentName]z1cho3\naDifferentNameGROUP2 [anotherValue2DifferentName]1n1fwoa[anotherValue3]dy2vej\naDifferentNameGROUP [anotherValueDifferentName]\n1jop4wf",
"selser [[2,0,0,0,3,0,0,0,2,0,4,0,0,0],0,0,0,0,2,0]": "1o90mvqGROUP [theValue]\nGROUP3 [theValue3][theValue2]\naDifferentNameGROUP3 [anotherValue3differentName]rwewyu\naDifferentNameGROUP2 [anotherValue2DifferentName]1c8jkqj[anotherValue3]\naDifferentNameGROUP [anotherValueDifferentName]\nmikkul\n",
"selser [4,2,0,0,0,4,0]": "k6rbr\n\n1l7vu1\nemk1c5",
"selser [[4,0,3,0,0,0,4,0,4,0,0,0,0,0],0,0,0,0,4,0]": "16r1mvu[theValue][theValue3]\nGROUP2 [theValue2]nxohyj[anotherValue3differentName]vq18di[anotherValue2DifferentName]\nanotherGROUP3 [anotherValue3]\naDifferentNameGROUP [anotherValueDifferentName]\n125ihu5"
},
"Hoisting multiple references should keep references in order": {
"selser [0,2,0]": "[[Foo|hello [note 1][note 2]]][note 3]\n\nskll29\n",
"selser [2,3,0]": "ehf66i\n\n[[Foo|hello [note 1][note 2]]][note 3]",
"selser [[1,0,0,0],0,0]": "[[Foo|hello]] [note 3]\n",
"selser [[[3],0,0,0],0,0]": "[note 3]\n",
"selser [1,2,0]": "[[Foo|hello [note 1][note 2]]][note 3]\n\n1pnv3hs\n",
"selser [1,0,0]": "[[Foo|hello [note 1][note 2]]][note 3]\n",
"selser [2,2,0]": "1yhdskf\n\n[[Foo|hello [note 1][note 2]]][note 3]\n\n1px7rgk\n",
"selser [[[4],0,0,0],3,0]": "[[Foo|157cn7a]][note 3]",
"selser [2,0,0]": "w5ildv\n\n[[Foo|hello [note 1][note 2]]][note 3]\n",
"selser [[4,0,0,0],2,0]": "lyepzj[note 3]\n\n1yfhy9s\n",
"selser [[2,0,0,0],0,0]": "u6ocmx[[Foo|hello [note 1][note 2]]][note 3]\n",
"selser [0,3,0]": "[[Foo|hello [note 1][note 2]]][note 3]",
"selser [1,3,0]": "[[Foo|hello [note 1][note 2]]][note 3]",
"selser [[4,0,0,0],0,0]": "ycfpmk[note 3]\n",
"selser [2,4,0]": "kpn8qp\n\n[[Foo|hello [note 1][note 2]]][note 3]\n\n1wtlfei"
},
"Multiple definition (inside {{#tag:references}})": {
"wt2html": "[1]
\n\n",
"html2html": "Parsoid fails this right now
",
"html2wt": "Parsoid fails this right now"
},
"Numbers in the default group need to start with 1, independent from other groups": {
"wt2wt": "\n{{#tag:references|\n[a]\n|group=g}}\n[c]\n",
"html2html": "[g 1]
\n\n[1]
\n",
"html2wt": "\n{{#tag:references|[a]|group=g}}\n[c]\n",
"selser [3,0,0,3,1,2,0]": "\n{{#tag:references|\n[a]\n|group=g}}[c]\n\n1xkz57y\n",
"selser [3,0,0,2,3,0,0]": "\n{{#tag:references|\n[a]\n|group=g}}1x4tyf2\n\n",
"selser [2,3,0,2,0,0,0]": "1ej8t0v\n\n{{#tag:references|\n[a]\n|group=g}}o6on0l\n[c]",
"selser [0,2,0,0,0,2,0]": "\n\nwp6j9p\n{{#tag:references|\n[a]\n|group=g}}\n[c]\n\n1m3g9gg\n",
"selser [0,4,0,0,4,0,0]": "\n\n846wg0{{#tag:references|\n[a]\n|group=g}}\n1tw2u46\n",
"selser [1,2,0,0,2,0,0]": "\n\n1dzhsrl\n{{#tag:references|\n[a]\n|group=g}}\nu15f4n\n\n[c]",
"selser [1,3,0,0,0,2,0]": "{{#tag:references|\n[a]\n|group=g}}\n[c]\n\ntj4ehx\n",
"selser [0,3,0,0,2,3,0]": "{{#tag:references|\n[a]\n|group=g}}\n19ke34v\n\n[c]",
"selser [4,3,0,4,3,2,0]": "1vf4gg5{{#tag:references|\n[a]\n|group=g}}1wjax03\n\n17damaq\n",
"selser [0,2,0,0,3,0,0]": "\n\n1vwnk7l\n{{#tag:references|\n[a]\n|group=g}}\n\n",
"selser [0,4,0,0,0,4,0]": "\n\n1g99od4{{#tag:references|\n[a]\n|group=g}}\n[c]\n\n1i2uphk",
"selser [3,2,0,4,4,0,0]": "p1h0i7\n{{#tag:references|\n[a]\n|group=g}}1crdjyx\n\nqihif3\n",
"selser [4,0,0,0,3,4,0]": "xnuoja\n{{#tag:references|\n[a]\n|group=g}}\n1ymdh72",
"selser [0,3,0,3,0,0,0]": "{{#tag:references|\n[a]\n|group=g}}[c]",
"selser [3,0,0,0,4,0,0]": "\n{{#tag:references|\n[a]\n|group=g}}\n1a3ay78\n",
"selser [0,4,0,2,0,0,0]": "\n\n17oynrv{{#tag:references|\n[a]\n|group=g}}s8vyr4\n[c]",
"selser [0,0,0,3,0,0,0]": "\n{{#tag:references|\n[a]\n|group=g}}[c]",
"selser [1,3,0,4,0,0,0]": "{{#tag:references|\n[a]\n|group=g}}10qm2an\n\n[c]",
"selser [1,4,0,0,4,2,0]": "\n\n1yc2kkt{{#tag:references|\n[a]\n|group=g}}\nc66qyv\n\n1wkm9pr\n",
"selser [3,4,0,0,1,0,0]": "mhy3ux{{#tag:references|\n[a]\n|group=g}}\n[c]\n"
},
"Ref in ref: Multiple levels of nesting in parser function": {
"wt2wt": "one{{#tag:ref|two{{#tag:ref|three[four]}}}}\n",
"html2html": "one[3]
\n",
"html2wt": "one{{#tag:ref|two{{#tag:ref|three[four]}}}}\n",
"selser [1,3,0]": "one{{#tag:ref|two{{#tag:ref|three[four]}}}}",
"selser [[2,0],0,0]": "1wgx3mrone{{#tag:ref|two{{#tag:ref|three[four]}}}}\n",
"selser [3,4,0]": "ptpea2",
"selser [0,2,0]": "one{{#tag:ref|two{{#tag:ref|three[four]}}}}\n\n146aw4h\n",
"selser [1,2,0]": "one{{#tag:ref|two{{#tag:ref|three[four]}}}}\n\nmuirlr\n",
"selser [2,3,0]": "15wh805\n\none{{#tag:ref|two{{#tag:ref|three[four]}}}}",
"selser [0,4,0]": "one{{#tag:ref|two{{#tag:ref|three[four]}}}}\n\n1y91zqr",
"selser [3,2,0]": "1svt85k\n",
"selser [1,0,0]": "one{{#tag:ref|two{{#tag:ref|three[four]}}}}\n",
"selser [[2,0],4,0]": "1w1ehrkone{{#tag:ref|two{{#tag:ref|three[four]}}}}\n\n1rzhbj",
"selser [[4,0],0,0]": "1kpcg0a{{#tag:ref|two{{#tag:ref|three[four]}}}}\n",
"selser [4,0,0]": "bjgkkq\n",
"selser [3,0,0]": "\n",
"selser [[4,0],3,0]": "cf4u9w{{#tag:ref|two{{#tag:ref|three[four]}}}}",
"selser [4,4,0]": "kz18o0\n\n1kwzvny",
"selser [[4,0],2,0]": "lnwcib{{#tag:ref|two{{#tag:ref|three[four]}}}}\n\nhiy4zs\n",
"selser [[3,0],3,0]": "{{#tag:ref|two{{#tag:ref|three[four]}}}}",
"selser [[2,0],2,0]": "zht2igone{{#tag:ref|two{{#tag:ref|three[four]}}}}\n\n120d1kv\n",
"selser [2,2,0]": "grxmgx\n\none{{#tag:ref|two{{#tag:ref|three[four]}}}}\n\n18uph1n\n",
"selser [2,0,0]": "1qsn27t\n\none{{#tag:ref|two{{#tag:ref|three[four]}}}}"
},
"Ref: 12. ref-tags act as trailing newline migration barrier": {
"selser [4,[2],3,2,4,[4],3,0]": "7i6vwo\n\nfzf7t0a\n\n1cltg43\n\nb [foo]\n[bar]\n\n7vjkpr\n\n1vn32lo\n"
},
"Ref: 3. spaces in ref-names should be ignored": {
"wt2wt": "A [foo]\nB \nC \n",
"html2wt": "A [foo]\nB \nC \n",
"selser [[0,0,2,0,3,0],0,0]": "A [foo]bgo09a\nB \n",
"selser [[0,0,4,0,2,0],0,0]": "A [foo]zn8mshc5u3nz\nC \n",
"selser [[0,0,3,0,0,0],3,0]": "A [foo]\nC ",
"selser [[4,0,3,0,3,0],0,0]": "u3w7pb[foo]\n",
"selser [2,0,0]": "1jut7m6\n\nA [foo]\nB \nC \n",
"selser [[3,0,4,0,0,0],4,0]": "[foo]1c9mhyo\nC \n\n1f5a5xx",
"selser [1,2,0]": "A [foo]\nB \nC \n\n1d4omiq\n",
"selser [0,4,0]": "A [foo]\nB \nC \n\n8n56tv",
"selser [[4,0,2,0,0,0],0,0]": "av0irw[foo]63jwli\nB \nC \n",
"selser [[3,0,3,0,0,0],0,0]": "[foo]\nC \n",
"selser [[0,0,4,0,3,0],4,0]": "A [foo]1dkz2w8\n\nti4ywv",
"selser [[4,0,0,0,3,0],2,0]": "cvv2e[foo]\nB \n\n33wcuy\n",
"selser [[3,0,3,0,0,0],2,0]": "[foo]\nC \n\nkmsr29\n",
"selser [1,0,0]": "A [foo]\nB \nC \n",
"selser [[3,0,0,0,0,0],3,0]": "[foo]\nB \nC ",
"selser [[3,0,4,0,2,0],0,0]": "[foo]101p0793m6jc7\nC \n",
"selser [[0,0,0,0,4,0],0,0]": "A [foo]\nB baab28\n"
},
"Ref: 8. transclusion wikitext has lower precedence": {
"wt2wt": "A [ foo {{1x|] B C}}\n\n",
"html2html": "A [1] B C}}
\n",
"html2wt": "A [ foo {{1x|] B C}}\n",
"selser [[3,0,0],0,0]": "[ foo {{1x|] B C}}\n\n",
"selser [[3,0,0],3,0]": "[ foo {{1x|] B C}}",
"selser [0,2,0]": "A [ foo {{1x|] B C}}\n\n232wei\n\n",
"selser [[0,0,2],2,0]": "A [ foo {{1x|]lhhaci B C}}\n\n1rk0l3t\n\n",
"selser [1,4,0]": "A [ foo {{1x|] B C}}\n\nu9t9ud",
"selser [0,3,0]": "A [ foo {{1x|] B C}}",
"selser [[2,0,0],0,0]": "tz66ieA [ foo {{1x|] B C}}\n\n",
"selser [[2,0,4],0,0]": "1spohtmA [ foo {{1x|]fdorka\n\n",
"selser [0,4,0]": "A [ foo {{1x|] B C}}\n\n1hy11rc",
"selser [[4,0,3],4,0]": "1abu1po[ foo {{1x|]\n\n1ly2yt3",
"selser [1,0,0]": "A [ foo {{1x|] B C}}\n\n",
"selser [[3,0,0],2,0]": "[ foo {{1x|] B C}}\n\n733hyo\n\n",
"selser [[4,0,2],3,0]": "kfd1um[ foo {{1x|]1qghqn9 B C}}",
"selser [2,0,0]": "1g727md\n\nA [ foo {{1x|] B C}}\n\n",
"selser [[2,0,0],2,0]": "1afn0jkA [ foo {{1x|] B C}}\n\n11z3b8h\n\n",
"selser [[0,0,4],4,0]": "A [ foo {{1x|]1vutmtj\n\nd3igfs",
"selser [[4,0,2],4,0]": "196plys[ foo {{1x|]1jwbmk4 B C}}\n\n1k9iwxo"
},
"Ref: 9. unclosed comments should not leak out of ref-body": {
"wt2wt": "A [ foo ] B C\n",
"html2wt": "A [ foo ] B C\n",
"selser [2,3,0]": "5vqncy\n\nA [ foo ]