Difference between pages "Friends of Fiji" and "Template:Invert-property"

From Peace Corps Wiki
(Difference between pages)
Jump to: navigation, search
 
m (1 revision)
 
Line 1: Line 1:
{{Stub}}
+
<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.
  
 +
Usage: <nowiki>{{Invert-property|Derived property name|Its inverse property name}}</nowiki>
  
==See also==
+
This hides the annotation by specifying blank as the alternate text.  Since "<tt>| </tt>" in a template confuses parsing, it uses a subtemplate [[Template:Invert-property/Separator]] for the separator.
* [[Fiji]]
+
  
==External Links==
+
See [[California]] for use of this template.
[http://fofiji.org/ Friends of Fiji]
+
  
[[Category:Fiji]] [[Category:Friends]]
+
(Credit goes to Semantic MediaWiki user DanTMan for this technique.)
[[Category:RPCV Associations]]
+
[[Category:Semantic templates]]
 +
 
 +
</noinclude>
 +
 
 +
 
 +
 
 +
<includeonly>[[{{{2}}}::{{#ask:[[{{{1}}}::{{PAGENAMEE}}]]|link=none|sep={{Invert-property/Separator|{{{2}}}}}}}|
 +
]]</includeonly>

Latest revision as of 10:42, 21 May 2014

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.)