Difference between revisions of "Template:SMWDocs"

From Wikispooks
Jump to navigation Jump to search
(Typo and clarify)
(PlannedEvents)
(2 intermediate revisions by the same user not shown)
Line 16: Line 16:
 
-->{{LocatedJobs}}<!--
 
-->{{LocatedJobs}}<!--
 
-->{{Nationals}}<!--
 
-->{{Nationals}}<!--
 +
-->{{PlannedEvents}}<!--
 +
-->{{ParticipatedEvents}}<!--
 +
-->{{Participants}}<!--
 
-->{{WitnessedEvents}}<!--
 
-->{{WitnessedEvents}}<!--
 
-->{{Witnesses}}<!--
 
-->{{Witnesses}}<!--
Line 35: Line 38:
 
''Then the following templates from [[:category:Semantic Templates]]:''
 
''Then the following templates from [[:category:Semantic Templates]]:''
 
*[[Template:PerpetratedEvents]] (''[[property:has perpetrator]]'')
 
*[[Template:PerpetratedEvents]] (''[[property:has perpetrator]]'')
*[[Template:JobHolders]] (''[[property:has jobTitle]]'')
+
*[[Template:JobHolders]] (''[[property:has jobTitle]]'') - also refers to ''[[property:has deputy]]''
 
*[[Template:LegalCases]] (''[[property:has authority]]'', ''[[property:has defendant]]'', ''[[property:has plaintiff]]'')
 
*[[Template:LegalCases]] (''[[property:has authority]]'', ''[[property:has defendant]]'', ''[[property:has plaintiff]]'')
 
*[[Template:AuthorDocuments]] (''[[property:has author]]'' for [[document]]s)
 
*[[Template:AuthorDocuments]] (''[[property:has author]]'' for [[document]]s)
Line 50: Line 53:
 
*[[Template:LocatedJobs]] (''[[property:has location]]'') for [[job]]s
 
*[[Template:LocatedJobs]] (''[[property:has location]]'') for [[job]]s
 
*[[Template:Nationals]] (''[[property:has nationality]]'') for [[people]]
 
*[[Template:Nationals]] (''[[property:has nationality]]'') for [[people]]
 +
*[[Template:ParticipatedEvents]] (''[[property:has participant]]'')
 +
*[[Template:Participants]] (''-[[property:has participant]]'')
 
*[[Template:WitnessedEvents]] (''[[property:has witness]]'')
 
*[[Template:WitnessedEvents]] (''[[property:has witness]]'')
 
*[[Template:Witnesses]] (''-[[property:has witness]]'')
 
*[[Template:Witnesses]] (''-[[property:has witness]]'')

Revision as of 17:46, 20 February 2019

This template is the most important semantic template on the site, and 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.

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.