Template:Source: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
No edit summary
(Changed query)
Line 28: Line 28:
Opinion items that have appeared in this source:
Opinion items that have appeared in this source:


{{#ask:[[Category:Items]][[Was published by::{{PAGENAME}}]]|mainlabel=Title|sort=Was published on|order=descending|?Was written by=Author|?Was published on=Date|?Addresses topic=Topic}}
{{#cargo_query:tables=Items,Opinions
|join on=Items._pageName=Opinions._pageName
|where=Source = "{{PAGENAME}}"
|fields=Items._pageName=Title,Author,Date,Topic
|group by=Items._pageName
|order by=Date DESC
}}


[[Category:Sources]]
[[Category:Sources]]
</includeonly>
</includeonly>

Revision as of 23:10, November 25, 2014

This template holds information on an online or printed publication; it should be called with the following structure:

{{Source
|publication type=The type of publication; can be Newspaper, Magazine, Online magazine or Blog
|circulation=The reported circulation, if it's a newspaper or magazine
|monthly unique visitors=Used for blogs or online magazines
|country=The country in which the source is published
|language=The language in which it is written
|url=The main URL for this source
}}

For a newspaper, if there are different numbers for circulation for weekdays and Sundays, go with the higher one.

The order of the fields is not relevant. This template defines the table "Sources". View table.