Add a test covering template targets containing wiki links
authorGabriel Wicke <gwicke@wikimedia.org>
Tue, 13 Nov 2012 21:43:43 +0000 (13:43 -0800)
committerGabriel Wicke <gwicke@wikimedia.org>
Tue, 13 Nov 2012 22:34:05 +0000 (14:34 -0800)
Change-Id: I0db7b0387dde5a9b450af486a66f451377de1d7e

tests/parser/parserTests.txt

index 4690e1a..a98e584 100644 (file)
@@ -4557,6 +4557,20 @@ BUG 41: Template parameters shown as broken links
 </p>
 !! end
 
+!! test
+Template with targets containing wikilinks
+!! input
+{{[[foo]]}}
+
+{{[[{{echo|foo}}]]}}
+
+{{{{echo|[[foo}}]]}}
+!! result
+<p>{{<a href="/index.php?title=Foo&amp;action=edit&amp;redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
+</p><p>{{<a href="/index.php?title=Foo&amp;action=edit&amp;redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
+</p><p>{{[[foo}}]]
+</p>
+!! end
 
 !! article
 Template:MSGNW test