Help:Setting values
From semantic-mediawiki.org
| Setting values | |
|---|---|
| Silently set semantic data in a wiki page | |
| Further Information | |
| Provided by: | Semantic MediaWiki |
| Minimum version: | 1.4.0 |
| Maximum version: | still supported |
| Function: | yes |
| Tag: | no |
| Name: | #set
|
| Table of Contents | |
The parser function #set allows the author to set a piece of data.
So on the page for Paris, they may be:
{{#set:population=12,000,000
|country=France
|mayor=Pierre Lala
}}
This parser function actually does not return anything, but saves the very same properties as data as a [[population::12,000,000]] and [[country::France]] would have. Or, put in other words: some wikis are using something like
[[country::France| ]]
at the end of the article to hide an annotation but still make it. No need for that anymore, you can just use #set.
With #set, annotating data gets as easy as the PersonenDaten on the German Wikipedia. If you want to, you can get rid of the [[property::value]] syntax completely.
See also: Argument declaration in templates
This documentation page applies to all SMW versions from 1.4.0 to the most current version.
Other languages: zh-hans