Difference between revisions of "Template:SMWData"

From Wikispooks
Jump to navigation Jump to search
(VIOLET)
(Explain parameters)
Line 2: Line 2:
 
'''This template is for adding SMW data where no main template is in use. It should be used at the ''top'' of the page. It should ''not'' be used when a template is already in use that adds SMW data.<br/>
 
'''This template is for adding SMW data where no main template is in use. It should be used at the ''top'' of the page. It should ''not'' be used when a template is already in use that adds SMW data.<br/>
 
(So, not for {{temp|website}}s, {{temp|document}}s, {{temp|event}}s, files or {{temp|person}}s)'''<br/>
 
(So, not for {{temp|website}}s, {{temp|document}}s, {{temp|event}}s, files or {{temp|person}}s)'''<br/>
''The only parameter displayed is the 'description'.'' - All the other parameters contribute only to the document's semantic mark up.
+
{{Explain parameters}}
{{BLUE|The blue parameters not be marked up at all; they should be Wikispooks page names (whether or not the page yet exists).}}<br/>
 
{{GREEN|The green parameters should be /-separated lists.}}<br/>
 
 
'''Usage:'''
 
'''Usage:'''
 
<poem>
 
<poem>

Revision as of 19:03, 23 June 2014

This template is for adding SMW data where no main template is in use. It should be used at the top of the page. It should not be used when a template is already in use that adds SMW data.
(So, not for {{website}}s, {{document}}s, {{event}}s, files or {{person}}s)

Blue parameters are for a single Wikispooks page name (If no suitable page exists, then pick a title for a future page)
Brown parameters are for numbers
Green parameters are for comma-separated lists of page names (Or planned page names).
Navy parameters are for dates
Orange parameters are for booleans. (Usually, either "Yes" or just leave blank).
Purple parameters are URLs.
Violet parameters are slash-separated lists.
Pink parameters are for coordinates.
Crossed out parameters were formerly available, but have been upgraded. Some may still work, but do not use these.

Usage:

{{SMWData
OPTIONAL DETAILS:
|ON_cause=a pagename which this subject caused according to the official narrative (Property:ON_has_cause)
|ON_constitutes=a pagename which this subject constitutes according to the official narrative (Property:ON_constitutes)
|Constitutes=a pagename which this subject constitutes (e.g. "censorship", "lone nut") (Property:Constitutes)
|Constitutes2...=
|description=Document description
|wikipedia=Wikipedia URL
|Subject=The subject of the document
|Subject2, Subject3... =Extra subjects
|KeyProperties= Slash separated list of important properties of this page (Property:Has keyProperties)
|KeyPropertyHeaders= Slash separated list of property descriptions (same length as the above) (Property:Has keyPropertyHeaders)
}}