Difference between revisions of "Template:RelatedDocuments"

From Wikispooks
Jump to navigation Jump to search
m (create page)
(trim WPconnection)
 
(31 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
+
<noinclude>'''This template ''should'' be used on ''any'' pages which might have related documents.''' It has no parameters.
Template for use on regular pages that are referenced by the metadata of pages in the Document and/or File namespaces. It has no parameters.
 
  
The template places a heading:
+
If there are any related documents, it places a heading:<br/>
==Wikispooks documents related to this page==
+
==Related document(s)==
Plus a table of related documents under this heading
+
Plus a table of related documents under this heading [[Category:Semantic Templates]]
 
+
</noinclude><includeonly>{{SMWDocSection
[[Category:Page Templates]]
+
|expression= [[Has objectClass::Document]][[Is about::{{FULLPAGENAME}}]] OR [[Has objectClass::Document]][[Has recipient::{{FULLPAGENAME}}]]  
</noinclude>
+
|caption_singular=Related Document
<includeonly>
+
|caption_plural=Related Documents
==Wikispooks documents related to this page==
+
|mainlabel=Title
 
+
|properties=Display docType/Has publicationDate/Has author/Description
{{#ask: [[Is about::{{PAGENAME}}]]
+
|headers=Type/Publication&nbsp;date/Author(s)/Description
|mainlabel=Document name
+
}}</includeonly>
|?Is author=Author(s)
 
|?Has publication date=Publication date
 
}}
 
<includeonly>
 

Latest revision as of 23:16, 1 October 2016

This template should be used on any pages which might have related documents. It has no parameters.

If there are any related documents, it places a heading:

Related document(s)

Plus a table of related documents under this heading