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 -
wikilink embedded in ext link +
!! end @@ -1318,7 +1318,7 @@ Broken link !! input [[Zigzagzogzagzig]] !! result - !! end @@ -1327,7 +1327,7 @@ Broken link with fragment !! input [[Zigzagzogzagzig#zug]] !! result - !! 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 - !! end @@ -1426,7 +1426,7 @@ Link containing % (not as a hex sequence) !! input [[7% Solution]] !! result - !! end @@ -1435,7 +1435,7 @@ Link containing % as a single hex sequence interpreted to char !! input [[7%25 Solution]] !! result - !!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 +
!! 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 - !! end @@ -3442,7 +3442,7 @@ Disabled subpages !! input [[/subpage]] !! result -/subpage +
!! end @@ -3453,7 +3453,7 @@ subpage title=[[Page]] !! input {{/Subpage}} !! result - !! end @@ -4008,7 +4008,7 @@ Image link to nonexistent file (bug 1850 - good) !! input [[:Image:No such.jpg]] !! result - !! end @@ -5242,7 +5242,7 @@ Special page transclusion !! result
Xyzzyx |
Xyzzyx |
Xyzzyx |
Xyzzyx |
Xyzzyx |
Xyzzyx |
RFC RFC 1234 +
RFC RFC 1234
!! end @@ -6435,7 +6435,7 @@ subpage title=[[Subpage test/L1/L2/L3]] !! input [[../|L2]] !! result -L2 +
!! end @@ -6447,7 +6447,7 @@ subpage title=[[Subpage test/L1/L2/L3]] !! input [[../]] !! result - !! end @@ -6461,7 +6461,7 @@ subpage title=[[Subpage test/L1/L2/L3]] !! input [[../../|L1]]2 !! result -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 - !! 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 + +!!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 + +!!end + # # #