Difference between revisions of "Template:SMWDocs"

From Wikispooks
Jump to navigation Jump to search
(clarify)
(6 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
-->{{Appointees}}<!--
 
-->{{Appointees}}<!--
 
-->{{Adherents}}<!--
 
-->{{Adherents}}<!--
-->{{DatedObjects}}<!--
+
-->{{RelatedQuotations}}<!--
 +
--><!--{{DatedObjects}}--><!--
 +
-->{{AmbassadorsToHere}}<!--
 
-->{{LocatedNationStates}}<!--
 
-->{{LocatedNationStates}}<!--
 
-->{{LocatedEvents}}<!--
 
-->{{LocatedEvents}}<!--
Line 16: Line 18:
 
-->{{LocatedJobs}}<!--
 
-->{{LocatedJobs}}<!--
 
-->{{Nationals}}<!--
 
-->{{Nationals}}<!--
 +
-->{{PlannedEvents}}<!--
 
-->{{ParticipatedEvents}}<!--
 
-->{{ParticipatedEvents}}<!--
 
-->{{Participants}}<!--
 
-->{{Participants}}<!--
Line 21: Line 24:
 
-->{{Witnesses}}<!--
 
-->{{Witnesses}}<!--
 
-->{{RelatedDocuments}}<!--
 
-->{{RelatedDocuments}}<!--
-->{{RelatedQuotations}}<!--
 
 
-->{{SourcedDocuments}}<!--
 
-->{{SourcedDocuments}}<!--
 
-->{{SourcedQuotations}}<!--
 
-->{{SourcedQuotations}}<!--
Line 27: Line 29:
 
-->{{ON_Examples}}<!--
 
-->{{ON_Examples}}<!--
 
-->{{-ON_causeDocuments}}<!--
 
-->{{-ON_causeDocuments}}<!--
 +
-->{{ConvictedPeople}}<!--
 
-->{{Alumni}}<!--
 
-->{{Alumni}}<!--
 
-->{{DisplayRatings}}</includeonly>
 
-->{{DisplayRatings}}</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 46: Line 49:
 
*[[Template:Appointees]] (''[[property:has appointer]]'')
 
*[[Template:Appointees]] (''[[property:has appointer]]'')
 
*[[Template:Adherents]] (''[[property:has religion]]'')
 
*[[Template:Adherents]] (''[[property:has religion]]'')
 +
*[[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 57: Line 62:
 
*[[Template:Witnesses]] (''-[[property:has witness]]'')
 
*[[Template:Witnesses]] (''-[[property:has witness]]'')
 
*[[Template:RelatedDocuments]] (''[[property:is about]]'', ''[[property:has recipient]]'' for [[document]]s)
 
*[[Template:RelatedDocuments]] (''[[property:is about]]'', ''[[property:has recipient]]'' for [[document]]s)
*[[Template:RelatedQuotations]] (''[[property:is about]]'' for [[quotations]])
 
 
*[[Template:SourcedDocuments]] (''[[property:sourced from]]'' for [[document]]s)
 
*[[Template:SourcedDocuments]] (''[[property:sourced from]]'' for [[document]]s)
 
*[[Template:SourcedQuotations]] (''[[property:sourced from]]'' for [[quotation]]s)
 
*[[Template:SourcedQuotations]] (''[[property:sourced from]]'' for [[quotation]]s)
Line 63: Line 67:
 
*[[Template:ON_Examples]] (''[[property:ON_constitutes]]'')
 
*[[Template:ON_Examples]] (''[[property:ON_constitutes]]'')
 
*[[Template:-ON_causeDocuments]] (''-[[property:ON_has_cause]]'')
 
*[[Template:-ON_causeDocuments]] (''-[[property:ON_has_cause]]'')
 +
*[[Template:ConvictedPeople]] (''[[property:has criminalConviction]]'')
 
*[[Template:Alumni]] (''[[property:has almaMater]]'')
 
*[[Template:Alumni]] (''[[property:has almaMater]]'')
 
*[[Template:DisplayRatings]] (show the ''rating subobjects'' contributed by users)
 
*[[Template:DisplayRatings]] (show the ''rating subobjects'' contributed by users)
 
It makes use of <nowiki>{{PAGENAME}}</nowiki> to search for the relevant SMW data. It currently takes no parameters.</noinclude>
 
It makes use of <nowiki>{{PAGENAME}}</nowiki> to search for the relevant SMW data. It currently takes no parameters.</noinclude>

Revision as of 14:22, 15 June 2019

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.