Template:Author: Difference between revisions
Jump to navigation
Jump to search
Yaron Koren (talk | contribs) (Undoing testing) |
Yaron Koren (talk | contribs) (Various changes) |
||
Line 6: | Line 6: | ||
}} | }} | ||
</pre> | </pre> | ||
{{#tdb_declare:_table=Authors|First name=Text|Last name=Text|Political affiliation=Text}} | |||
</noinclude><includeonly> | </noinclude><includeonly> | ||
This is an [[:Category:Authors|author]]. | This is an [[:Category:Authors|author]]. {{#set:Has first name={{{first name|}}}|Has last name={{{last name|}}} }} | ||
Political affiliation: [[Political affiliation::{{{political affiliation| }}}]] | Political affiliation: [[Political affiliation::{{{political affiliation|}}}]] | ||
Items by this author: | Items by this author: | ||
{{#ask:[[Was written by::{{PAGENAME}}]]|? Addresses topic|format=ul}} | {{#ask:[[Was written by::{{PAGENAME}}]]|? Addresses topic|format=ul}} | ||
{{#tdb_set:_table=Authors|First name={{{first name|}}}|Last name={{{last name|}}}|Political affiliation={{{political affiliation|}}} }} | |||
[[Category:Authors]] | [[Category:Authors]] | ||
{{DEFAULTSORT:{{#if:{{{last name|}}}|{{{last name}}}, {{{first name|}}}|{{PAGENAME}}}}}} | {{DEFAULTSORT:{{#if:{{{last name|}}}|{{{last name}}}, {{{first name|}}}|{{PAGENAME}}}}}} | ||
</includeonly> | </includeonly> |
Revision as of 12:15, August 4, 2014
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) }}
{{#tdb_declare:_table=Authors|First name=Text|Last name=Text|Political affiliation=Text}}