Difference between revisions of "Magrow"

From Sega Retro

(thumbnails were removed because larger pages were failing)
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{MagStore|pubcode={{{source}}}|issue={{{issueno}}}|pubpage={{{page}}}|name={{PAGENAME}}}}
+
<includeonly><span style="display:none;">{{#vardefine:oldmagrow|}}{{#if:{{{file|}}}|{{#ifexpr:{{#pos:{{{file|}}}|.pdf}}>0|[[Category:Old magrow template]]{{#vardefine:oldmagrow|yes}}|}}|}}{{#vardefine:pubcode|{{{1|{{{source}}}}}}}}{{#vardefine:issueno|{{{2|{{{issueno}}}}}}}}{{#vardefine:page|{{{3|{{{page}}}}}}}}{{#cargo_query:
|style="vertical-align:top"|{{#if: {{{file|}}} | {{#if: {{{cover|}}} | [[File:{{{file}}}|120x120px|page=1]] | }} {{#ifeq:{{fileext|{{{file}}}}}|pdf| [[File:Logo-pdf.svg|120x120px|link={{fullurl:File:{{{file}}}|page={{{page|1}}}}}]] | [[File:{{{file}}}|120x120px]] }} }}
+
tables=issuenames,magnames
|style="vertical-align:top"|{{MagazineName|{{{source}}}|{{{issueno}}}|nomagname=yes|noissuename=yes}}
+
|fields=issuenames.name=issuename,issuenames.date,issuenames.pdf,magnames.name=magname,magnames.country
|style="vertical-align:top"|{{MagazineName|{{{source}}}|{{{issueno}}}|nopubdate=yes}}
+
|where=issuenames.code="{{#var:pubcode}}" and issuenames.num="{{#var:issueno}}"
|style="vertical-align:top"|{{#if: {{{title|}}} | '''"{{{title}}}"'''<br> | }}{{{comment|}}}
+
|join on=issuenames.code=magnames.code
|-</includeonly><noinclude>
+
|limit=1
 +
|format=template
 +
|template=magref/Cargo
 +
}}</span>{{MagStore|pubcode={{#var:pubcode}}|issue={{#var:issueno}}|pubpage={{#var:page}}|name={{PAGENAME}}}}
 +
{{#ifeq:{{#var:filename}}||{{#vardefine:filename|{{{file|}}}}}|}}
 +
|style="vertical-align:top"|{{#if: {{#var:filename}} | {{#if: {{{cover|}}} | [[File:{{#var:filename}}|120x120px|page=1]] | }} {{#ifeq:{{fileext|{{#var:filename}}}}|pdf| [[File:Logo-pdf.svg|120x120px|link={{fullurl:File:{{#var:filename}}|page={{#var:page}}}}]] | [[File:{{#var:filename}}|120x120px]] }} }}
 +
|style="vertical-align:top"|{{#var:date}}
 +
|style="vertical-align:top"|{{#if:{{#var:pubname}}|''{{#var:pubname}}'' ({{#var:country}}), "{{#var:issuename}}"|{{#if:{{#var:issuename}}||[[Category:Bad magazine reference]]}}}}
 +
|style="vertical-align:top"|{{#if:{{#var:oldmagrow}}|<span style="color:#FF0000;"><b>Editors: PDF magazine with "file" parameter - add to or use [[:Template:IssueNameStore]]</b></span><br/>|}}{{#if: {{{title|}}} | '''"{{{title}}}"'''<br> | }}{{{comment|}}}
 +
|-{{#vardefine:date|}}{{#vardefine:filename|}}{{#vardefine:pubname|}}{{#vardefine:country|}}{{#vardefine:issuename|}}</includeonly><noinclude>
 
See [[Template:Magtable]] for usage.
 
See [[Template:Magtable]] for usage.
 
{{magtable|
 
{{magtable|
{{magrow|file=CVG UK 120.pdf|page=10}}
+
{{magrow
 +
| file=CVG UK 120.pdf
 +
| page=10
 +
| cover=
 +
| source=cvg
 +
| issueno=120
 +
| title=Old style
 +
| comment=
 +
}}
 +
{{magrow|cvg|120|10
 +
| title=New style
 +
| comment=
 +
}}
 +
{{magrow
 +
| file=Igromania 5 BG Lunacy PD II.jpg
 +
| page=
 +
| cover=
 +
| source=igr
 +
| issueno=5
 +
| title=
 +
| comment=
 +
}}
 
}}
 
}}
  
 
[[Category:Sega Retro templates]]
 
[[Category:Sega Retro templates]]
 
</noinclude>
 
</noinclude>

Revision as of 06:09, 11 May 2019

See Template:Magtable for usage.

Back to: [[]].
More...More...Expression error: Unexpected > operator.More...
File Date Source Title and comments
Logo-pdf.svg 1991-10-15 Computer & Video Games (UK), "November 1991" Editors: PDF magazine with "file" parameter - add to or use Template:IssueNameStore
"Old style"
Logo-pdf.svg 1991-10-15 Computer & Video Games (UK), "November 1991" "New style"
Igromania 5 BG Lunacy PD II.jpg 1998-xx-xx Igromania (BG), "Avgust 1998"