X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=05afefacff3ecc64c3e1ad7146976d20ea0035b2;hb=dc96f656affd1f8fab0ae72b0d96e77055e5b336;hp=0641e0bf4dac247101e950f21b4b8d2b76437a7a;hpb=6f9c30c67b31b12d39f2d54b431e141869895eca;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 0641e0bf4d..afddd78553 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 @@ -18313,6 +18377,27 @@ this is a '''test'''this is a test
!! end +!! test +Parser hook: horizontal rule inside extension tag that outputs+!! wikitext ++Hello + +!! html/php +
+Goodbye ++' +Hello ++ +!! end + ### ### (see tests/parser/parserTestsParserHook.php for the
+Goodbye +' +array ( +) +extension) ### @@ -24564,6 +24649,17 @@ abc abc !! end +!! test +Padleft and padright with non-numerical length (T180403) +!! wikitext +{{padleft:abcdef|junk}} +{{padright:abcdef|junk}} +!! html/php + abcdef +abcdef +
+!! end + !!test Special parser function !! wikitext