Difference between revisions of "Template:AuthorDocuments"

From Wikispooks
Jump to navigation Jump to search
(typo)
(reword section)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>'''This template places a list of documents authored by <nowiki>{{PAGENAME}}</nowiki> that are hosted on Wikispooks.''' It has no parameters.
+
<noinclude>'''This template places a list of documents authored by <nowiki>{{PAGENAME}}</nowiki> that are hosted on this site.''' It has no parameters.
  
 
If the page name has authored any documents, it makes a section:
 
If the page name has authored any documents, it makes a section:
==''<nowiki>{{PAGENAME}}</nowiki>'' on Wikispooks==
+
==''Document(s) by <nowiki>{{PAGENAME}}</nowiki>''==
 
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 objectClass::Document]][[Has author::{{PAGENAME}}]]
=={{PAGENAME}} on Wikispooks==
+
|caption_singular=A Document by {{PAGENAME}}
{{#ifexpr:{{#ask: [[Has author::{{PAGENAME}}]]|format=count}}>1|''<small>Use Up/Dn symbols to sort''</small>|}}
+
|caption_plural=Documents by {{PAGENAME}}
{{#ask: [[Has author::{{PAGENAME}}]]
+
|mainlabel = Title
|mainlabel = Wikispooks page
+
|properties=Display docType/Has publicationDate/Is about/Description
|?DocType=Document type
+
|headers=Document type/Publication date/Subject(s)/Description
|?Has publication date=Publication date
+
}}</includeonly>
|?Is about=Subject(s)
 
}}|}}</includeonly>
 

Latest revision as of 13:33, 11 September 2016

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

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

Document(s) by {{PAGENAME}}

Plus a table of authored document(s) underneath