Template:Magazine: Difference between revisions
Jump to navigation
Jump to search
Yaron Koren (talk | contribs) (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 | <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. | |||
'''Circulation:''' {{{circulation|}}} | |||
'''Country of origin:''' {{{country| }}} | |||
'''Language of publication:''' {{{language| }}} | |||
'''URL:''' {{{url| }}} | |||
'''Opinion items that have appeared in this magazine:''' | |||
{{#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: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