Semantic MediaWiki

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Revision as of 23:29, 21 July 2011 by Woozle (talk | contribs) (syntax, parser functions, SMW markup)
Jump to navigation Jump to search

About

Semantic MediaWiki (SMW) is an extension for MediaWiki that provides semantic markup capability.

This page is a seed article. You can help HTYP water it: make a request to expand a given page and/or donate to help give us more writing-hours!

Notes

  • In #ask queries, the word "Category" is case-sensitive; [[category:...]] will not work.
  • Special properties are also case-sensitive if your wiki has initial-caps disabled; e.g. [[Has type:string]]</wiki> correctly references the special "Has type" property, but <nowiki>[[has type::string]] refers only to a non-special "has type" property.

Syntax

SMW introduces a new syntactical structure of the form [[property name::property value]], which may optionally be written with a display parameter: [[property name::property value|display text]]. Both of these formats cause the current page to be assigned the value property name with the value property value.

To set a property without displaying anything, there are two alternative forms:

  • [[property name::property value| ]]
    • In this form, the space between the "|" and "]]" is required)
  • {{#set:property name=property value}}
    • This form allows brackets ("[" and "]") to be used in the property value; the other form does not.

parser functions

SMW also uses a few standard-form parser functions:

Links