Template:Magazine: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
(Test of a subcategory)
 
No edit summary
Tag: Manual revert
 
(22 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>
<noinclude>This template holds information on a magazine; it should be called with the following structure:
This is a [[:Category:Magazines|magazine]].
<pre>{{magazine
|circulation=The reported circulation
|country=The country in which the source is published
|language=The language in which it is written
|url=The main URL for this source
}}
</pre>
{{#cargo_attach:_table=Sources}}Extra text after the attach
</noinclude><includeonly>{{#cargo_store:_table=Sources|Type=Magazine|Circulation={{{circulation|}}}|Country={{{country|}}}|Language={{{language|}}}|URL={{{url|}}} }}
This is a magazine.


Publication type: [[Publication type:={{{type| }}}]]
'''Circulation:''' {{{circulation|}}}


Circulation: [[Circulation:={{{circulation|}}}]]
'''Country of origin:''' {{{country| }}}


Country of origin: [[Publication country:={{{country| }}}]]
'''Language of publication:''' {{{language| }}}


Language of publication: [[Publication language:={{{language| }}}]]
'''URL:''' {{{url| }}}


URL: [[url:={{{url| }}} ]]
'''Opinion items that have appeared in this magazine:'''


Opinion items that have appeared in this magazine:
{{#cargo_query:tables=Items,Opinions
 
|join on=Items._pageName=Opinions._pageName
<ask mainlabel="Title" sort="Published on" order="descending"> [[Category:Items]] [[Published by::{{PAGENAME}}]] [[Was written by::*]] [[Published on:=*]] [[Published on:=+]] [[Addresses topic::*]]
|where=Source = "{{PAGENAME}}"
</ask>
|fields=Items._pageName=Title,Author,Date,Topic
|group by=Items._pageName
|order by=Date DESC
}}


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

Latest revision as of 07:02, May 11, 2022

This template holds information on a magazine; it should be called with the following structure:

{{magazine
|circulation=The reported circulation
|country=The country in which the source is published
|language=The language in which it is written
|url=The main URL for this source
}}

This template adds rows to the table "Sources", which is declared by the template Source. View table.Extra text after the attach