Difference between revisions of "Template:SMWData"

From Wikispooks
Jump to navigation Jump to search
(Add "Constitutes")
(Clarify)
Line 1: Line 1:
 
<noinclude>[[category:Semantic Templates]]
 
<noinclude>[[category:Semantic Templates]]
'''This template is for adding Metadata. It should not be used when a template is already in use that adds metadata. (So, not for {{temp|website}}s, {{temp|document}}s, {{temp|event}}s, files or {{temp|person}}s)'''<br/>
+
'''This template is for adding Metadata where no template is in use. It should ''not'' be used when a template is already in use that adds metadata.<br/>
 +
(So, not for {{temp|website}}s, {{temp|document}}s, {{temp|event}}s, files or {{temp|person}}s)'''<br/>
 
''It doesn't produce any visual output'' - it only adds semantic data to the document. As such, it can be placed anywhere in the document, however it is good practice to use it at the top.
 
''It doesn't produce any visual output'' - it only adds semantic data to the document. As such, it can be placed anywhere in the document, however it is good practice to use it at the top.
 
{{BLUE|The blue parameter not be marked up at all; they should be Wikispooks page names (whether or not the page yet exists).}}<br/>
 
{{BLUE|The blue parameter not be marked up at all; they should be Wikispooks page names (whether or not the page yet exists).}}<br/>

Revision as of 11:07, 26 December 2013

This template is for adding Metadata where no template is in use. It should not be used when a template is already in use that adds metadata.
(So, not for {{website}}s, {{document}}s, {{event}}s, files or {{person}}s)
It doesn't produce any visual output - it only adds semantic data to the document. As such, it can be placed anywhere in the document, however it is good practice to use it at the top. The blue parameter not be marked up at all; they should be Wikispooks page names (whether or not the page yet exists).
Usage:

{{SMWData
OPTIONAL DETAILS:
|Constitutes=a pagename which this subject consitutues (e.g. "censorship", "lone nut") (Property:Constitutes)
|Constitutes2...=
|Description=Document description
|Subject=The subject of the document
|Subject2, Subject3... =Extra subjects
}}