Many thanks to our Patrons who cover ~2/3 of our hosting bill. Please join them if you can.
Template:SM
(Redirected from Template:SMWDocs)
Jump to navigation
Jump to search
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 {{SM}} on a single line on its own, just after the last of the sections but, just before the "References" section (if there is one). It makes all the Semantic Magic happen, i.e. it generates a set of extra sections from the other pages' SMW data, by making the following set of calls to Template:SMWDocSection:
- 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:AuthorDocuments (property:has author for documents)
- Template:AuthorQuotations (property:has author for quotations)
- Template:Examples (property:constitutes) for all object classes
- Template:ExampleObjects (property:has objectClass)
- Template:Victims (property:victim of)
- Template:Appointees (property:has appointer)
- Template:Adherents (property:has religion) for religions
- Template:RelatedQuotations (property:is about for quotations)
- Template:DatedObjects (property:start & property:end) for events, groups & websites
- Template:AmbassadorsToHere (property:has fullPageName) for nation states
- Template:LocatedNationStates (property:has location)
- Template:LocatedEvents (property:has location) for events
- Template:LocatedGroups (property:has headquarters) for groups
- Template:LocatedJobs (property:has location) for jobs
- Template:Employees (property:has employer) for groups
- Template:KnownMembers (property:has member) for persons
- Template:PartyMembers (property:has politicalParty) for groups
- Template:Nationals (property:has nationality) for nation states
- Template:PlannedEvents (property:has planner)
- Template:SponsoredEvents (property:has sponsor)
- Template:ParticipatedEvents (property:has participant) for persons)
- Template:Participants (-property:has participant) for events)
- Template:WitnessedEvents (property:has witness) for persons)
- Template:Witnesses (-property:has witness) for events)
- Template:RelatedDocuments (property:is about, property:has recipient for documents)
- Template:SourcedDocuments (property:sourced from for documents)
- Template:SourcedQuotations (property:sourced from for quotations)
- Template:LanguageDocuments (property:has originalLanguage)
- Template:ON_Examples (property:ON_constitutes) for all object classes
- Template:-ON_causeDocuments (-property:ON_has_cause)
- Template:ConvictedPeople (property:has criminalConviction)
- Template:Alumni (property:has almaMater) for groups (especially colleges, schools & universities
- Template:DisplayRatings (show the rating subobjects contributed by users) for all object classes
All these templates use {{PAGENAME}} to search for the relevant SMW data. Before calling any of these however, it first calls Template:SMWDefaultMarkup, to add an extra set of semantic markup to the page. It takes no parameters.