1,028 bytes added
, 4 years ago
<noinclude>REQUIRES CARGO <br>This template holds information on an author; it should be called with the following structure:
<pre>{{Author
|first name=The author's first name; used for sorting
|last name=The author's last name; used for sorting
|political affiliation= (This is a very subjective field)
}}
</pre>
{{#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|}}} }}
This is an [[:Category:Authors|author]].
Political affiliation: {{{political affiliation|}}}
Items by this author:
{{#cargo_query:tables=Items, Opinions
|join on=Items._pageName=Opinions._pageName
|where=Author HOLDS "{{PAGENAME}}"
|fields=Items._pageName,Topic,Position_link=Position,Stance
|format=ul
}}
[[Category:Authors]]
{{DEFAULTSORT:{{#if:{{{last name|}}}|{{{last name}}}, {{{first name|}}}|{{PAGENAME}}}}}}
</includeonly>