[Mediawiki-l] Hiding "subst:" syntax inside a template possible?

Platonides Platonides at gmail.com
Mon Jan 24 17:55:30 UTC 2011


nakohdo wrote:
> Platonides wrote:
>>
>> nakohdo: You cannot make some templates subst by not using subst.
>>
> 
> Thanks for clarification. Yes, a thought reading parser is still on my
> wishlist ;-)
> 
> A follow-up question, though:
> Technically speaking "subst:" is a parser function, isn't it? 

Not exactly a parser function. I would call it a /modifier/ for
templates/parser functions.

> Could I a
> least create an alias for it (by modifying magic words?) which is more
> meaningful for non English speakers?
> 
> tia
> Frank

You are not expected to translate it. You would need to modify
includes/MagicWord.php *and* the literal comparison in
includes/parser/Parser.php at braceSubstitution()





More information about the MediaWiki-l mailing list