Difference between revisions of "Template:AuthorDocuments"

From Wikispooks
Jump to navigation Jump to search
m (Text replacement - "captionPlural" to "caption_plural")
(reword section)
 
(One intermediate revision 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>{{SMWDocSection
 
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
|expression= [[Has author::{{PAGENAME}}]]
+
|expression= [[Has objectClass::Document]][[Has author::{{PAGENAME}}]]
|caption_singular= {{PAGENAME}} on Wikispooks
+
|caption_singular=A Document by {{PAGENAME}}
|caption_plural= {{PAGENAME}} on Wikispooks
+
|caption_plural=Documents by {{PAGENAME}}
 
|mainlabel = Title
 
|mainlabel = Title
 
|properties=Display docType/Has publicationDate/Is about/Description
 
|properties=Display docType/Has publicationDate/Is about/Description
 
|headers=Document type/Publication date/Subject(s)/Description
 
|headers=Document type/Publication date/Subject(s)/Description
 
}}</includeonly>
 
}}</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