X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fparser%2FparserTests.txt;h=ab79b5940908d4ea586a235770f245af23105b87;hb=956c2430c7b8fceb289aaeacc8d6c2e0def2c56e;hp=041b40f1494ba264472f98ba332955a9354d4627;hpb=28c96dbb83a27f23d1295a9cd621f9ba7a1462ff;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 041b40f149..ab79b59409 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -8741,6 +8741,19 @@ Blah blah blah zh : Chinese

!! end +!! test +Multiple colons escaping interlanguage links +!! wikitext +[[:es:Spanish]] +[[::es:Spanish]] +[[:::es:Spanish]] +!! html/php +

es:Spanish +[[::es:Spanish]] +[[:::es:Spanish]] +

+!! end + ## parsoid html2wt will normalize the space to _ !! test Space and question mark encoding in interlanguage links (T95473) @@ -28351,3 +28364,166 @@ wgRawHtml=1 !! end + +!! test +Decoding of HTML entities in headings and links for IDs and link fragments (T103714) +!! wikitext +== A&B&C&D&E == +[[#A&B&C&D&E]] +!! html/php +

A&B&C&D&E[edit]

+

#A&B&C&D&E +

+!! end + +!! test +Decoding of HTML entities in indicator names for IDs (T104196) +!! options +showindicators +!! wikitext +Indicator +!! html/php +1&2&3&4&amp;5=Indicator + +!! end + +!! test +HTML5 ids: fallback to legacy +!! config +wgFragmentMode=[ 'html5', 'legacy' ] +!! wikitext +== Foo bar == + +== foo Bar == + +== Тест == + +== Тест == + +== тест == + +== Hey < # " > % : ' == +[[#Foo bar]] [[#foo Bar]] [[#Тест]] [[#тест]] [[#Hey < # " > % : ']] + +{{anchorencode:💩}} + + +[[#啤酒]] [[#%E5%95%A4%E9%85%92]] + +!! html/php +

Contents

+ +
+ +

Foo bar[edit]

+

foo Bar[edit]

+

Тест[edit]

+

Тест[edit]

+

тест[edit]

+

Hey < # " > % : '[edit]

+

#Foo bar #foo Bar #Тест #тест #Hey < # " > % : ' +

%F0%9F%92%A9 +

#啤酒 #啤酒 +

+!! end + +!! test +HTML5 ids: legacy with a fallback to modern +!! config +wgFragmentMode=[ 'legacy', 'html5' ] +!! wikitext +== Foo bar == + +== foo Bar == + +== Тест == + +== Тест == + +== тест == + +== Hey < # " > % : ' == +[[#Foo bar]] [[#foo Bar]] [[#Тест]] [[#тест]] [[#Hey < # " > % : ']] + +{{anchorencode:💩}} + + +[[#啤酒]] [[#%E5%95%A4%E9%85%92]] + +!! html/php +

Contents

+ +
+ +

Foo bar[edit]

+

foo Bar[edit]

+

Тест[edit]

+

Тест[edit]

+

тест[edit]

+

Hey < # " > % : '[edit]

+

#Foo bar #foo Bar #Тест #тест #Hey < # " > % : ' +

.F0.9F.92.A9 +

#啤酒 #啤酒 +

+!! end + +!! test +HTML5 ids: no legacy +!! config +wgFragmentMode=[ 'html5' ] +!! wikitext +== Foo bar == + +== foo Bar == + +== Тест == + +== Тест == + +== тест == + +== Hey < # " > % : ' == +[[#Foo bar]] [[#foo Bar]] [[#Тест]] [[#тест]] [[#Hey < # " > % : ']] + +{{anchorencode:💩}} + + +[[#啤酒]] [[#%E5%95%A4%E9%85%92]] + +!! html/php +

Contents

+ +
+ +

Foo bar[edit]

+

foo Bar[edit]

+

Тест[edit]

+

Тест[edit]

+

тест[edit]

+

Hey < # " > % : '[edit]

+

#Foo bar #foo Bar #Тест #тест #Hey < # " > % : ' +

%F0%9F%92%A9 +

#啤酒 #啤酒 +

+!! end