Difference between revisions of "Template:SourcedDocuments"

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

Revision as of 05:44, 21 December 2013

Template for use on pages that are referenced by the metadata of pages in the Document and/or File namespaces. It has no parameters.

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

Documents sourced from this page

Plus a table of related documents under this heading