Template:Author: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
mNo edit summary
(Removed SMW property settings)
Line 8: Line 8:
{{#cargo_declare:_table=Authors|First_name=Text (hidden)|Last_name=Text (hidden)|Political_affiliation=Text}}
{{#cargo_declare:_table=Authors|First_name=Text (hidden)|Last_name=Text (hidden)|Political_affiliation=Text}}
</noinclude><includeonly>{{#cargo_store:_table=Authors|First_name={{{first name|}}}|Last_name={{{last name|}}}|Political_affiliation={{{political affiliation|}}} }}
</noinclude><includeonly>{{#cargo_store:_table=Authors|First_name={{{first name|}}}|Last_name={{{last name|}}}|Political_affiliation={{{political affiliation|}}} }}
This is an [[:Category:Authors|author]]. {{#set:Has first name={{{first name|}}}|Has last name={{{last name|}}} }}
This is an [[:Category:Authors|author]].


Political affiliation: [[Political affiliation::{{{political affiliation|}}}]]
Political affiliation: {{{political affiliation|}}}


Items by this author:
Items by this author:

Revision as of 17:54, August 7, 2015

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)
}}

This template defines the table "Authors". View table.