Difference between revisions of "Template:AuthorDocuments"

From Wikispooks
Jump to navigation Jump to search
m (Change property to Has author)
(reword section)
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
+
<noinclude>'''This template places a list of documents authored by <nowiki>{{PAGENAME}}</nowiki> that are hosted on this site.''' It has no parameters.
Template for use in [[:Category:Authors]] pages to place a list of documents and or files by the author that are hosted on Wikispooks. It has no parameters.
 
  
The template places a heading:
+
If the page name has authored any documents, it makes a section:
==''<Author name>'' on Wikispooks==
+
==''Document(s) by <nowiki>{{PAGENAME}}</nowiki>''==
Plus a table of related documents under this heading
+
Plus a table of authored document(s) underneath
[[Category:Page Templates]]</noinclude><includeonly>
+
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
=={{PAGENAME}} on Wikispooks==
+
|expression= [[Has objectClass::Document]][[Has author::{{PAGENAME}}]]
 
+
|caption_singular=A Document by {{PAGENAME}}
{{#ask: [[Has author::{{PAGENAME}}]]
+
|caption_plural=Documents by {{PAGENAME}}
|mainlabel = Wikispooks page
+
|mainlabel = Title
|?DocType=Document type
+
|properties=Display docType/Has publicationDate/Is about/Description
|?Has publication date=Publication date
+
|headers=Document type/Publication date/Subject(s)/Description
|?Is about=Subject(s)
+
}}</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