Additional test for {{PAGELANGUAGE}} magic word
authorTTO <at.light@live.com.au>
Sat, 7 Jan 2017 02:27:23 +0000 (02:27 +0000)
committerUmherirrender <umherirrender_de.wp@web.de>
Sat, 7 Jan 2017 11:28:12 +0000 (11:28 +0000)
Make sure it returns the default content language on pages where the
language is not explicitly set.

Bug: T59603
Change-Id: I7b1437bf1650166c8be77e5bd84181c577961f27

tests/parser/parserTests.txt

index 16d724d..3853a12 100644 (file)
@@ -10300,6 +10300,15 @@ language=fr
 </p>
 !! end
 
+!! test
+Magic Word: {{PAGELANGUAGE}} on a page with no explicitly set language
+!! wikitext
+{{PAGELANGUAGE}}
+!! html
+<p>en
+</p>
+!! end
+
 !! test
 Case-sensitive magic words, when cased differently, should just be template transclusions
 !! wikitext