Difference between revisions of "Template:SMWDocs"

From Wikispooks
Jump to navigation Jump to search
(Adjust order of sections - promote related quotations)
(Simpler thermometer)
(12 intermediate revisions by the same user not shown)
Line 12: Line 12:
 
-->{{RelatedQuotations}}<!--
 
-->{{RelatedQuotations}}<!--
 
-->{{DatedObjects}}<!--
 
-->{{DatedObjects}}<!--
 +
-->{{AmbassadorsToHere}}<!--
 
-->{{LocatedNationStates}}<!--
 
-->{{LocatedNationStates}}<!--
 
-->{{LocatedEvents}}<!--
 
-->{{LocatedEvents}}<!--
Line 18: Line 19:
 
-->{{Nationals}}<!--
 
-->{{Nationals}}<!--
 
-->{{PlannedEvents}}<!--
 
-->{{PlannedEvents}}<!--
 +
-->{{SponsoredEvents}}<!--
 
-->{{ParticipatedEvents}}<!--
 
-->{{ParticipatedEvents}}<!--
 
-->{{Participants}}<!--
 
-->{{Participants}}<!--
Line 30: Line 32:
 
-->{{ConvictedPeople}}<!--
 
-->{{ConvictedPeople}}<!--
 
-->{{Alumni}}<!--
 
-->{{Alumni}}<!--
-->{{DisplayRatings}}</includeonly>
+
-->{{DisplayRatings}}<!-- Temporary extra push for patrons 2020-07-23 ...
 +
-->{{WSThermometer}}</includeonly>
  
 
<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 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.'''<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 semantic template on the site; unless you're interested in editing templates, it's the only one you need to know about.'''<br/>  
To use it, just include the text <nowiki>{{SMWDocs}}</nowiki> 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.<br/><br/>
+
To use it, just include the text <nowiki>{{SMWDocs}}</nowiki> 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]].<br/><br/>
 
''This template's structure is very simple, it first includes:
 
''This template's structure is very simple, it first includes:
 
*[[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]]''
Line 50: Line 53:
 
*[[Template:RelatedQuotations]] (''[[property:is about]]'' for [[quotations]])
 
*[[Template:RelatedQuotations]] (''[[property:is about]]'' for [[quotations]])
 
*[[Template:DatedObjects]] (''[[property:start]]'', ''[[property:end]]'' & ''[[property:occurred on]]'') for [[event]]s, [[group]]s & [[website]]s
 
*[[Template:DatedObjects]] (''[[property:start]]'', ''[[property:end]]'' & ''[[property:occurred on]]'') for [[event]]s, [[group]]s & [[website]]s
 +
*[[Template:AmbassadorsToHere]] (''[[property:has fullPageName]]'') for [[nation state]]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
Line 55: Line 59:
 
*[[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:PlannedEvents]] (''[[property:has planner]]'')
 +
*[[Template:SponsoredEvents]] (''[[property:has sponsor]]'')
 
*[[Template:ParticipatedEvents]] (''[[property:has participant]]'')
 
*[[Template:ParticipatedEvents]] (''[[property:has participant]]'')
 
*[[Template:Participants]] (''-[[property:has participant]]'')
 
*[[Template:Participants]] (''-[[property:has participant]]'')

Revision as of 16:40, 27 September 2020

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.