Difference between revisions of "Template:AuthorDocuments"

From Wikispooks
Jump to navigation Jump to search
m (tweek and typo)
(No heading if no documents)
Line 1: Line 1:
<noinclude>
+
<noinclude>'''This template places a list of documents authored by <nowiki>{{{PAGENAME}}}</nowiki> that are hosted on Wikispooks.''' 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==
+
==''<nowiki>{{{PAGENAME}}}</nowiki>'' on Wikispooks==
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>
 +
{{#ifexpr:{{#ask: [[Has author::{{PAGENAME}}]]|format=count}}>0|
 
=={{PAGENAME}} on Wikispooks==
 
=={{PAGENAME}} on Wikispooks==
''<small>Use Up/Dn symbols to sort''</small>
+
{{#ifexpr:{{#ask: [[Has author::{{PAGENAME}}]]|format=count}}>1|''<small>Use Up/Dn symbols to sort''</small>|}}
 
{{#ask: [[Has author::{{PAGENAME}}]]
 
{{#ask: [[Has author::{{PAGENAME}}]]
 
|mainlabel = Wikispooks page
 
|mainlabel = Wikispooks page
Line 13: Line 13:
 
|?Has publication date=Publication date
 
|?Has publication date=Publication date
 
|?Is about=Subject(s)
 
|?Is about=Subject(s)
}}
+
}}|}}</includeonly>
</includeonly>
 

Revision as of 08:12, 21 December 2013

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