Parsing/Parser Hooks Stats

From MediaWiki.org
Jump to navigation Jump to search

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, SemanticMediaWiki, SemanticResultFormats, SubPageList3, SyntaxHighlight_GeSHi, TemplateData, timeline, Translate, Validator, Wikidata, WikidataPageBanner, wikihiero, WikimediaIncubator
ParserAfterParse Cite, Graph, Kartographer, Math, Wikidata
ParserBeforeTidy Cite, GeoCrumbs, RelatedSites
ParserAfterTidy Math, SemanticMediaWiki
ParserBeforeStrip Translate
ParserAfterStrip
InternalParseBeforeLinks SemanticMediaWiki
InternalParseBeforeSanitize
ParserClearState Cite, ParserFunctions, Quiz, Scribunto, Wikidata
BeforeParserFetchFileAndTitle FlaggedRevs
ParserMakeImageParams PageImages
BeforeParserFetchTemplateAndtitle FlaggedRevs
ParserGetVariableValueSwitch FlaggedRevs, SiteMatrix, Wikidata, WikimediaIncubator
ParserGetVariableValueVarCache CiteThisPage
ParserGetVariableValueTs CiteThisPage
ParserLimitReportFormat Scribunto
ParserLimitReportPrepare Scribunto, Wikidata
ParserLimitReport Scribunto, Wikidata
ParserMakeImageParams PageImages
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 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 "|[[Manual:Hooks/$hook|$hook]] || `echo $exts | sed 's/\(\w\w*\)/[[Extension:\1|\1]]/g;s/ /, /g;'`"
done
echo "|}"

Related[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.