Difference between revisions of "Template:SMWDocs"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
-->{{LegalCases}}<!-- | -->{{LegalCases}}<!-- | ||
-->{{AuthorDocuments}}<!-- | -->{{AuthorDocuments}}<!-- | ||
+ | -->{{AuthorQuotations}}<!-- | ||
-->{{JobHolders}}<!-- | -->{{JobHolders}}<!-- | ||
-->{{Examples}}<!-- | -->{{Examples}}<!-- | ||
Line 33: | Line 34: | ||
*[[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]]'') | ||
− | *[[Template:AuthorDocuments]] (''[[property:has author]]'') | + | *[[Template:AuthorDocuments]] (''[[property:has author]]'' for [[document]]s) |
+ | *[[Template:AuthorQuotations]] (''[[property:has author]]'' for [[quotations]]) | ||
*[[Template:JobHolders]] (''[[property:has jobTitle]]'') | *[[Template:JobHolders]] (''[[property:has jobTitle]]'') | ||
*[[Template:Examples]] (''[[property:constitutes]]'') | *[[Template:Examples]] (''[[property:constitutes]]'') |
Revision as of 13:22, 13 September 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:
- 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: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:JobHolders (property:has jobTitle)
- Template:Examples (property:constitutes)
- Template:ExampleObjects (property:has objectClass)
- Template:Victims (property:victim of)
- Template:Appointees (property:has appointer)
- Template:Adherents (property:has religion)
- Template:DatedObjects (property:start, property:end & property:occurred on) for events, groups & websites
- 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:Nationals (property:has nationality) for people
- Template:WitnessedEvents (property:has witness)
- Template:Witnesses (-property:has witness)
- Template:RelatedDocuments (property:is about, property:has recipient or
connected through WP+ pagesfor documents) - Template:RelatedQuotations (property:is about for quotations)
- Template:SourcedDocuments (property:sourced from)
- Template:LanguageDocuments (property:has originalLanguage)
- Template:ON_Examples (property:ON_constitutes)
- Template:-ON_causeDocuments (-property:ON_has_cause)
- Template:Alumni (property:has almaMater)
- Template:DisplayRatings (show the rating subobjects contributed by users)
It makes use of {{PAGENAME}} to search for the relevant SMW data. It currently takes no parameters.