Parsing/Parser Hooks Stats
< Parsing
This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date. |
This page collates information about extensions deployed on the Wikimedia cluster that use parser hooks.
This table is generated with the script below:
cd extensions
echo '{| class="wikitable"'
echo "|-"
echo "! Parser Hook || Extensions (deployed on the Wikimedia cluster) using the hook"
for hook in ParserFirstCallInit ParserAfterParse ParserBeforeTidy ParserAfterTidy ParserBeforeStrip ParserAfterStrip InternalParseBeforeLinks InternalParseBeforeSanitize ParserClearState BeforeParserFetchFileAndTitle ParserMakeImageParams ParserModifyImageHTML BeforeParserFetchTemplateAndtitle ParserGetVariableValueSwitch ParserGetVariableValueVarCache ParserGetVariableValueTs ParserLimitReportFormat ParserLimitReportPrepare ParserLimitReport ParserMakeImageParams BeforeParserrenderImageGallery BeforeParserMakeImageLinkObj ParserSectionCreate ParserTestParser ParserCloned
do
echo "|-"
exts=`find . -type f -exec grep -l -i $hook {} \; | egrep 'php|json' | sed 's/^\.\///g;s/\/.*//g;'| uniq | sort`
echo "|{{ll|Manual:Hooks/$hook|$hook}} || `echo $exts | sed 's/\(\w\w*\)/{{ll|Extension:\1|nsp=0}}/g;s/ /, /g;'`"
done
echo "|}"
Related
editSee Parsoid/Todo:PHP parser integration for interactions between extensions and the parser. That information needs to be updated and we need to verify if that API needs to be supported in Parsoid in some way.