Difference between revisions of "Stationery Wiki:SemanticWiki"

From Stationery Wiki
Jump to navigation Jump to search
(Added examples)
(added Boolean)
Line 1: Line 1:
Stationery Wiki now has the Semantic MediaWiki extension installed.  
+
Stationery Wiki has the Semantic MediaWiki extension installed.  
  
 
You can find an introduction and explanation at [https://www.semantic-mediawiki.org/wiki/Help:Introduction_to_Semantic_MediaWiki the Semantic MediaWiki project pages].
 
You can find an introduction and explanation at [https://www.semantic-mediawiki.org/wiki/Help:Introduction_to_Semantic_MediaWiki the Semantic MediaWiki project pages].
Line 26: Line 26:
  
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
 +
 +
===Boolean===
 +
To set a boolean data type use the following on the  Property:Population page
 +
 +
<nowiki>[[Has type::boolean]]</nowiki>
 +
 +
Valid Boolean  options are: 1, 0, true, false, t, f, yes, no, y, n
 +
 +
More information can be found at [https://www.semantic-mediawiki.org/wiki/Help:Property_declaration Help:Property_declaration].

Revision as of 18:02, 23 May 2017

Stationery Wiki has the Semantic MediaWiki extension installed.

You can find an introduction and explanation at the Semantic MediaWiki project pages.

If you want to try this out use the Semantic Wiki sandbox.

Example properties used

Pens

To indicate the manufacturer of the pen we use Made by, e.g. The Perkeo is an upcoming fountain pen from [[Made by::Kaweco]].

If the pen is actually manufactured by another company we could use Manufactured by instead.

Podcasts

For podcasts we currently the properties shown in the example below

{{#set:

podcast episode number=256

|podcast guest=Joey Cofone

|podcast length=75 minutes

}}

Boolean

To set a boolean data type use the following on the Property:Population page

[[Has type::boolean]]

Valid Boolean options are: 1, 0, true, false, t, f, yes, no, y, n

More information can be found at Help:Property_declaration.