X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fparser%2FparserTests.txt;h=216d7e5d3c2df2abf1b87ec855ceb7b87fd0220e;hb=99e861920d9b1db2f834fb7b5055c75b8fcc720b;hp=05afefacff3ecc64c3e1ad7146976d20ea0035b2;hpb=e2f61aa44095d56af0d4b25a59e25b55a6c297bc;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 05afefacff..216d7e5d3c 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -62,6 +62,12 @@ Template:Foo FOO !!endarticle +!! article +Template:redirect to foo +!! text +#REDIRECT [[Template:Foo]] +!! endarticle + !! article Template:Blank !! text @@ -109,6 +115,14 @@ Template:echo {{{1}}} !! endarticle +!! article +Template:echo3 +!! text +{{{1}}} +{{{1}}} +{{{1}}} +!! endarticle + // For Serbian; localize Template namespace !! article Шаблон:Echo @@ -128,6 +142,12 @@ Template:echo_with_div
Template recursion depth limit exceeded (1) +
+!! end + +!! test +multiple templates that are redirects +!! wikitext +{{redirect to foo}} +{{redirect to foo}} +!! html +FOO +FOO +
+!! end + !! test Multiple comments should still parse as SOL-transparent !! options @@ -11504,6 +11557,17 @@ Template from main namespace !! end +!! test +Template from non-includable namespace +!! options +wgNonincludableNamespaces=10 +!! wikitext +{{echo|uh oh!}} +!! html + +!! end + !! article Template:table !! text @@ -28805,7 +28869,7 @@ foo {{echo|bar [[Category:baz]]}} bar # of the categories in wikitext # Do not remove these characters in edits. # -# As part of the serialization, these bidi characters will get stripped. +# As part of the serialization, these Unicode directional formatting characters will get stripped. !! test RTL (\u200f) and LTR (\u200e) markers around category tags should be stripped !! options @@ -30811,3 +30875,27 @@ header *foo footer !! end + +!! test +Check soft hyphens as entities () in displaytitle (T66528) +!! options +showtitle +title=[[Lopadotemachoselachogaleokranioleipsanodrimhypotrimmatosilphioparaomelitokatakechymenokichlepikossyphophattoperisteralektryonoptekephalliokigklopeleiolagoiosiraiobaphetraganopterygon]] +!! wikitext +{{DISPLAYTITLE:Lopadotemachoselachogaleokranioleipsanodrimhypotrimmatosilphioparaomelitokatakechymenokichlepikossyphophattoperisteralektryonoptekephalliokigklopeleiolagoiosiraiobaphetraganopterygon}} +!! html/php +Lopadotemachoselachogaleokranioleipsanodrimhypotrimmatosilphioparaomelitokatakechymenokichlepikossyphophattoperisteralektryonoptekephalliokigklopeleiolagoiosiraiobaphetraganopterygon + +!! end + +!! test +Check soft hyphens as Unicode characters (U+00AD) in displaytitle (T66528) +!! options +showtitle +title=[[Lopadotemachoselachogaleokranioleipsanodrimhypotrimmatosilphioparaomelitokatakechymenokichlepikossyphophattoperisteralektryonoptekephalliokigklopeleiolagoiosiraiobaphetraganopterygon]] +!! wikitext +{{DISPLAYTITLE:LopadoÂtemachoÂselachoÂgaleoÂkranioÂleipsanoÂdrimÂhypoÂtrimmatoÂsilphioÂparaoÂmelitoÂkatakechyÂmenoÂkichlÂepiÂkossyphoÂphattoÂperisterÂalektryonÂopteÂkephallioÂkigkloÂpeleioÂlagoioÂsiraioÂbapheÂtraganoÂpterygon}} +!! html/php +LopadoÂtemachoÂselachoÂgaleoÂkranioÂleipsanoÂdrimÂhypoÂtrimmatoÂsilphioÂparaoÂmelitoÂkatakechyÂmenoÂkichlÂepiÂkossyphoÂphattoÂperisterÂalektryonÂopteÂkephallioÂkigkloÂpeleioÂlagoioÂsiraioÂbapheÂtraganoÂpterygon + +!! end