Help:Property links

From Linux Web Expert

Property links, i.e. linking to property pages can be achieved with regular links, e. g. [[Property:Population]] creates the link Property:Population. Since Semantic MediaWiki 2.5.0Released on an unknown date unknown versions of MediaWiki 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.0Released on an unknown date unknown versions of MediaWiki1 to generate a full featured property link for "Foo" property. The tooltips can also be used without actually creating a link 2.

Examples

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

Population


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

People


Syntax (showing a tooltip without linking)
[[Population::@@@|#]]
Result

Population


More examples

Demonstration of property links

Note

If the SMW_DV_MLTV_LCODE flag is removed from configuration parameter $smwgDVFeaturesSets the available features regarding property data values, property links will no longer render as tooltips.3 Instead they will appear as plain links to the property.

#scite could not render a citation text for reference "gh:smw:1855" because type "issue" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:3562" because type "issue" was not assigned to a template.

References

  1. ^ gh:smw:1855 
  2. ^ gh:smw:4042 
  3. ^ gh:smw:3562