Autocomments are fragments of the edit summary (which is commonly referenced within the codebase as "comment") inside C-style comment markers. For example, the edit summary /* foo */ bar /* baz */ boom
contains two autocomments, foo
and baz
. Autocomments are mainly used for specifying which section was edited; the default comment formatter behavior turns the autocomment into a link to the section with the same name.
The FormatAutocomments/* wbsetsitelink-add:1|frwiki */
which the hook would replace with the output of wfMessage( 'wbsetsitelink-add', 1, 'frwiki' )
.
External tools which want to display edit summaries the same way they are displayed in MediaWiki can use the parsedcomment
property of the various revision-related APIs.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.