Template:Item: Difference between revisions
Jump to navigation
Jump to search
Yaron Koren (talk | contribs) (Changed query) |
Yaron Koren (talk | contribs) (Added #formredlink) |
||
Line 10: | Line 10: | ||
</pre> {{#cargo_declare:_table=Items|Author=List (,) of Page|Source=Page|Date=Date|URL=URL|Quote=Text (size=600)|Summary=Wikitext (size=600)}} | </pre> {{#cargo_declare:_table=Items|Author=List (,) of Page|Source=Page|Date=Date|URL=URL|Quote=Text (size=600)|Summary=Wikitext (size=600)}} | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
This is an opinion item. {{#cargo_store:_table=Items|Author={{{author|}}}|Source={{{source|}}}|Date={{{date|}}}|URL={{{url|}}}|Quote={{{quote|}}}|Summary=[[{{PAGENAME}}]] by {{#arraymap:{{{author|}}}|,|x|[[x]]}} (''[[{{{source|}}}]]'', {{{date|}}}) ([{{{url|}}} view])}} | This is an opinion item. {{#cargo_store:_table=Items|Author={{{author|}}}|Source={{{source|}}}|Date={{{date|}}}|URL={{{url|}}}|Quote={{{quote|}}}|Summary=[[{{PAGENAME}}]] by {{#arraymap:{{{author|}}}|,|x|[[x]]}} (''[[{{{source|}}}]]'', {{{date|}}}) ([{{{url|}}} view])}}{{#set:Was published by={{{source|}}}| | ||
{| border="0" cellpadding="4" cellspacing="4" style="margin-bottom: 5px;" | {| border="0" cellpadding="4" cellspacing="4" style="margin-bottom: 5px;" | ||
! Author(s) | ! Author(s) | ||
| {{#arraymap:{{{author|}}}|,|x| | | {{#arraymap:{{{author|}}}|,|x|{{#set:Was written by=x}}{{#formredlink:target=x|form=Author|alt_form[0]=Editorial board}}}} | ||
|- | |- | ||
! Source | ! Source | ||
| | | {{#formredlink:target={{{source|}}}|alt_form[0]=Source|alt_form[1]=Magazine|alt_form[2]=Online magazine}} | ||
|- | |- | ||
! Date | ! Date |
Revision as of 04:38, December 4, 2014
This template holds information on an opinion item (a column, op-ed, blog post, etc.). It should be called in the following format:
{{Item |author=The author or authors of the item; if there is more than one, their names should be separated with commas |source=The publication in which it was printed/posted |date=The date of publication |url=A URL at which it can be found, if one exists |quote=A one-to-four-sentence quote from the item, that captures the spirit of the opinion it holds }}
This template defines the table "Items". View table.