Template:Invert-property

From semanticweb.org
Jump to: navigation, search

This template takes a property name and its inverse property name. It queries for the inverse property name and produces wiki text with the inverted annotations.

See the same page on http://sandbox.semantic-mediawiki.org for experiments and discussion.

Usage:

{{Invert-property|Derived property name|Its inverse property name}}

This hides the annotation by specifying blank as the alternate text. Since "| " in a template confuses parsing, it uses a subtemplate Template:Invert-property/Separator for the separator.

(Credit goes to Semantic MediaWiki user DanTMan for this technique.)

Personal tools
Namespaces

Variants
Actions
Navigation
services
Toolbox