Sagan 4 Alpha Wiki:Semantic MediaWiki

Semantic MediaWiki is a MediaWiki extension which allows Data to be stored on pages and queried for use elsewhere. This page serves partially as a guide to how to use it.

Using Basic Features
The basic features of Semantic MediaWiki are storing and querying data.

Storing Data
On this wiki, data storage is mostly done using templates, and should not be done manually per-page. This serves to keep properties consistent across the wiki, and to avoid conflicts and duplicate values.

The syntax for storing data is very simple:

Property name::Value

If you are already familiar with editing wikis and this reminds you of categories, that is no coincidence. The syntax of Semantic MediaWiki is a natural extension of default MediaWiki syntax, which, at least for some, makes it easier to learn compared to alternatives such as Cargo.

Unlike categories, however, as-is, the code above will also display the value where you put it. To avoid this, you merely need to add a pipe symbol (|) after the value:

Property name::Value

In cases where the value might contain links or other illegal characters, the "set" parser function may be used instead: