passing "uploadmsg" parameter in the url
* (bug 9947) Add PROTECTIONLEVEL parser funtion to return the protection level
for the current page for a given action
+* Added "__\" magic word to eat up all whitespace and newlines to the next
+ non-whitespace character, to facilitate writing readable template code where
+ whitespace is significant.
=== Bug fixes in 1.15 ===
* Fixing the caching issue by using -{T|xxx}- syntax (only applies on wiki with LanguageConverter class)
$text = $this->internalParse( $text );
$text = $this->mStripState->unstripGeneral( $text );
+ # To make wikitext easier to read where significant
+ # whitespace is a problem, '__\' will be eaten up along with
+ # all whitespace and newlines that follow it, up to the next
+ # non-whitespace character. (Compare 'dnl' from m4.)
+ $text = preg_replace('/__\\\\\s*/', '', $text);
+
# Clean up special characters, only run once, next-to-last before doBlockLevels
$fixtags = array(
# french spaces, last one Guillemet-left