Difference between revisions of "Template:RelatedDocuments"

From Wikispooks
Jump to navigation Jump to search
(tweek)
(Upgrade to use SMWDocSection)
Line 5: Line 5:
 
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>{{#ifexpr:{{#ask: [[Is about::{{PAGENAME}}]] OR [[-WpNsRelatedPage.Has WS page::{{PAGENAME}}]]|format=count}}>0|
+
</noinclude><includeonly>{{ask
==Related document{{#ifexpr:{{#ask: [[Is about::{{PAGENAME}}]] OR [[-WpNsRelatedPage.Has WS page::{{PAGENAME}}]]|format=count}}>1|s|}}==
+
|expression= [[Is about::{{PAGENAME}}]] OR [[-WpNsRelatedPage.Has WS page::{{PAGENAME}}]]
{{#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}}]]
+
|captionSingular= Related document
|mainlabel=Document name
+
|captionPlural= Related documents
|?Has author=Author(s)
+
|mainlabel = Title
|?Has publication date=Publication date
+
|properties=DocType/Has publication date/Description
}}|}}</includeonly>
+
|headers=Document type/Publication date/Description
 +
}}
 +
</includeonly>

Revision as of 18:21, 1 January 2014

This template can 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