Template:Invert-property

MyWikiBiz, Author Your Legacy — Friday November 22, 2024
Revision as of 13:09, 16 May 2010 by Roygbiv (talk | contribs) (Created page with '<noinclude> 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. Us…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to 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.

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.

See California for use of this template.

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