Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Summaries

Wikibase uses “magic” edit summaries that can later be parsed and localized for display. This is done via the Format-Autocomment hook, handled by Summary::onFormat.

Magic summaries

Below are examples of the magic summaries currently used.

''NOTE'': The block between the /* and the */ (the “auto-comment”) specifies a system message and the parameters for that message (the “comment arguments”). By convention, the first comment argument is a count, used to trigger the plural version of the message when needed. The second argument, if present, is a language code or a site code.

  • wbsetsitelink
    • /* wbsetsitelink-add:1|site */ linktitle
    • /* wbsetsitelink-set:1|site */ linktitle
    • /* wbsetsitelink-remove:1|site */
  • wbsetlabel
    • /* wbsetlabel-add:1|lang */ value
    • /* wbsetlabel-set:1|lang */ value
    • /* wbsetlabel-remove:1|lang */ value
  • wbsetdescription
    • /* wbsetdescription-add:1|lang */ value
    • /* wbsetdescription-set:1|lang */ value
    • /* wbsetdescription-remove:1|lang */ value
  • wbeditentiry
    • /* wbeditentity-update: */
    • /* wbeditentity-override: */
    • /* wbeditentity-create: */
  • wbsetalias
    • /* wbsetaliases-set:1|lang */ values...
    • /* wbsetaliases-remove:1|lang */ values...
    • /* wbsetaliases-add:1|lang */ values...
  • wblinktitles
    • /* wblinktitles-create:2| */ fromSite:fromPage, toSite:toPage
    • /* wblinktitles-connect:2| */ fromSite:fromPage, toSite:toPage
  • wbsetclaimvalue
    • /* wbsetclaimvalue:1 */ p123
    • /* wbremoveclaims:n */ props...
    • /* wbremoveclaims-remove:1 */ props...
  • wbcreateclaim
    • /* wbcreateclaim-value: */ p123
    • /* wbcreateclaim-novalue: */ p123
    • /* wbcreateclaim-somevalue: */ p123
  • wbsetclaim
    • /* wbsetclaim-update: */ p123
    • /* wbsetclaim-create: */ p123
    • /* wbsetclaim-update-qualifiers: */ p123 (claim)|p4 (qualifier)
    • /* wbsetclaim-update-references: */ p123 (claim)|p4 (reference)
    • /* wbsetclaim-update-rank: */ p123

The following summaries are not yet fully implemented and just included for reference:

  • wbsetclaim
    • /* wbsetclaim:1 */ p123
  • wbremovereferences
    • /* wbremovereferences:n */ p123
  • wbsetreference
    • /* wbsetreference:1 */ p123
  • wbremovequalifiers
    • /* wbremovequalifiers:n */ p123
  • wbsetqualifiers
    • /* wbsetqualifier:1 */ p123(claim)|p567(qualifier)
  • wbsetstatementrank
    • /* wbsetstatementrank-deprecated:1 */ p123
    • /* wbsetstatementrank-normal:1 */ p123
    • /* wbsetstatementrank-preferred:1 */ p123