Difference between revisions of "Template:RelatedDocuments"

From Wikispooks
Jump to navigation Jump to search
(tweek)
(trim WPconnection)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>'''This template can be used on ''any'' pages which might have related documents.''' It has no parameters.
+
<noinclude>'''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:
+
If there are any related documents, it places a heading:<br/>
 
==Related document(s)==
 
==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:Semantic Templates]]
+
</noinclude><includeonly>{{SMWDocSection
</noinclude><includeonly>{{#ifexpr:{{#ask: [[Is about::{{PAGENAME}}]] OR [[-WpNsRelatedPage.Has WS page::{{PAGENAME}}]]|format=count}}>0|
+
|expression= [[Has objectClass::Document]][[Is about::{{FULLPAGENAME}}]] OR [[Has objectClass::Document]][[Has recipient::{{FULLPAGENAME}}]]  
==Related document{{#ifexpr:{{#ask: [[Is about::{{PAGENAME}}]] OR [[-WpNsRelatedPage.Has WS page::{{PAGENAME}}]]|format=count}}>1|s|}}==
+
|caption_singular=Related Document
{{#ifexpr:{{#ask: [[Is about::{{PAGENAME}}]] OR [[-WpNsRelatedPage.Has WS page::{{PAGENAME}}]]|format=count}}>1|<small>''Use the Up/Dn symbols to sort''</small>|}}{{#ask: [[Is about::{{PAGENAME}}]] OR [[-WpNsRelatedPage.Has WS page::{{PAGENAME}}]]
+
|caption_plural=Related Documents
|mainlabel=Document name
+
|mainlabel=Title
|?Has author=Author(s)
+
|properties=Display docType/Has publicationDate/Has author/Description
|?Has publication date=Publication date
+
|headers=Type/Publication&nbsp;date/Author(s)/Description
}}|}}</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