User:Iliketaiwan
From semantic-mediawiki.org
test page of Tomato
What it does | What you type |
---|---|
Assign the value 1,234,567 to the property "Population". | This country has a population of [[Population::1,234,567]]." |
Assign a numeric value, but showing different text in the article. | This country has a population of [[Population::999,331|about a million]]. |
Specifying the type in a property's article, e.g. This property is a number. |
This property is a [[has type::number]]. |
Display a web link by using a property of type "URL". | Find us online at [[website::http://example.com]]. |
Display a "mailto" link by using a property of type "Email" | You can reach John at [[email address::john@example.com]]. |
What it does | What you type |
---|---|
Classify a link with the property "example property." | Classify a [[example property::link]] with the property "example property." |
Make alternate text appear in place of the link. | Make [[example property::link|alternate text]] appear in place of the link. |
To hide the property from appearing at all, use a space as the alternate text. | To hide the property [[example property::link| ]] from appearing at all use a space as the alternate text. Note: The space after | is necessary. If left away, the MediaWiki pipe trick applies, but rarely with desirable effects. Even if a space is given, SMW will not print anything, which should be the desired result in most cases (to make a space appear in the text, use as a space symbol). |
To make an ordinary link with :: without creating a property, escape the markup with a colon in front, e.g. The C++ :: operator. |
The [[:C++ :: operator]]. |
To assign one value to multiple properties, add :: between each name, e.g. link. |
e.g. [[property1::property2::link]]. |