Difference between revisions of "Template:Source"

From Discourse DB
Jump to navigation Jump to search
Line 12: Line 12:


The order of the fields is not relevant.
The order of the fields is not relevant.
{{#cargo_declare:_table=Sources|Type=Text (size=20;allowed values=Newspaper, Magazine, Online magazine, Blog)|Circulation=Number|Monthly_unique_visitors=Integer|Country=Text (size=50)|Language=Text (size=50)|URL=URL}}
{{#cargo_declare:_table=Sources|Type=Text (size=20;allowed values=Newspaper, Magazine, Online magazine, Blog)|Circulation=Integer|Monthly_unique_visitors=Integer|Country=Text (size=50)|Language=Text (size=50)|URL=URL}}
</noinclude><includeonly>{{#cargo_store:_table=Sources|Type={{{type|}}}|Circulation={{{circulation|}}}|Monthly_unique_visitors={{{monthly unique visitors|}}}|Country={{{country|}}}|Language={{{language|}}}|URL={{{url|}}} }}
</noinclude><includeonly>{{#cargo_store:_table=Sources|Type={{{type|}}}|Circulation={{{circulation|}}}|Monthly_unique_visitors={{{monthly unique visitors|}}}|Country={{{country|}}}|Language={{{language|}}}|URL={{{url|}}} }}
This is a [[:Category:Sources|source]].
This is a [[:Category:Sources|source]].

Revision as of 16:19, September 4, 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.