Difference between revisions of "Template:SMWDocs"

From Wikispooks
Jump to navigation Jump to search
(Add PerpetratedEvents)
(KnownMembers)
 
(51 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<includeonly>{{SMWDefaultMarkup}}<!--
 +
-->{{PerpetratedEvents}}<!--
 +
-->{{JobHolders}}<!--
 +
-->{{LegalCases}}<!--
 +
-->{{AuthorDocuments}}<!--
 +
-->{{AuthorQuotations}}<!--
 +
-->{{Examples}}<!--
 +
-->{{ExampleObjects}}<!--
 +
-->{{Victims}}<!--
 +
-->{{Appointees}}<!--
 +
-->{{Adherents}}<!--
 +
-->{{RelatedQuotations}}<!--
 +
-->{{DatedObjects}}<!--
 +
-->{{AmbassadorsToHere}}<!--
 +
-->{{LocatedNationStates}}<!--
 +
-->{{LocatedEvents}}<!--
 +
-->{{LocatedGroups}}<!--
 +
-->{{LocatedJobs}}<!--
 +
-->{{Employees}}<!--
 +
-->{{KnownMembers}}<!--
 +
-->{{PartyMembers}}<!--
 +
-->{{Nationals}}<!--
 +
-->{{PlannedEvents}}<!--
 +
-->{{SponsoredEvents}}<!--
 +
-->{{ParticipatedEvents}}<!--
 +
-->{{Participants}}<!--
 +
-->{{WitnessedEvents}}<!--
 +
-->{{Witnesses}}<!--
 +
-->{{RelatedDocuments}}<!--
 +
-->{{SourcedDocuments}}<!--
 +
-->{{SourcedQuotations}}<!--
 +
-->{{LanguageDocuments}}<!--
 +
-->{{ON_Examples}}<!--
 +
-->{{-ON_causeDocuments}}<!--
 +
-->{{ConvictedPeople}}<!--
 +
-->{{Alumni}}<!--
 +
-->{{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 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 semantic template on the site; unless you're interested in editing templates, it's the only one you need to know about.'''<br/>
This template is actually very simple, it just includes a bunch more from [[:category:Semantic Templates]].<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/>
In the following order:
+
''This template's structure is very simple, it first includes:
*[[Template:SMWDefaultMarkup]] - adds a default set of markup for the page
+
*[[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: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]]'')
+
*[[Template:AuthorDocuments]] (''[[property:has author]]'' for [[document]]s)
 +
*[[Template:AuthorQuotations]] (''[[property:has author]]'' for [[quotations]])
 +
*[[Template:Examples]] (''[[property:constitutes]]'')
 +
*[[Template:ExampleObjects]] (''[[property:has objectClass]]'')
 
*[[Template:Victims]] (''[[property:victim of]]'')
 
*[[Template:Victims]] (''[[property:victim of]]'')
*[[Template:JobHolders]] (''[[property:has jobTitle]]'')
+
*[[Template:Appointees]] (''[[property:has appointer]]'')
*[[Template:ExampleDocuments]] (''[[property:constitutes]]'')
+
*[[Template:Adherents]] (''[[property:has religion]]'')
*[[Template:ExampleObjects]] (''[[property:has objectClass]]'')
+
*[[Template:RelatedQuotations]] (''[[property:is about]]'' for [[quotations]])
*[[Template:RelatedDocuments]] (''[[property:is about]]'', or connected through WP+ pages)
+
*[[Template:DatedObjects]] (''[[property:start]]'', ''[[property:end]]'' & ''[[property:occurred on]]'') for [[event]]s, [[group]]s & [[website]]s
*[[Template:SourcedDocuments]] (''[[property:sourced from]]'')
+
*[[Template:AmbassadorsToHere]] (''[[property:has fullPageName]]'') for [[nation state]]s
*[[Template:LanguageDocuments]] (''[[property:has originalLanguage]]'')
+
*[[Template:LocatedNationStates]] (''[[property:has location]]'')
*[[Template:LocatedEvents]] (''[[property:has location]]'')
+
*[[Template:LocatedEvents]] (''[[property:has location]]'') for [[event]]s
*[[Template:PerpetratedEvents]] (''[[property:has perpetrator]]'')
+
*[[Template:LocatedGroups]] (''[[property:has headquarters]]'') for [[group]]s
 +
*[[Template:LocatedJobs]] (''[[property:has location]]'') for [[job]]s
 +
*[[Template:Employees]] (''[[property:has employer]]'') for [[groups]]
 +
*[[Template:KnownMembers]] (''[[property:has member]]'') for [[person]]s
 +
*[[Template:PartyMembers]] (''[[property:has politicalParty]]'') for [[group]]s
 +
*[[Template:Nationals]] (''[[property:has nationality]]'') for [[nation state]]s
 +
*[[Template:PlannedEvents]] (''[[property:has planner]]'')
 +
*[[Template:SponsoredEvents]] (''[[property:has sponsor]]'')
 +
*[[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]]'')
*[[Template:ON_ExampleDocuments]] (''[[property:ON_constitutes]]'')
+
*[[Template:RelatedDocuments]] (''[[property:is about]]'', ''[[property:has recipient]]'' for [[document]]s)
 +
*[[Template:SourcedDocuments]] (''[[property:sourced from]]'' for [[document]]s)
 +
*[[Template:SourcedQuotations]] (''[[property:sourced from]]'' for [[quotation]]s)
 +
*[[Template:LanguageDocuments]] (''[[property:has originalLanguage]]'')
 +
*[[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: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>
<includeonly>{{SMWDefaultMarkup}}<!--
 
-->{{LegalCases}}<!--
 
-->{{AuthorDocuments}}<!--
 
-->{{Victims}}<!--
 
-->{{JobHolders}}<!--
 
-->{{ExampleDocuments}}<!--
 
-->{{ExampleObjects}}<!--
 
-->{{RelatedDocuments}}<!--
 
-->{{SourcedDocuments}}<!--
 
-->{{LanguageDocuments}}<!--
 
-->{{LocatedEvents}}<!--
 
-->{{PerpetratedEvents}}<!--
 
-->{{WitnessedEvents}}<!--
 
-->{{Witnesses}}<!--
 
-->{{ON_ExampleDocuments}}<!--
 
-->{{-ON_causeDocuments}}</includeonly>
 

Latest revision as of 13:33, 4 January 2023

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.