Template:Author page: Difference between revisions

From Shifti
Jump to navigation Jump to search
making the property name natural language
add a parameter - there's at least one author whose page will need this
Line 1: Line 1:
<includeonly>{{SMW Base|author name|{{BASEPAGENAME}}}}[[Category:Author|{{BASEPAGENAME}}]]</includeonly><noinclude>This template automagically sets the 'authorname' parameter and adds the page to the [[:Category:Author|Author Category]].</noinclude>
<includeonly>{{SMW Base|author name|{{{1|{{BASEPAGENAME}}}}}}}[[Category:Author|{{{1|{{BASEPAGENAME}}}}}]]</includeonly><noinclude>This template automagically sets the 'authorname' parameter and adds the page to the [[:Category:Author|Author Category]].
 
It takes one optional parameter, an override for the name of the author for cases where it doesn't match the username. For example:
 
<pre>{{author page|Bard, Michael}}</pre>
 
Otherwise it defaults to the current page's name.
</noinclude>

Revision as of 23:38, 12 February 2009

This template automagically sets the 'authorname' parameter and adds the page to the Author Category.

It takes one optional parameter, an override for the name of the author for cases where it doesn't match the username. For example:

{{author page|Bard, Michael}}

Otherwise it defaults to the current page's name.