Template:Item: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
No edit summary
(Removed SMW property settings)
Line 14: Line 14:
{| 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|{{#set:Was written by=x}}{{#formredlink:target=x|form=Author|alt_form[0]=Editorial board}}}}
| {{#arraymap:{{{author|}}}|,|x|{{#formredlink:target=x|form=Author|alt_form[0]=Editorial board}}}}
|-
|-
! Source
! Source
Line 20: Line 20:
|-
|-
! Date
! Date
| [[Was published on::{{{date|}}}]]
| {{{date|}}}
|-
|-
! URL
! URL
| [[Has URL::{{{url|}}}]]
| {{{url|}}}
|-
|-
! Quote
! Quote
Line 29: Line 29:
{| style="background: #fafaea; padding: 10px; border: 1px solid #cccccc;"
{| style="background: #fafaea; padding: 10px; border: 1px solid #cccccc;"
| style="vertical-align: top;" | [[File:Quotes-start.png]]
| style="vertical-align: top;" | [[File:Quotes-start.png]]
| style="padding: 0 10px 0 10px;" | [[Has quote::{{{quote|}}}]]
| style="padding: 0 10px 0 10px;" | {{{quote|}}}
| style="vertical-align: bottom;" | [[Image:Quotes-end.png]]
| style="vertical-align: bottom;" | [[Image:Quotes-end.png]]
|}
|}
|}{{#set:Was published by={{{source|}}}|Has item summary=[[{{PAGENAME}}]] by {{#arraymap:{{{author|}}}|,|x|[[x]]}} (<em>[[{{{source|}}}]]</em>, {{{date|}}}) ([{{{url|}}} view])}}
|}


{{#cargo_query:table=Item_references|where=Previous_item="{{PAGENAME}}"|intro=The following other items refer to this item:&nbsp;|default=}}
{{#cargo_query:table=Item_references|where=Previous_item="{{PAGENAME}}"|intro=The following other items refer to this item:&nbsp;|default=}}

Revision as of 17:52, August 7, 2015

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.