User "Danwe" posted a comment on MediaWiki.r101518.
Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/101518#c25340
Commit summary:
Started 0.4.13 alpha.
ParserHook::$frame now always is set in case SFH_OBJECT_ARGS and therewith
object style parser function args are enabled. Generally better support to
handle different kinds of parser hook function/tag calls. Anotehr effect is
that ParserHook::$parser now always is a reference to the original Parser
Object.
Comment:
Nothing changes for tags, just for parser functions:
1. Before ParserHook::$parser only was a reference to the original parser if
you had a tag extension but not in case of a parser function.
2. ParserHook::$frame now is available for parser functions, not only for tag
extensions (if your MW version supports SFH_OBJECT_ARGS)
3. You could overwrite ParserHook::renderFunctionObj() to expand arguments
manually which would allow something like a {{#if:...|then|else}} function as
in ParserFunctions.
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview