Jump to content

Parsing/Parser Hooks Stats

From mediawiki.org

This page collates information about extensions deployed on the Wikimedia cluster that use parser hooks.

Parser Hook Extensions (deployed on the Wikimedia cluster) using the hook
ParserFirstCallInit Babel , Calendar , CategoryTree , CharInsert , Cite , FlaggedRevs , FundraiserLandingPage , GeoCrumbs , GeoData , Graph , ImageMap , InputBox , Insider , Intersection , Josa , Kartographer , LabeledSectionTransclusion , LiquidThreads , Listings , MapSources , MassMessage , Math , PageAssessments , ParserFunctions , Poem , ProofreadPage , Quiz , RelatedArticles , RSS , Score , Scribunto , SemanticForms , Semantic MediaWiki , SemanticResultFormats , SubPageList3 , SyntaxHighlight GeSHi , TemplateData , Timeline , Translate , Validator , Wikidata , WikidataPageBanner , Wikihiero , WikimediaIncubator
ParserAfterParse Cite , Graph , Kartographer , Math , Wikidata
ParserBeforeTidy Cite , GeoCrumbs , RelatedSites
ParserAfterTidy Math , Semantic MediaWiki
ParserBeforeStrip Translate
ParserAfterStrip
InternalParseBeforeLinks Semantic MediaWiki
InternalParseBeforeSanitize
ParserClearState Cite , ParserFunctions , Quiz , Scribunto , Wikidata
BeforeParserFetchFileAndTitle FlaggedRevs
ParserMakeImageParams PageImages
ParserModifyImageHTML PageImages
BeforeParserFetchTemplateAndtitle FlaggedRevs
ParserGetVariableValueSwitch FlaggedRevs , SiteMatrix , Wikidata , WikimediaIncubator
ParserGetVariableValueVarCache CiteThisPage
ParserGetVariableValueTs CiteThisPage
ParserLimitReportFormat Scribunto
ParserLimitReportPrepare Scribunto , Wikidata
ParserLimitReport Scribunto , Wikidata
BeforeParserrenderImageGallery
BeforeParserMakeImageLinkObj
ParserSectionCreate
ParserTestParser
ParserCloned Cite , Scribunto

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 "|}"
[edit]

See 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.