Difference between revisions of "Template:SMWDocs"

From Wikispooks
Jump to navigation Jump to search
(Add DatedObjects)
(better description)
Line 26: Line 26:
  
 
<noinclude><!-- Now fixed?
 
<noinclude><!-- Now fixed?
{{TemplateProblem|Only the first set of documents gets its own header. Subsequent sets are poorly displayed.}}-->[[category:Semantic Templates| ]]This template is suitable for inclusion on most if not all main namespace pages which do not already have it, just before the "References" section. It is a catch all for including documents which SMW data shows are of relevance to the page on which it is included.<br/>
+
{{TemplateProblem|Only the first set of documents gets its own header. Subsequent sets are poorly displayed.}}-->[[category:Semantic Templates| ]]'''This template is the most important semantuic template on the site, and unless you're interested in editing templates, it's the only one you need to know about.''' It should be included on all main namespace pages, just before the "References" section. It generates a bunch of extra sections from the other pages' SMW data.<br/><br/>
This template is actually very simple, it just includes a bunch more from [[:category:Semantic Templates]].<br/>
+
''This template's structure is very simple, it first includes:
In the following order:
 
 
*[[Template:SMWDefaultMarkup]] - adds a default set of markup for the page, ''allows the page to be picked up by [[Template:SubPages]]''
 
*[[Template:SMWDefaultMarkup]] - adds a default set of markup for the page, ''allows the page to be picked up by [[Template:SubPages]]''
 +
''Then the following templates from [[:category:Semantic Templates]]:''
 
*[[Template:PerpetratedEvents]] (''[[property:has perpetrator]]'')
 
*[[Template:PerpetratedEvents]] (''[[property:has perpetrator]]'')
 
*[[Template:LegalCases]] (''[[property:has authority]]'', ''[[property:has defendant]]'', ''[[property:has plaintiff]]'')
 
*[[Template:LegalCases]] (''[[property:has authority]]'', ''[[property:has defendant]]'', ''[[property:has plaintiff]]'')
Line 39: Line 39:
 
*[[Template:Appointees]] (''[[property:has appointer]]'')
 
*[[Template:Appointees]] (''[[property:has appointer]]'')
 
*[[Template:Adherents]] (''[[property:has religion]]'')
 
*[[Template:Adherents]] (''[[property:has religion]]'')
*[[Template:DatedObjects]] (''[[property:has location]]'') for [[event]]s, [[group]]s & [[website]]s
+
*[[Template:DatedObjects]] (''[[property:start]]'', ''[[property:end]]'' & ''[[property:occurred on]]'') for [[event]]s, [[group]]s & [[website]]s
 
*[[Template:LocatedNationStates]] (''[[property:has location]]'')
 
*[[Template:LocatedNationStates]] (''[[property:has location]]'')
 
*[[Template:LocatedEvents]] (''[[property:has location]]'') for [[event]]s
 
*[[Template:LocatedEvents]] (''[[property:has location]]'') for [[event]]s

Revision as of 05:39, 25 August 2016

This template is the most important semantuic template on the site, and unless you're interested in editing templates, it's the only one you need to know about. It should be included on all main namespace pages, 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.