| 1 |
{ |
| 2 |
"Bracketed external links with template-generated invalid target": { |
| 3 |
"html2wt": "[http:/example.com title]\n" |
| 4 |
}, |
| 5 |
"External link containing double-single-quotes with no space separating the url from text in italics": { |
| 6 |
"wt2wt": "[http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm ''La muerte de Casagemas'' (1901) en el sitio de] [[Museo Picasso (París)|Museo Picasso]].", |
| 7 |
"html2html": "<p data-parsoid='{\"dsr\":[0,148,0,0]}'><a rel=\"mw:ExtLink nofollow\" href=\"http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm\" class=\"external text\" data-parsoid='{\"dsr\":[0,106,57,1]}'><i data-parsoid='{\"dsr\":[57,83,2,2]}'>La muerte de Casagemas</i> (1901) en el sitio de</a> <a rel=\"mw:WikiLink\" href=\"./Museo_Picasso_(París)\" title=\"Museo Picasso (París)\" data-parsoid='{\"stx\":\"piped\",\"a\":{\"href\":\"./Museo_Picasso_(París)\"},\"sa\":{\"href\":\"Museo Picasso (París)\"},\"dsr\":[107,147,25,2]}'>Museo Picasso</a>.</p>", |
| 8 |
"html2wt": "[http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm ''La muerte de Casagemas'' (1901) en el sitio de] [[Museo Picasso (París)|Museo Picasso]].", |
| 9 |
"selser [[0,1,1]]": "[http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].][[Museo Picasso (París)|Museo Picasso]]<span data-foobar=\"1lmpany\">.</span>", |
| 10 |
"selser [2]": "1r4naju\n\n[http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]", |
| 11 |
"selser [1]": "[http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]", |
| 12 |
"selser [[2,0,[2]]]": "1ofv5xv[http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]1kmhj1g.", |
| 13 |
"selser [[[[4],4],2,0]]": "[http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm ''1jcrszm''1f1q429]1oy44hz", |
| 14 |
"selser [[2,[3],[3]]]": "8vjz4m[http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]", |
| 15 |
"selser [[0,0,4]]": "[http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]1stqxbk", |
| 16 |
"selser [[[4,0],0,2]]": "[http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm 19o0ktc (1901) en el sitio de] <nowiki/>c90ms9", |
| 17 |
"selser [[[3,3],[4],0]]": "[http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm][[Museo Picasso (París)|1gixqgf]]", |
| 18 |
"selser [[[[2],0],2,0]]": "[http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm ''1vrlmbyLa muerte de Casagemas'' (1901) en el sitio de] 137cpyv", |
| 19 |
"selser [[0,[3],2]]": "[http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]j78yhf", |
| 20 |
"selser [[3,[3],2]]": "1760zbb", |
| 21 |
"selser [[1,3,0]]": "[http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm ''La muerte de Casagemas'' (1901) en el sitio de] ", |
| 22 |
"selser [[4,0,3]]": "16kyf0l", |
| 23 |
"selser [[[1,2],2,4]]": "[http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm ''La muerte de Casagemas''hafj2q (1901) en el sitio de] 17q070l1omkplm" |
| 24 |
}, |
| 25 |
"External links: [encoded ampersand]": { |
| 26 |
"metadata": "" |
| 27 |
}, |
| 28 |
"External links: [encoded equals] (T8102)": { |
| 29 |
"metadata": "" |
| 30 |
}, |
| 31 |
"External links: [raw ampersand]": { |
| 32 |
"html2wt": "Old & use: [http://x&y]", |
| 33 |
"metadata": "" |
| 34 |
}, |
| 35 |
"External links: [raw equals]": { |
| 36 |
"metadata": "" |
| 37 |
}, |
| 38 |
"External links: encoded ampersand": { |
| 39 |
"html2wt": "Old & use: http://x&y", |
| 40 |
"metadata": "" |
| 41 |
}, |
| 42 |
"External links: encoded equals (T8102)": { |
| 43 |
"html2wt": "http://example.com/?foo=bar", |
| 44 |
"metadata": "" |
| 45 |
}, |
| 46 |
"External links: multiple legal whitespace is fine, Magnus. Don't break it please. (T7081)": { |
| 47 |
"wt2wt": "[http://www.example.com test]", |
| 48 |
"html2wt": "[http://www.example.com test]\n", |
| 49 |
"selser [2]": "1qcijn9\n\n[http://www.example.com test]", |
| 50 |
"selser [[2]]": "7sl362[http://www.example.com test]", |
| 51 |
"selser [1]": "[http://www.example.com test]" |
| 52 |
}, |
| 53 |
"External links: non-bracketed": { |
| 54 |
"metadata": "" |
| 55 |
}, |
| 56 |
"External links: raw ampersand": { |
| 57 |
"html2wt": "Old & use: http://x&y\n", |
| 58 |
"metadata": "" |
| 59 |
}, |
| 60 |
"IPv6 urls, autolink format (T23261)": { |
| 61 |
"html2wt": "http://[2404:130:0:1000::187:2]/index.php\n\nExamples from RFC 2373, section 2.2:\n\n* http://[1080::8:800:200C:417A]/unicast\n* http://[FF01::101]/multicast\n* http://[::1]/loopback\n* http://[::]/unspecified\n* http://[::13.1.68.3]/ipv4compat\n* http://[::FFFF:129.144.52.38]/ipv4compat\n\nExamples from RFC 2732, section 2:\n\n* http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html\n* http://[1080:0:0:0:8:800:200C:417A]/index.html\n* http://[3ffe:2a00:100:7031::1]\n* http://[1080::8:800:200C:417A]/foo\n* http://[::192.9.5.5]/ipng\n* http://[::FFFF:129.144.52.38]:80/index.html\n* http://[2010:836B:4179::836B:4179]" |
| 62 |
}, |
| 63 |
"IPv6 urls, bracketed format (T23261)": { |
| 64 |
"html2wt": "[http://[2404:130:0:1000::187:2]/index.php test]\n\nExamples from RFC 2373, section 2.2:\n\n* [http://[1080::8:800:200C:417A] unicast]\n* [http://[FF01::101] multicast]\n* [http://[::1]/ loopback]\n* [http://[::] unspecified]\n* [http://[::13.1.68.3] ipv4compat]\n* [http://[::FFFF:129.144.52.38] ipv4compat]\n\nExamples from RFC 2732, section 2:\n\n* [http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html 1]\n* [http://[1080:0:0:0:8:800:200C:417A]/index.html 2]\n* [http://[3ffe:2a00:100:7031::1] 3]\n* [http://[1080::8:800:200C:417A]/foo 4]\n* [http://[::192.9.5.5]/ipng 5]\n* [http://[::FFFF:129.144.52.38]:80/index.html 6]\n* [http://[2010:836B:4179::836B:4179] 7]" |
| 65 |
}, |
| 66 |
"T2289: \">\"-token in bracketed URL": { |
| 67 |
"wt2wt": "[http://www.example.com/ <hello> stuff]", |
| 68 |
"html2wt": "[http://www.example.com/ <hello> stuff]\n", |
| 69 |
"selser [1]": "[http://www.example.com/<hello> stuff]", |
| 70 |
"selser [2]": "19ih7dw\n\n[http://www.example.com/<hello> stuff]", |
| 71 |
"selser [[2]]": "eoq4sv[http://www.example.com/<hello> stuff]" |
| 72 |
}, |
| 73 |
"T2289: literal \">\"-token in bracketed URL": { |
| 74 |
"wt2wt": "[http://www.example.com/ <b>html</b> stuff]", |
| 75 |
"html2wt": "[http://www.example.com/ '''html''' stuff]\n", |
| 76 |
"selser [1]": "[http://www.example.com/<b>html</b> stuff]", |
| 77 |
"selser [2]": "qyoqs5\n\n[http://www.example.com/<b>html</b> stuff]", |
| 78 |
"selser [[2]]": "ls4uur[http://www.example.com/<b>html</b> stuff]" |
| 79 |
}, |
| 80 |
"T2289: literal double quote in bracketed URL": { |
| 81 |
"wt2wt": "[http://www.example.com/ \"hello\" stuff]", |
| 82 |
"html2wt": "[http://www.example.com/ \"hello\" stuff]\n", |
| 83 |
"selser [2]": "yc0ilp\n\n[http://www.example.com/\"hello\" stuff]", |
| 84 |
"selser [1]": "[http://www.example.com/\"hello\" stuff]", |
| 85 |
"selser [[2]]": "1yr3lpy[http://www.example.com/\"hello\" stuff]" |
| 86 |
}, |
| 87 |
"URL-encoding in URL functions (multiple parameters)": { |
| 88 |
"html2wt": "/index.php?title=Some_page&q=?&=&\n" |
| 89 |
}, |
| 90 |
"URL-encoding in URL functions (single parameter)": { |
| 91 |
"html2wt": "/index.php?title=Some_page&=&\n" |
| 92 |
}, |
| 93 |
"mw:ExtLink linking to a interwiki URL can be round-tripped losslessly (T94723)": { |
| 94 |
"selser [[[4]]]": "[[:en:European_Robin|1g3q1dd]]", |
| 95 |
"selser [[[2]]]": "[[:en:European_Robin|8u2ng6European Robin]]" |
| 96 |
} |
| 97 |
} |