Difference between revisions of "Template:RelatedDocuments"

From Wikispooks
Jump to navigation Jump to search
(nbsp on header)
(slightly more robust code)
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:<br/>
 
If there are any related documents, it places a heading:<br/>
Line 5: Line 5:
 
Plus a table of related documents under this heading [[Category:Semantic Templates]]
 
Plus a table of related documents under this heading [[Category:Semantic Templates]]
 
</noinclude><includeonly>{{SMWDocSection
 
</noinclude><includeonly>{{SMWDocSection
|expression= [[Is about::{{PAGENAME}}]] OR [[-WpNsRelatedPage.Has WS page::{{PAGENAME}}]]
+
|expression= [[Is about::{{FULLPAGENAME}}]] OR [[-WpNsRelatedPage.Has WS page::{{FULLPAGENAME}}]]
 
|captionSingular=Related Document
 
|captionSingular=Related Document
 
|captionPlural=Related Documents
 
|captionPlural=Related Documents

Revision as of 13:32, 4 July 2015

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