Template:Author: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
No edit summary
(Undoing testing)
Line 1: Line 1:
<noinclude>
<noinclude>This template holds information on an author of opinion items; it should be called with the following structure:
This is the "Author" template.
<pre>{{author
It should be called in the following format:
|first name=The author's first name; used for sorting
<pre>
|last name=The author's last name; used for sorting
{{Author
|political affiliation=Liberal, Conservative, etc. (This is a very subjective field)
|Political affiliation=
|First name=
|Last name=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
</noinclude><includeonly>
</noinclude><includeonly>{{#set:Has last name={{{Last name|}}}|}}
This is an [[:Category:Authors|author]]. [[Has first name::{{{first name| }}}| ]] [[Has last name::{{{last name| }}}| ]]
{| class="wikitable"
 
! Political affiliation
Political affiliation: [[Political affiliation::{{{political affiliation| }}}]]
| [[Political affiliation::{{{Political affiliation|}}}]]
 
{{#if:{{{First name|}}}|{{!}}-
Items by this author:
! Has first name
{{#ask:[[Was written by::{{PAGENAME}}]]|? Addresses topic|format=ul}}
{{!}} [[Has first name::{{{First name|}}}]]}}
|}


[[Category:Authors]]
[[Category:Authors]]
{{DEFAULTSORT:{{#if:{{{last name|}}}|{{{last name}}}, {{{first name|}}}|{{PAGENAME}}}}}}
</includeonly>
</includeonly>

Revision as of 01:04, October 17, 2011

This template holds information on an author of opinion items; it should be called with the following structure:

{{author
|first name=The author's first name; used for sorting
|last name=The author's last name; used for sorting
|political affiliation=Liberal, Conservative, etc. (This is a very subjective field)
}}