Semantic MediaWiki: Difference between revisions
From CoMakingSpace Wiki
(Created page with "We started using [https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki Semantic MediaWiki (SMW)] for some "smart" functions of this wiki around June 2019. Feel free to j...") |
(→Cheat Sheet: proper way of hidden annotation (thanks Martin!)) |
||
Line 8: | Line 8: | ||
== Cheat Sheet == | == Cheat Sheet == | ||
This is not supposed to replace the [https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki SMW documentation], but some things are nice to remember/share once you've finally found them: | This is not supposed to replace the [https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki SMW documentation], but some things are nice to remember/share once you've finally found them: | ||
* | * assigning properties | ||
** in-text annotation: <code><nowiki>[[Property::value]]</nowiki></code> (only "value", or its <code>|alt text</code>, is displayed) | |||
** hidden annotation: use the [https://www.semantic-mediawiki.org/wiki/Help:Setting_values set function] | |||
*** alternatively, you could enter <code>| </code> (the space is important!) to the end of a property (e.g. <code><nowiki>[[Has demo::test| ]]</nowiki></code>) but that should not be necessary anymore | |||
* [https://www.semantic-mediawiki.org/wiki/Help:Result_formats list of possible result formats] | * [https://www.semantic-mediawiki.org/wiki/Help:Result_formats list of possible result formats] | ||
Revision as of 19:18, 29 June 2019
We started using Semantic MediaWiki (SMW) for some "smart" functions of this wiki around June 2019. Feel free to join the effort!
How we use it so far:
- giving equipment pages properties like "Tutor::" and "Location::" so they can easily be listed accordingly
- integrating properties for images into InfoBoxes as a potential way to generate navigation gallerys
- what else can you think of?
Cheat Sheet
This is not supposed to replace the SMW documentation, but some things are nice to remember/share once you've finally found them:
- assigning properties
- in-text annotation:
[[Property::value]]
(only "value", or its|alt text
, is displayed) - hidden annotation: use the set function
- alternatively, you could enter
|
(the space is important!) to the end of a property (e.g.[[Has demo::test| ]]
) but that should not be necessary anymore
- alternatively, you could enter
- in-text annotation:
- list of possible result formats