Semantic MediaWiki: Difference between revisions

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<hide>
[[page type::article]]
[[thing type::software]]
[[platform::MediaWiki]]
[[category:software]]
[[category:software]]
[[category:MediaWiki]]
[[category:MediaWiki]]
</hide>
==About==
==About==
[[Semantic MediaWiki]] (SMW) is an extension for [[platform::MediaWiki]] that provides [[purpose::semantic markup]] capability.
[[Semantic MediaWiki]] (SMW) is an extension for [[MediaWiki]] that provides [[semantic markup]] capability.
{{seed}}
===pages===
===Notes===
* [[/code]]: SMW's code API
* In #ask queries, the word "Category" is case-sensitive; <nowiki>[[category:...]]</nowiki> will not work.
* [[/data]]: tables
* Special properties are also case-sensitive if your wiki has initial-caps disabled; e.g. <nowiki>[[Has type:string]]</wiki> correctly references the special "Has type" property, but <nowiki>[[has type::string]]</nowiki> refers only to a non-special "has type" property.
* [[/markup]]
==Syntax==
SMW introduces a new syntactical structure of the form ''<nowiki>[[property name::property value]]</nowiki>'', which may optionally be written with a display parameter: ''<nowiki>[[property name::property value|display text]]</nowiki>''. Both of these formats cause the current page to be assigned the value <u>property name</u> with the value <u>property value</u>.
 
To set a property without displaying anything, there are two alternative forms:
* ''<nowiki>[[property name::property value| ]]</nowiki>''
** In this form, the space between the "|" and "]]" is required)
* ''<nowiki>{{#set:property name=property value}}</nowiki>''
** 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:
* [[smw:Help:Inline queries|#ask]]
* #declare
* [[smw:Help:Adding tooltips|#info]]
* #set
* [[smw:Help:Recurring events|#set_recurring_event]]
* [[smw:Help:Inline queries#The_.23show_parser_function|#show]]
 
==Links==
==Links==
===Official===
* [[page::smw:Main Page|project home page]]
* [[page::smw:Main Page|project home page]]
===Reference===
* {{wikipedia}}

Latest revision as of 21:04, 28 July 2020

<hide> page type::article thing type::software platform::MediaWiki </hide>

About

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

pages

Official

Reference