Template:Author: Difference between revisions
Jump to navigation
Jump to search
Yaron Koren (talk | contribs) (Removed SMW property settings) |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
}} | }} | ||
</pre> | </pre> | ||
{{#cargo_declare:_table=Authors|First_name= | {{#cargo_declare:_table=Authors|First_name=String (hidden)|Last_name=String (hidden)|Political_affiliation=String}} | ||
</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]]. | This is an [[:Category:Authors|author]]. | ||
Line 22: | Line 22: | ||
[[Category:Authors]] | [[Category:Authors]] | ||
{{DEFAULTSORT:{{#if:{{{last name|}}}|{{{last name}}}, {{{first name|}}}|{{PAGENAME}}}}}} | {{DEFAULTSORT:{{#if:{{{last name|}}}|{{{last name}}}, {{{first name|}}}|{{PAGENAME}}}}}} | ||
</includeonly> | </includeonly> |
Latest revision as of 13:34, February 21, 2024
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.