Extension:Metadata/en

The Metadata extension adds the #metadata parser function to set page properties, and exposes them via tags and a REST API endpoint.

Usage
To set a simple key-value pair for the current page:

And to set multiple key-value pairs in a single call:

Keys with no value will be assigned a "1" value.

Once set, the properties will be accessible via the HTML tags, like so:

  

And also, via the "props" endpoint introduced by this extension to the MediaWiki REST API, with the following URL pattern:

/w/rest.php/v1/page/{title}/props

Finally, the properties can also be accessed via the Properties module of the MediaWiki Action API, with the following URL pattern:

/w/api.php?action=query&prop=pageprops&titles={title}