X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/74c929b24b048c9f1e31e17db757ae4195cd7673..dc9cc5d707f5a612938cc9371614cc41c328fda2:/maintenance/parserTests.txt diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index c84e0e35..1a427005 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -461,7 +461,7 @@ Definition list with wikilink containing colon !! input ; [[Help:FAQ]]: The least-read page on Wikipedia !! result -
Help:FAQ
The least-read page on Wikipedia +
Help:FAQ
The least-read page on Wikipedia
!! end @@ -887,7 +887,7 @@ External links: wiki links within external link (Bug 3695) !! input [http://example.com [[wikilink]] embedded in ext link] !! result -

wikilink embedded in ext link +

wikilink embedded in ext link

!! end @@ -1318,7 +1318,7 @@ Broken link !! input [[Zigzagzogzagzig]] !! result -

Zigzagzogzagzig +

Zigzagzogzagzig

!! end @@ -1327,7 +1327,7 @@ Broken link with fragment !! input [[Zigzagzogzagzig#zug]] !! result -

Zigzagzogzagzig#zug +

Zigzagzogzagzig#zug

!! end @@ -1345,7 +1345,7 @@ Nonexistent special page link with fragment !! input [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]] !! result -

Special:ThisNameWillHopefullyNeverBeUsed#anchor +

Special:ThisNameWillHopefullyNeverBeUsed#anchor

!! end @@ -1399,7 +1399,7 @@ Link to namespaces !! input [[Talk:Parser testing]], [[Meta:Disclaimers]] !! result -

Talk:Parser testing, Meta:Disclaimers +

Talk:Parser testing, Meta:Disclaimers

!! end @@ -1408,7 +1408,7 @@ Piped link to namespace !! input [[Meta:Disclaimers|The disclaimers]] !! result -

The disclaimers +

The disclaimers

!! end @@ -1426,7 +1426,7 @@ Link containing % (not as a hex sequence) !! input [[7% Solution]] !! result -

7% Solution +

7% Solution

!! end @@ -1435,7 +1435,7 @@ Link containing % as a single hex sequence interpreted to char !! input [[7%25 Solution]] !! result -

7% Solution +

7% Solution

!!end @@ -1481,7 +1481,7 @@ Link containing double-single-quotes '' in text (bug 4598 sanity check) !! input Some [[Link|pretty ''italics'' and stuff]]! !! result -

Some pretty italics and stuff! +

Some pretty italics and stuff!

!! end @@ -1490,7 +1490,7 @@ Link containing double-single-quotes '' in text embedded in italics (bug 4598 sa !! input ''Some [[Link|pretty ''italics'' and stuff]]! !! result -

Some pretty italics and stuff! +

Some pretty italics and stuff!

!! end @@ -2171,7 +2171,7 @@ Magic links: internal link to RFC (bug 479) !! input [[RFC 123]] !! result -

RFC 123 +

RFC 123

!! end @@ -2211,7 +2211,7 @@ Nonexistent template !! input {{thistemplatedoesnotexist}} !! result -

Template:Thistemplatedoesnotexist +

Template:Thistemplatedoesnotexist

!! end @@ -2393,7 +2393,7 @@ Template with thumb image (with link in description) {{paramtest| param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}} !! result -This is a test template with parameter +This is a test template with parameter !! end @@ -3233,7 +3233,7 @@ Add test with existing image page !! input [[:Image:test]] !! result -

Image:test +

Image:test

!! end @@ -3442,7 +3442,7 @@ Disabled subpages !! input [[/subpage]] !! result -

/subpage +

/subpage

!! end @@ -3453,7 +3453,7 @@ subpage title=[[Page]] !! input {{/Subpage}} !! result -

Page/Subpage +

Page/Subpage

!! end @@ -4008,7 +4008,7 @@ Image link to nonexistent file (bug 1850 - good) !! input [[:Image:No such.jpg]] !! result -

Image:No such.jpg +

Image:No such.jpg

!! end @@ -5242,7 +5242,7 @@ Special page transclusion !! result


-
Xyzzyx
+
Xyzzyx
!! end @@ -5255,10 +5255,10 @@ Special page transclusion twice (bug 5021) !! result


-
Xyzzyx
+
Xyzzyx


-
Xyzzyx
+
Xyzzyx
!! end @@ -5276,7 +5276,7 @@ Transclusion of nonexistent MediaWiki message !! input {{MediaWiki:Mainpagexxx}} !!result -

MediaWiki:Mainpagexxx +

MediaWiki:Mainpagexxx

!! end @@ -6178,7 +6178,7 @@ Say the magic word
  • Talk
  • -
  • Template:Dynamic +
  • Template:Dynamic
  • !! end @@ -6303,7 +6303,7 @@ Double RFC with a wiki link !! input RFC [[RFC 1234]] !! result -

    RFC RFC 1234 +

    RFC RFC 1234

    !! end @@ -6435,7 +6435,7 @@ subpage title=[[Subpage test/L1/L2/L3]] !! input [[../|L2]] !! result -

    L2 +

    L2

    !! end @@ -6447,7 +6447,7 @@ subpage title=[[Subpage test/L1/L2/L3]] !! input [[../]] !! result -

    Subpage test/L1/L2 +

    Subpage test/L1/L2

    !! end @@ -6461,7 +6461,7 @@ subpage title=[[Subpage test/L1/L2/L3]] !! input [[../../|L1]]2 !! result -

    L1 +

    L1

    !! end @@ -6483,7 +6483,7 @@ subpage title=[[Subpage test/L1/L2/L3]] !! input [[../../////]] !! result -

    /// +

    ///

    !! end @@ -6524,7 +6524,7 @@ RAW magic word !! input {{RAW:QUERTY}} !! result -

    Template:QUERTY +

    Template:QUERTY

    !! end @@ -7233,6 +7233,64 @@ language=fa

    !! end +!! test +Multibyte character in padleft +!! input +{{padleft:-Hello|7|Æ}} +!! result +

    Æ-Hello +

    +!! end + +!! test +Multibyte character in padright +!! input +{{padright:Hello-|7|Æ}} +!! result +

    Hello-Æ +

    +!! end + +!! test +Formatted date +!! config +wgUseDynamicDates=1 +!! input +[[2009-03-24]] +!! result +

    2009-03-24 +

    +!!end + +!!test +formatdate parser function +!!input +{{#formatdate:2009-03-24}} +!! result +

    2009-03-24 +

    +!! end + +!!test +formatdate parser function, with default format +!!input +{{#formatdate:2009-03-24|mdy}} +!! result +

    March 24, 2009 +

    +!! end + +!! test +Linked date with autoformatting disabled +!! config +wgUseDynamicDates=false +!! input +[[2009-03-24]] +!! result +

    2009-03-24 +

    +!!end + # # #