gplx/mediawiki/extensions/SemanticMediaWiki/docs/architecture/extending.propertyannotator.md

1.1 KiB

src/Property/Annotator

  • Add a new class that implements the Annotator (alias PropertyAnnotator) interface via the PropertyAnnotatorDecorator base class
  • Register the implementation with the AnnotatorFactory
  • Use either the RevisionFromEditComplete or ParserAfterTidy hook to invoke the AnnotatorFactory method created and annotate values as demonstrated by existing PropertyAnnotator

See also