Help:Property links

From semantic-mediawiki.org
(Redirected from Help:Property links)

Linking to property pages can be achieved with regular links, e. g. [[Property:Population]] creates the link Property:Population.

However, since SMW 2.5 there is an easier way to achieve this using a "no-value annotation". This way a link to a property page can be created that is independent of the language setting.

Creating property links with wiki-text in templates (e.g. for semantic infoboxes or forms) require some additional work, if they are to display tooltips with auto-property descriptions, or to change their preferred label based on user language.

For that reason, the special syntax [[Foo::@@@]] was introduced in Semantic MediaWiki 2.5.01 to generate a full featured property link for "Foo" property.

Example2[edit]

Syntax
[[Population::@@@]]
Result

PopulationThe number of inhabitants of some geographical place.

Syntax
[[Population::@@@|People]]
Result

PeopleThe number of inhabitants of some geographical place.

More examples:

Propertylinksdemo.png


References

  1. ^  Semantic MediaWiki: GitHub issue gh:smw:1855