Difference between revisions of "Template:SourcedDocuments"

From Wikispooks
Jump to navigation Jump to search
(fix)
(Upgrade to use SMWDocSection)
Line 6: Line 6:
 
Plus a table of sourced document(s) under this heading
 
Plus a table of sourced document(s) under this heading
 
[[Category:Semantic Templates]]
 
[[Category:Semantic Templates]]
</noinclude><includeonly>{{#ifexpr:{{#ask: [[Sourced from::{{PAGENAME}}]]|format=count}}>0|
+
</noinclude><includeonly>{{SMWDocSection
==Document{{#ifexpr:{{#ask: [[Sourced from::{{PAGENAME}}]]|format=count}}>1|s|}} sourced from {{PAGENAME}}==
+
|expression= [[Sourced from::{{PAGENAME}}]]
{{#ifexpr:{{#ask: [[Is about::{{PAGENAME}}]]|format=count}}>1|<small>''Use the Up/Dn symbols to sort''</small>|}}{{#ask: [[Sourced from::{{PAGENAME}}]]
+
|captionSingular=A document sourced from {{PAGENAME}}
|mainlabel=Document name
+
|captionPlural=Documents sourced from {{PAGENAME}}
|?Has author=Author(s)
+
|mainlabel=Title
|?Is about=Subject(s)
+
|properties=Display docType/Is about/Has publication date/Has author/Description
|?Has publication date=Publication date
+
|headers=Type/Subject(s)/Publication date/Author(s)/Description
}}|}}
+
}}</includeonly>
<includeonly>
 

Revision as of 14:43, 4 January 2014

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:

Document(s) sourced from {{PAGENAME}}

Plus a table of sourced document(s) under this heading