Difference between revisions of "Template:SMWDataItem"

From Wikispooks
Jump to navigation Jump to search
(expensive but thorough)
 
(fix)
 
Line 4: Line 4:
 
Usage:<br/>
 
Usage:<br/>
 
:{{t|<nowiki>{{SMWDataItem|Predicate|ObjectName}}</nowiki>}}
 
:{{t|<nowiki>{{SMWDataItem|Predicate|ObjectName}}</nowiki>}}
</noinclude><includeonly>{{#ifexist: Property::{{{1|}}}|{{#if: {{{2|}}}|[[{{{1|}}}::{{{2|}}}| ]]}}|{{RED|Error, [[Property::{{{1|}}}]] is unknown!}}}}</includeonly>
+
</noinclude><includeonly>{{#ifexist: Property:{{{1|}}}|{{#if: {{{2|}}}|[[{{{1|}}}::{{{2|}}}| ]]}}|{{RED|Error, [[Property:{{{1|}}}]] is unknown!}}}}</includeonly>

Latest revision as of 05:24, 26 December 2013

A sub-template for adding a SMW datum with no visual display.
If the predicate page does not exist, it will not add the data, instead it displays a warning message. Usage:

{{SMWDataItem|Predicate|ObjectName}}