Difference between revisions of "Template:AuthorDocuments"

From Wikispooks
Jump to navigation Jump to search
(typo)
(Upgrade to use SMWDocSection)
Line 4: Line 4:
 
==''<nowiki>{{PAGENAME}}</nowiki>'' on Wikispooks==
 
==''<nowiki>{{PAGENAME}}</nowiki>'' on Wikispooks==
 
Plus a table of authored document(s) underneath
 
Plus a table of authored document(s) underneath
[[Category:Semantic Templates]]</noinclude><includeonly>
+
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
{{#ifexpr:{{#ask: [[Has author::{{PAGENAME}}]]|format=count}}>0|
+
|expression= [[Has author::{{PAGENAME}}]]
=={{PAGENAME}} on Wikispooks==
+
|captionSingular= {{PAGENAME}} on Wikispooks
{{#ifexpr:{{#ask: [[Has author::{{PAGENAME}}]]|format=count}}>1|''<small>Use Up/Dn symbols to sort''</small>|}}
+
|captionPlural= {{PAGENAME}} on Wikispooks
{{#ask: [[Has author::{{PAGENAME}}]]
 
 
|mainlabel = Wikispooks page
 
|mainlabel = Wikispooks page
|?DocType=Document type
+
|properties=DocType/Has publication date/Is about/Description
|?Has publication date=Publication date
+
|headers=Document type/Publication date/Subject(s)/Description
|?Is about=Subject(s)
+
}}</includeonly>
}}|}}</includeonly>
 

Revision as of 17:02, 1 January 2014

This template places a list of documents authored by {{PAGENAME}} that are hosted on Wikispooks. It has no parameters.

If the page name has authored any documents, it makes a section:

{{PAGENAME}} on Wikispooks

Plus a table of authored document(s) underneath