Extension:Metadata/de

The Metadata extension provides a simple parser function and two PHP methods to save and retrieve metadata about any wiki page.

This is a general purpose extension and does nothing useful by itself. It's meant to be used by other extensions and pieces of code to save and retrieve their own metadata.

Die Metadaten werden in einer neuen Datenbanktabelle gespeichert.

PHP
To save a simple key-value pair for a given page ID from PHP:

You can also set several key-value pairs at once, like so:

Wenn für einen der Schlüssel bereits ein Wert vorhanden ist, wird dieser überschrieben. Once set, you can retrieve the saved data for a given key with the following code:

You can also retrieve all the key-value pairs for a given page at once, like so:

Wikitext
Um ein einfaches Schlüssel-Wert-Paar für die aktuelle Seite zu speichern:

Um diesen Wert abzurufen, tue einfach Folgendes:

Note that once a value has been assigned, it currently cannot be deleted from the database via wikitext (it can via PHP methods).

