Difference between revisions of "GalleryPrintAd"

From Sega Retro

Line 1: Line 1:
<includeonly><!-- pdf | name | issue | page -->
+
<includeonly>{{gitem|{{{1}}}|page={{{4}}}|{{#if:{{{text|}}}|{{{text}}}|Print advert}} in {{MagazineName|{{{2}}}|{{{3}}}}}
{{#vardefine:loopNo|0}}{{#vardefine:i|0}}{{#fornumargs: number
+
{{#if: {{{5|}}} | <br><span style="font-size:8pt;">also published in:<span class="mw-collapsible mw-collapsed"><ul style="margin-top:0px; margin-bottom:0px; margin-right:0px;">
| value
+
{{#fornumargs: i
|
+
| v
{{#switch: {{#var: i}}
+
| {{#ifexpr: {{#var:i}} mod 4 = 1 |
|0={{#vardefine:pdf|{{#var: value}}}}
+
{{#vardefine:pdf|{{{{{#var:i}}|}}}}}{{incvar|i}}{{#vardefine:name|{{{{{#var:i}}|}}}}}{{incvar|i}}{{#vardefine:issue|{{{{{#var:i}}|}}}}}{{incvar|i}}{{#vardefine:page|{{#explode:{{expandpages|{{{{{#var:i}}|}}}}}|,|0}}}}
|1={{#vardefine:name|{{#var: value}}}}
+
<li>{{MagazineName|{{#var:name}}|{{#var:issue}}}}{{fileref|{{#var:pdf}}|page={{#var:page}}}}</li>
|2={{#vardefine:issue|{{#var: value}}}}
 
|3={{#vardefine:page|{{#var: value}}}}
 
 
}}
 
}}
{{addvar|i|1}}
 
{{#ifeq:{{#var:i}}|4|
 
 
{{#ifeq:{{#var:loopNo}}|0
 
|{{#var:pdf}}¦page#{{#var:page}}¦{{#if:{{{text|}}}|{{{text}}}|Print advert}} in {{MagazineName|{{#var:name}}|{{#var:issue}}}}
 
|{{#ifeq:{{#var:loopNo}}|1|<br/><span style="font-size:8pt;">also published in:<span class="mw-collapsible mw-collapsed">
 
<ul style="margin-top:0px; margin-bottom:0px; margin-right:0px;">|}}
 
<li>{{MagazineName|{{#var:name}}|{{#var:issue}}}}{{#if:{{#pos:{{#var:page}}|-}}|{{#vardefine:page|{{#explode:{{#var:page}}|-|0}}}}}}{{fileref|{{#var:pdf}}|page={{#var:page}}}}</li>
 
 
}}
 
}}
 
+
</ul></span></span>
{{#vardefine:i|0}}{{addvar|loopNo|1}}|}}
+
}}
}}{{#ifeq:{{#var:loopNo}}|1||</ul></span></span>}}</includeonly><noinclude>[[Category:Sega Retro templates]]
+
}}</includeonly><noinclude>
 
+
{{GalleryPrintAd
{{gallery
 
|{{GalleryPrintAd
 
 
|EGM US BuyersGuide 1989.pdf|egm|bg89|53
 
|EGM US BuyersGuide 1989.pdf|egm|bg89|53
 
|EGM US 001.pdf|egm|1|47-48
 
|EGM US 001.pdf|egm|1|47-48
Line 29: Line 17:
 
|EGM US 003.pdf|egm|3|55
 
|EGM US 003.pdf|egm|3|55
 
}}
 
}}
}}
+
 
 +
[[Category:Sega Retro templates]]
 
</noinclude>
 
</noinclude>

Revision as of 21:48, 20 May 2017

Expression error: Unexpected < operator. File:EGM US BuyersGuide 1989.pdf

PDF
<div style="width:Expression error: Unexpected < operator.px; padding-left:2px; padding-top:5px; padding-right:2px;">Print advert in Electronic Gaming Monthly (US) #bg89: "1989 Buyer's Guide" (1989-xx-xx)
also published in: