Difference between revisions of "Template:RelatedDocuments"

From Wikispooks
Jump to navigation Jump to search
(Special case for only one document)
(fix)
Line 6: Line 6:
 
[[Category:Page Templates]]
 
[[Category:Page Templates]]
 
</noinclude><includeonly>{{#ifexpr:{{#ask: [[Is about::{{PAGENAME}}]]|format=count}}>0|
 
</noinclude><includeonly>{{#ifexpr:{{#ask: [[Is about::{{PAGENAME}}]]|format=count}}>0|
==Wikispooks document{{#ifexpr:{{#ask: [[Is about::{{PAGENAME}}]]|format=count}}>1||s}} related to {{PAGENAME}}==
+
==Wikispooks document{{#ifexpr:{{#ask: [[Is about::{{PAGENAME}}]]|format=count}}>1|s|}} related to {{PAGENAME}}==
 
{{#ifexpr:{{#ask: [[Is about::{{PAGENAME}}]]|format=count}}>1|<small>''Use the Up/Dn symbols to sort''</small>|}}{{#ask: [[Is about::{{PAGENAME}}]]
 
{{#ifexpr:{{#ask: [[Is about::{{PAGENAME}}]]|format=count}}>1|<small>''Use the Up/Dn symbols to sort''</small>|}}{{#ask: [[Is about::{{PAGENAME}}]]
 
|mainlabel=Document name
 
|mainlabel=Document name

Revision as of 05:10, 21 December 2013

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

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

Wikispooks documents related to this page

Plus a table of related documents under this heading