Difference between revisions of "Template:ONPropertyPair"

From Wikispooks
Jump to navigation Jump to search
(better late than never)
 
(fix)
 
Line 4: Line 4:
 
Usage:<br/>  
 
Usage:<br/>  
 
:{{t|<nowiki>{{ONPropertyPair|BasePredicate|ObjectList|ON_ObjectList}}</nowiki>}}
 
:{{t|<nowiki>{{ONPropertyPair|BasePredicate|ObjectList|ON_ObjectList}}</nowiki>}}
</noinclude><includeonly>{{#ifexist: Property:{{{1|}}}|{{#arraymap:{{{2|}}}|,|x|{{{1}}}::x| ]]|&#32;}}{{#arraymap:{{{3|}}}|,|x|ON_{{{1}}}::x| ]]|&#32;}}|{{RED|Error, [[Property:{{{1|}}}]] is unknown!}}}}</includeonly>
+
</noinclude><includeonly>{{#ifexist: Property:{{{1|}}}|{{#arraymap:{{{2|}}}|,|x|[[{{{1}}}::x| ]]|&#32;}}{{#arraymap:{{{3|}}}|,|x|[[ON_{{{1}}}::x| ]]|&#32;}}|{{RED|Error, [[Property:{{{1|}}}]] is unknown!}}}}</includeonly>

Latest revision as of 06:29, 10 January 2014

A sub-template for adding a pair of properties one of which is an ON_ counterpart, from comma separated lists. It makes no with no visual display.
Usage:

{{ONPropertyPair|BasePredicate|ObjectList|ON_ObjectList}}