Difference between revisions of "Template:SourcedDocuments"

From Wikispooks
Jump to navigation Jump to search
(For document sources)
 
(Revise for #matches)
Line 2: Line 2:
 
Template for use on pages that are referenced by the metadata of pages in the Document and/or File namespaces. It has no parameters.
 
Template for use on pages that are referenced by the metadata of pages in the Document and/or File namespaces. It has no parameters.
  
The template places a heading:
+
If there are any related documents, it places a heading:
==Wikispooks documents sourced from this page==
+
==Documents sourced from this page==
 
Plus a table of related documents under this heading
 
Plus a table of related documents under this heading
 
[[Category:Page Templates]]
 
[[Category:Page Templates]]
</noinclude><includeonly>
+
</noinclude><includeonly>{{#ifexpr:{{#ask: [[Sourced from::{{PAGENAME}}]]|format=count}}>0|
==Wikispooks documents sourced from {{PAGENAME}}==
+
==Document{{#ifexpr:{{#ask: [[Sourced from::{{PAGENAME}}]]|format=count}}>1||s}} sourced from {{PAGENAME}}==
<small>''Use the Up/Dn symbols to sort''</small>
+
{{#ifexpr:{{#ask: [[Is about::{{PAGENAME}}]]|format=count}}>1|<small>''Use the Up/Dn symbols to sort''</small>|}}{{#ask: [[Sourced from::{{PAGENAME}}]]
 
{{#ask: [[Sourced from::{{PAGENAME}}]]
 
{{#ask: [[Sourced from::{{PAGENAME}}]]
 
|mainlabel=Document name
 
|mainlabel=Document name

Revision as of 05:39, 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