< Parsing

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

Parser HookExtensions (deployed on the Wikimedia cluster) using the hook
ParserFirstCallInitBabel, 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
ParserAfterParseCite, Graph, Kartographer, Math, Wikidata
ParserBeforeTidyCite, GeoCrumbs, RelatedSites
ParserAfterTidyMath, Semantic MediaWiki
ParserBeforeStripTranslate
ParserAfterStrip
InternalParseBeforeLinksSemantic MediaWiki
InternalParseBeforeSanitize
ParserClearStateCite, ParserFunctions, Quiz, Scribunto, Wikidata
BeforeParserFetchFileAndTitleFlaggedRevs
ParserMakeImageParamsPageImages
ParserModifyImageHTMLPageImages
BeforeParserFetchTemplateAndtitleFlaggedRevs
ParserGetVariableValueSwitchFlaggedRevs, SiteMatrix, Wikidata, WikimediaIncubator
ParserGetVariableValueVarCacheCiteThisPage
ParserGetVariableValueTsCiteThisPage
ParserLimitReportFormatScribunto
ParserLimitReportPrepareScribunto, Wikidata
ParserLimitReportScribunto, Wikidata
BeforeParserrenderImageGallery
BeforeParserMakeImageLinkObj
ParserSectionCreate
ParserTestParser
ParserClonedCite, 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 "|}"

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.

This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.