Difference between revisions of "Template:RelatedDocuments"

From Wikispooks
Jump to navigation Jump to search
m (tweek)
(trim WPconnection)
 
(27 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]]
[[Category:Page Templates]]
+
</noinclude><includeonly>{{SMWDocSection
</noinclude><includeonly>
+
|expression= [[Has objectClass::Document]][[Is about::{{FULLPAGENAME}}]] OR [[Has objectClass::Document]][[Has recipient::{{FULLPAGENAME}}]]  
==Wikispooks documents related to {{PAGENAME}}==
+
|caption_singular=Related Document
''Use the Up/Dn symbols to sort''
+
|caption_plural=Related Documents
{{#ask: [[Is about::{{PAGENAME}}]]
+
|mainlabel=Title
|mainlabel=Document name
+
|properties=Display docType/Has publicationDate/Has author/Description
|?Has author=Author(s)
+
|headers=Type/Publication&nbsp;date/Author(s)/Description
|?Has publication date=Publication date
+
}}</includeonly>
}}
 
<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