OK, I made that up
+- Wikipedia : The Next Generation
- OK, I made that up
!! end
@@ -436,7 +527,7 @@ External links: non-bracketed
!! input
Non-bracketed: http://example.com
!! result
-Non-bracketed: http://example.com
+
Non-bracketed: http://example.com
!! end
@@ -445,11 +536,11 @@ External links: numbered
!! input
Numbered: [http://example.com]
Numbered: [http://example.net]
-Numbered: [http://example.org]
+Numbered: [http://example.com]
!! result
-Numbered: [1]
-Numbered: [2]
-Numbered: [3]
+
Numbered: [1]
+Numbered: [2]
+Numbered: [3]
!!end
@@ -458,7 +549,7 @@ External links: specified text
!! input
Specified text: [http://example.com link]
!! result
-Specified text: link
+
Specified text: link
!!end
@@ -467,7 +558,7 @@ External links: trail
!! input
Linktrails should not work for external links: [http://example.com link]s
!! result
-Linktrails should not work for external links: links
+
Linktrails should not work for external links: links
!! end
@@ -476,7 +567,7 @@ External links: dollar sign in URL
!! input
http://example.com/1$2345
!! result
-http://example.com/1$2345
+
http://example.com/1$2345
!! end
@@ -485,7 +576,7 @@ External links: dollar sign in URL (named)
!! input
[http://example.com/1$2345]
!! result
-[1]
+
[1]
!!end
@@ -494,7 +585,7 @@ External links: open square bracket forbidden in URL (bug 4377)
!! input
http://example.com/1[2345
!! result
-http://example.com/1[2345
+
http://example.com/1[2345
!! end
@@ -503,7 +594,27 @@ External links: open square bracket forbidden in URL (named) (bug 4377)
!! input
[http://example.com/1[2345]
!! result
-[2345
+
[2345
+
+!!end
+
+!! test
+External links: nowiki in URL link text (bug 6230)
+!!input
+[http://example.com/ ''example site'']
+!! result
+''example site''
+
+!! end
+
+!! test
+External links: newline forbidden in text (bug 6230 regression check)
+!! input
+[http://example.com/ first
+second]
+!! result
+[http://example.com/ first
+second]
!!end
@@ -530,7 +641,7 @@ Link to non-http image, no img tag
!! input
Link to non-http image, no img tag: ftp://example.com/test.jpg
!! result
-Link to non-http image, no img tag: ftp://example.com/test.jpg
+
Link to non-http image, no img tag: ftp://example.com/test.jpg
!! end
@@ -539,7 +650,7 @@ External links: terminating separator
!! input
Terminating separator: http://example.com/thing,
!! result
-Terminating separator: http://example.com/thing,
+
Terminating separator: http://example.com/thing,
!! end
@@ -548,7 +659,7 @@ External links: intervening separator
!! input
Intervening separator: http://example.com/1,2,3
!! result
-Intervening separator: http://example.com/1,2,3
+
Intervening separator: http://example.com/1,2,3
!! end
@@ -557,7 +668,7 @@ External links: old bug with URL in query
!! input
Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
!! result
-Old bug with URL in query: link
+
Old bug with URL in query: link
!! end
@@ -566,7 +677,7 @@ External links: old URL-in-URL bug, mixed protocols
!! input
And again with mixed protocols: [ftp://example.com?url=http://example.com link]
!! result
-And again with mixed protocols: link
+
And again with mixed protocols: link
!!end
@@ -575,7 +686,7 @@ External links: URL in text
!! input
URL in text: [http://example.com http://example.com]
!! result
-URL in text: http://example.com
+
URL in text: http://example.com
!! end
@@ -584,7 +695,7 @@ External links: Clickable images
!! input
ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
!! result
-ja-style clickable images:
+
ja-style clickable images:
!!end
@@ -593,7 +704,7 @@ External links: raw ampersand
!! input
Old & use: http://x&y
!! result
-Old & use: http://x&y
+
Old & use: http://x&y
!! end
@@ -602,7 +713,7 @@ External links: encoded ampersand
!! input
Old & use: http://x&y
!! result
-Old & use: http://x&y
+
Old & use: http://x&y
!! end
@@ -611,7 +722,7 @@ External links: encoded equals (bug 6102)
!! input
http://example.com/?foo=bar
!! result
-http://example.com/?foo=bar
+
http://example.com/?foo=bar
!! end
@@ -620,7 +731,7 @@ External links: [raw ampersand]
!! input
Old & use: [http://x&y]
!! result
-Old & use: [1]
+
Old & use: [1]
!! end
@@ -629,7 +740,7 @@ External links: [encoded ampersand]
!! input
Old & use: [http://x&y]
!! result
-Old & use: [1]
+
Old & use: [1]
!! end
@@ -638,7 +749,25 @@ External links: [encoded equals] (bug 6102)
!! input
[http://example.com/?foo=bar]
!! result
-[1]
+
[1]
+
+!! end
+
+!! test
+External links: [IDN ignored character reference in hostname; strip it right off]
+!! input
+[http://example.com/]
+!! result
+[1]
+
+!! end
+
+!! test
+External links: IDN ignored character reference in hostname; strip it right off
+!! input
+http://example.com/
+!! result
+http://example.com/
!! end
@@ -647,7 +776,7 @@ External links: www.jpeg.org (bug 554)
!! input
http://www.jpeg.org
!!result
-http://www.jpeg.org
+
http://www.jpeg.org
!! end
@@ -656,7 +785,7 @@ External links: URL within URL (original bug 2)
!! input
[http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
!! result
-[1]
+
[1]
!! end
@@ -665,7 +794,7 @@ BUG 361: URL inside bracketed URL
!! input
[http://www.example.com/foo http://www.example.com/bar]
!! result
-http://www.example.com/bar
+
http://www.example.com/bar
!! end
@@ -674,7 +803,7 @@ BUG 361: URL within URL, not bracketed
!! input
http://www.example.com/foo?=http://www.example.com/bar
!! result
-http://www.example.com/foo?=http://www.example.com/bar
+
http://www.example.com/foo?=http://www.example.com/bar
!! end
@@ -683,7 +812,7 @@ BUG 289: ">"-token in URL-tail
!! input
http://www.example.com/
!! result
-http://www.example.com/<hello>
+
http://www.example.com/<hello>
!!end
@@ -692,7 +821,7 @@ BUG 289: literal ">"-token in URL-tail
!! input
http://www.example.com/html
!! result
-http://www.example.com/html
+
http://www.example.com/html
!!end
@@ -701,7 +830,7 @@ BUG 289: ">"-token in bracketed URL
!! input
[http://www.example.com/ stuff]
!! result
-<hello> stuff
+
<hello> stuff
!!end
@@ -710,7 +839,7 @@ BUG 289: literal ">"-token in bracketed URL
!! input
[http://www.example.com/html stuff]
!! result
-html stuff
+
html stuff
!!end
@@ -719,7 +848,7 @@ BUG 289: literal double quote at end of URL
!! input
http://www.example.com/"hello"
!! result
-http://www.example.com/"hello"
+
http://www.example.com/"hello"
!!end
@@ -728,7 +857,7 @@ BUG 289: literal double quote in bracketed URL
!! input
[http://www.example.com/"hello" stuff]
!! result
-"hello" stuff
+
"hello" stuff
!!end
@@ -740,7 +869,7 @@ disabled
!! input
[http://www.example.com test]
!! result
-[http://www.example.com test]
+
[http://www.example.com test]
!! end
@@ -749,7 +878,7 @@ External links: multiple legal whitespace is fine, Magnus. Don't break it please
!! input
[http://www.example.com test]
!! result
-test
+
test
!! end
@@ -758,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
@@ -783,11 +912,11 @@ Bug 2702: Mismatched , and tags are invalid
''Something [http://example.com mixed''''', even bold]'''
'''''Now [http://example.com both''''']
!! result
-text
-text
-Something in italic
-Something mixed, even bold
-Now both
+
text
+text
+Something in italic
+Something mixed, even bold
+Now both
!! end
@@ -797,7 +926,7 @@ Bug 4781: %26 in URL
!! input
http://www.example.com/?title=AT%26T
!! result
-http://www.example.com/?title=AT%26T
+
http://www.example.com/?title=AT%26T
!! end
@@ -806,7 +935,7 @@ Bug 4781, 5267: %26 in URL
!! input
http://www.example.com/?title=100%25_Bran
!! result
-http://www.example.com/?title=100%25_Bran
+
http://www.example.com/?title=100%25_Bran
!! end
@@ -815,7 +944,7 @@ Bug 4781, 5267: %28, %29 in URL
!! input
http://www.example.com/?title=Ben-Hur_%281959_film%29
!! result
-http://www.example.com/?title=Ben-Hur_%281959_film%29
+
http://www.example.com/?title=Ben-Hur_%281959_film%29
!! end
@@ -825,7 +954,7 @@ Bug 4781: %26 in autonumber URL
!! input
[http://www.example.com/?title=AT%26T]
!! result
-[1]
+
[1]
!! end
@@ -834,7 +963,7 @@ Bug 4781, 5267: %26 in autonumber URL
!! input
[http://www.example.com/?title=100%25_Bran]
!! result
-[1]
+
[1]
!! end
@@ -843,7 +972,7 @@ Bug 4781, 5267: %28, %29 in autonumber URL
!! input
[http://www.example.com/?title=Ben-Hur_%281959_film%29]
!! result
-[1]
+
[1]
!! end
@@ -853,7 +982,7 @@ Bug 4781: %26 in bracketed URL
!! input
[http://www.example.com/?title=AT%26T link]
!! result
-link
+
link
!! end
@@ -862,7 +991,7 @@ Bug 4781, 5267: %26 in bracketed URL
!! input
[http://www.example.com/?title=100%25_Bran link]
!! result
-link
+
link
!! end
@@ -871,7 +1000,7 @@ Bug 4781, 5267: %28, %29 in bracketed URL
!! input
[http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
!! result
-link
+
link
!! end
@@ -880,7 +1009,7 @@ External link containing double-single-quotes in text '' (bug 4598 sanity check)
!! input
Some [http://example.com/ pretty ''italics'' and stuff]!
!! result
-Some pretty italics and stuff!
+
Some pretty italics and stuff!
!! end
@@ -889,11 +1018,27 @@ External link containing double-single-quotes in text embedded in italics (bug 4
!! input
''Some [http://example.com/ pretty ''italics'' and stuff]!''
!! result
-Some pretty italics and stuff!
+
Some pretty italics and stuff!
!! end
+!! test
+URL-encoding in URL functions (single parameter)
+!! input
+{{localurl:Some page|amp=&}}
+!! result
+/index.php?title=Some_page&=&
+
+!! end
+!! test
+URL-encoding in URL functions (multiple parameters)
+!! input
+{{localurl:Some page|q=?&=&}}
+!! result
+/index.php?title=Some_page&q=?&=&
+
+!! end
###
### Quotes
@@ -1119,16 +1264,18 @@ Invalid attributes in table cell (bug 1830)
!! end
-# FIXME: this one has incorrect tag nesting still.
+# FIXME: It's not clear at all that this is the result we want, but the actual
+# output right now is invalid XML, so clearly something is wrong. The result
+# specified here is now valid XML, which is an improvement . . .
!! test
-Table security: embedded pipes (http://mail.wikipedia.org/pipermail/wikitech-l/2006-April/034637.html)
+Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
!! input
{|
| |[ftp://|x||]" onmouseover="alert(document.cookie)">test
!! result
-[1] | " onmouseover="alert(document.cookie)">test
+ | [1] | " onmouseover="alert(document.cookie)">test
|
@@ -1171,7 +1318,34 @@ Broken link
!! input
[[Zigzagzogzagzig]]
!! result
-Zigzagzogzagzig
+
Zigzagzogzagzig
+
+!! end
+
+!! test
+Broken link with fragment
+!! input
+[[Zigzagzogzagzig#zug]]
+!! result
+Zigzagzogzagzig#zug
+
+!! end
+
+!! test
+Special page link with fragment
+!! input
+[[Special:Version#anchor]]
+!! result
+Special:Version#anchor
+
+!! end
+
+!! test
+Nonexistent special page link with fragment
+!! input
+[[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
+!! result
+Special:ThisNameWillHopefullyNeverBeUsed#anchor
!! end
@@ -1187,9 +1361,9 @@ xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main
!! test
Link with suffix
!! input
-[[Main Page]]xxx, [[Main Page]]XXX
+[[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
!! result
-Main Pagexxx, Main PageXXX
+
Main Pagexxx, Main PageXXX, Main Page!!!
!! end
@@ -1225,7 +1399,7 @@ Link to namespaces
!! input
[[Talk:Parser testing]], [[Meta:Disclaimers]]
!! result
-Talk:Parser testing, Meta:Disclaimers
+
Talk:Parser testing, Meta:Disclaimers
!! end
@@ -1234,7 +1408,7 @@ Piped link to namespace
!! input
[[Meta:Disclaimers|The disclaimers]]
!! result
-The disclaimers
+
The disclaimers
!! end
@@ -1252,7 +1426,7 @@ Link containing % (not as a hex sequence)
!! input
[[7% Solution]]
!! result
-7% Solution
+
7% Solution
!! end
@@ -1261,7 +1435,7 @@ Link containing % as a single hex sequence interpreted to char
!! input
[[7%25 Solution]]
!! result
-7% Solution
+
7% Solution
!!end
@@ -1307,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
@@ -1316,16 +1490,16 @@ 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
!! test
Plain link to URL
!! input
-[[http://www.example.org]]
+[[http://www.example.com]]
!! result
-[[1]]
+
[[1]]
!! end
@@ -1336,16 +1510,16 @@ Plain link to URL
# ----
# I'm changing it to match the current output--it arguably makes more
# sense in the light of the test above. Old expected result was:
-#Piped link to URL: an example URL
+#
Piped link to URL: an example URL
#
# But I think this test is bordering on "garbage in, garbage out" anyway.
# -- wtm
!! test
Piped link to URL
!! input
-Piped link to URL: [[http://www.example.org|an example URL]]
+Piped link to URL: [[http://www.example.com|an example URL]]
!! result
-Piped link to URL: [example URL]
+
Piped link to URL: [example URL]
!! end
@@ -1380,6 +1554,34 @@ title=[[Main Page]]
!! end
+!! article
+00
+!! text
+This is 00.
+!! endarticle
+
+!!test
+Self-link to numeric title
+!!options
+title=[[0]]
+!!input
+[[0]]
+!!result
+0
+
+!!end
+
+!!test
+Link to numeric-equivalent title
+!!options
+title=[[0]]
+!!input
+[[00]]
+!!result
+00
+
+!!end
+
!! test
inside a link
!! input
@@ -1398,7 +1600,7 @@ Inline interwiki link
!! input
[[MeatBall:SoftSecurity]]
!! result
-MeatBall:SoftSecurity
+
MeatBall:SoftSecurity
!! end
@@ -1407,7 +1609,7 @@ Inline interwiki link with empty title (bug 2372)
!! input
[[MeatBall:]]
!! result
-MeatBall:
+
MeatBall:
!! end
@@ -1417,8 +1619,8 @@ Interwiki link encoding conversion (bug 1636)
*[[Wikipedia:ro:Olteniţa]]
*[[Wikipedia:ro:Olteniţa]]
!! result
-- Wikipedia:ro:Olteniţa
-
- Wikipedia:ro:Olteniţa
+
!! end
@@ -1428,10 +1630,57 @@ Interwiki link with fragment (bug 2130)
!! input
[[MeatBall:SoftSecurity#foo]]
!! result
-
MeatBall:SoftSecurity#foo
+
MeatBall:SoftSecurity#foo
+
+!! end
+
+!! test
+Interlanguage link
+!! input
+Blah blah blah
+[[zh:Chinese]]
+!!result
+Blah blah blah
+
+!! end
+
+!! test
+Double interlanguage link
+!! input
+Blah blah blah
+[[es:Spanish]]
+[[zh:Chinese]]
+!!result
+Blah blah blah
+
+!! end
+
+!! test
+Interlanguage link, with prefix links
+!! options
+language=ln
+!! input
+Blah blah blah
+[[zh:Chinese]]
+!!result
+Blah blah blah
+
+!! end
+
+!! test
+Double interlanguage link, with prefix links (bug 8897)
+!! options
+language=ln
+!! input
+Blah blah blah
+[[es:Spanish]]
+[[zh:Chinese]]
+!!result
+Blah blah blah
!! end
+
##
## XHTML tidiness
###
@@ -1722,7 +1971,7 @@ Magic Word: {{NUMBEROFARTICLES}}
!! input
{{NUMBEROFARTICLES}}
!! result
-1
+
2
!! end
@@ -1781,7 +2030,7 @@ Magic Word: {{SERVER}}
!! input
{{SERVER}}
!! result
-http://localhost
+
http://localhost
!! end
@@ -1864,7 +2113,7 @@ Magic links: internal link to RFC (bug 479)
!! input
[[RFC 123]]
!! result
-RFC 123
+
RFC 123
!! end
@@ -1873,7 +2122,7 @@ Magic links: RFC (bug 479)
!! input
RFC 822
!! result
-RFC 822
+
RFC 822
!! end
@@ -1882,7 +2131,7 @@ Magic links: ISBN (bug 1937)
!! input
ISBN 0-306-40615-2
!! result
-ISBN 0-306-40615-2
+
ISBN 0-306-40615-2
!! end
@@ -1891,7 +2140,7 @@ Magic links: PMID incorrectly converts space to underscore
!! input
PMID 1234
!! result
-PMID 1234
+
PMID 1234
!! end
@@ -1904,7 +2153,7 @@ Nonexistant template
!! input
{{thistemplatedoesnotexist}}
!! result
-Template:Thistemplatedoesnotexist
+
Template:Thistemplatedoesnotexist
!! end
@@ -2081,12 +2330,12 @@ Template with complex template as argument
!! end
!! test
-Template with thumb image (wiht link in description)
+Template with thumb image (with link in description)
!! input
{{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
@@ -2195,7 +2444,7 @@ Template infinite loop
!! input
{{loop1}}
!! result
-{{loop1}}
+
Template loop detected: Template:Loop1
!! end
@@ -2360,6 +2609,64 @@ Foozarbar
!! end
+!! article
+Template:Includeonly section
+!! text
+
+==Includeonly section==
+
+==Section T-1==
+!!endarticle
+
+!! test
+Bug 6563: Edit link generation for section shown by
+!! input
+{{includeonly section}}
+!! result
+[edit] Includeonly section
+[edit] Section T-1
+
+!! end
+
+# Uses same input as the contents of [[Template:Includeonly section]]
+!! test
+Bug 6563: Section extraction for section shown by
+!! options
+section=T-2
+!! input
+
+==Includeonly section==
+
+==Section T-2==
+!! result
+==Section T-2==
+!! end
+
+!! test
+Bug 6563: Edit link generation for section suppressed by
+!! input
+
+==Includeonly section==
+
+==Section 1==
+!! result
+[edit] Section 1
+
+!! end
+
+!! test
+Bug 6563: Section extraction for section suppressed by
+!! options
+section=1
+!! input
+
+==Includeonly section==
+
+==Section 1==
+!! result
+==Section 1==
+!! end
+
###
### Pre-save transform tests
###
@@ -2533,143 +2840,343 @@ pst
!!end
-
-###
-### Message transform tests
-###
!! test
-message transform: magic variables
+pre-save transform: in subst (bug 3298)
!! options
-msg
+pst
!! input
-{{SITENAME}}
+{{subst:Includes}}
!! result
-MediaWiki
+Foobar
!! end
!! test
-message transform: should not transform wiki markup
+pre-save transform: in subst (bug 3298)
!! options
-msg
+pst
!! input
-''test''
+{{subst:Includes2}}
!! result
-''test''
+Foo
!! end
-###
-### Images
-###
!! test
-Simple image
+pre-save transform: context links ("pipe trick")
+!! options
+pst
!! input
-[[Image:foobar.jpg]]
-!! result
-
-
-!! end
-
-!! test
-Right-aligned image
+[[Article (context)|]]
+[[Bar:Article|]]
+[[:Bar:Article|]]
+[[Bar:Article (context)|]]
+[[:Bar:Article (context)|]]
+[[|Article]]
+[[|Article (context)]]
+[[Bar:X (Y) Z|]]
+[[:Bar:X (Y) Z|]]
+!! result
+[[Article (context)|Article]]
+[[Bar:Article|Article]]
+[[:Bar:Article|Article]]
+[[Bar:Article (context)|Article]]
+[[:Bar:Article (context)|Article]]
+[[Article]]
+[[Article (context)]]
+[[Bar:X (Y) Z|X (Y) Z]]
+[[:Bar:X (Y) Z|X (Y) Z]]
+!! end
+
+!! test
+pre-save transform: context links ("pipe trick") with interwiki prefix
+!! options
+pst
!! input
-[[Image:foobar.jpg|right]]
+[[interwiki:Article|]]
+[[:interwiki:Article|]]
+[[interwiki:Bar:Article|]]
+[[:interwiki:Bar:Article|]]
!! result
-
-
+[[interwiki:Article|Article]]
+[[:interwiki:Article|Article]]
+[[interwiki:Bar:Article|Bar:Article]]
+[[:interwiki:Bar:Article|Bar:Article]]
!! end
!! test
-Image with caption
+pre-save transform: context links ("pipe trick") with parens in title
+!! options
+pst title=[[Somearticle (context)]]
!! input
-[[Image:foobar.jpg|right|Caption text]]
+[[|Article]]
!! result
-
-
+[[Article (context)|Article]]
!! end
!! test
-Image with frame and link
+pre-save transform: context links ("pipe trick") with comma in title
+!! options
+pst title=[[Someplace, Somewhere]]
!! input
-[[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
+[[|Otherplace]]
+[[Otherplace, Elsewhere|]]
+[[Otherplace, Elsewhere, Anywhere|]]
!! result
-
-
+[[Otherplace, Somewhere|Otherplace]]
+[[Otherplace, Elsewhere|Otherplace]]
+[[Otherplace, Elsewhere, Anywhere|Otherplace]]
!! end
!! test
-Link to image page- image page normally doesn't exists, hence edit link
-TODO: Add test with existing image page
-#Image:test
+pre-save transform: context links ("pipe trick") with parens and comma
+!! options
+pst title=[[Someplace (IGNORED), Somewhere]]
!! input
-[[:Image:test]]
+[[|Otherplace]]
+[[Otherplace (place), Elsewhere|]]
!! result
-
Image:test
-
+[[Otherplace, Somewhere|Otherplace]]
+[[Otherplace (place), Elsewhere|Otherplace]]
!! end
!! test
-Frameless image caption with a free URL
+pre-save transform: context links ("pipe trick") with comma and parens
+!! options
+pst title=[[Who, me? (context)]]
!! input
-[[Image:foobar.jpg|http://example.com]]
+[[|Yes, you.]]
+[[Me, Myself, and I (1937 song)|]]
!! result
-
-
+[[Yes, you. (context)|Yes, you.]]
+[[Me, Myself, and I (1937 song)|Me, Myself, and I]]
!! end
!! test
-Thumbnail image caption with a free URL
+pre-save transform: context links ("pipe trick") with namespace
+!! options
+pst title=[[Ns:Somearticle]]
!! input
-[[Image:foobar.jpg|thumb|http://example.com]]
+[[|Article]]
!! result
-
-
+[[Ns:Article|Article]]
!! end
!! test
-BUG 1887: A ISBN with a thumbnail
+pre-save transform: context links ("pipe trick") with namespace and parens
+!! options
+pst title=[[Ns:Somearticle (context)]]
!! input
-[[Image:foobar.jpg|thumb|ISBN 12354]]
+[[|Article]]
!! result
-
-
+[[Ns:Article (context)|Article]]
!! end
!! test
-BUG 1887: A RFC with a thumbnail
+pre-save transform: context links ("pipe trick") with namespace and comma
+!! options
+pst title=[[Ns:Somearticle, Context, Whatever]]
!! input
-[[Image:foobar.jpg|thumb|This is RFC 12354]]
+[[|Article]]
!! result
-
-
+[[Ns:Article, Context, Whatever|Article]]
!! end
!! test
-BUG 1887: A mailto link with a thumbnail
+pre-save transform: context links ("pipe trick") with namespace, comma and parens
+!! options
+pst title=[[Ns:Somearticle, Context (context)]]
!! input
-[[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
+[[|Article]]
!! result
-
-
+[[Ns:Article (context)|Article]]
!! end
!! test
-BUG 1887: A