Difference between revisions of "Template:SMWDocs"

From Wikispooks
Jump to navigation Jump to search
(Simpler thermometer)
Line 17: Line 17:
 
-->{{LocatedGroups}}<!--
 
-->{{LocatedGroups}}<!--
 
-->{{LocatedJobs}}<!--
 
-->{{LocatedJobs}}<!--
 +
-->{{Employees}}<!--
 
-->{{Nationals}}<!--
 
-->{{Nationals}}<!--
 
-->{{PlannedEvents}}<!--
 
-->{{PlannedEvents}}<!--
Line 58: Line 59:
 
*[[Template:LocatedGroups]] (''[[property:has headquarters]]'') for [[group]]s
 
*[[Template:LocatedGroups]] (''[[property:has headquarters]]'') for [[group]]s
 
*[[Template:LocatedJobs]] (''[[property:has location]]'') for [[job]]s
 
*[[Template:LocatedJobs]] (''[[property:has location]]'') for [[job]]s
 +
*[[Template:Employees]] (''[[property:has employer]]'') for [[groups]]
 
*[[Template:Nationals]] (''[[property:has nationality]]'') for [[people]]
 
*[[Template:Nationals]] (''[[property:has nationality]]'') for [[people]]
 
*[[Template:PlannedEvents]] (''[[property:has planner]]'')
 
*[[Template:PlannedEvents]] (''[[property:has planner]]'')

Revision as of 17:18, 17 February 2022

This template is the most important semantic template on the site; unless you're interested in editing templates, it's the only one you need to know about.
To use it, just include the text {{SMWDocs}} on a single line on its own, just before the "References" section. It generates a bunch of extra sections from the other pages' SMW data, by a bunch of calls to Template:SMWDocSection.

This template's structure is very simple, it first includes:

Then the following templates from category:Semantic Templates:

It makes use of {{PAGENAME}} to search for the relevant SMW data. It currently takes no parameters.