Difference between revisions of "GalleryPrintAd"

From Sega Retro

m
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><!-- pdf | name | issue | page -->
+
<includeonly>{{#vardefine:gpa|1}}{{#switch:{{fileext|{{{1|}}}}}|pdf|PDF={{incvar|gpa}}[[Category:GalleryPrintAd file defined]]|jpg|JPG|jpeg|JPEG|png|PNG={{incvar|gpa}}{{#vardefine:imageoverride|{{{1|}}}}}}}{{#vardefine:mcode|{{{{{#var:gpa}}|}}}}}{{incvar|gpa}}{{#vardefine:missue|{{{{{#var:gpa}}|}}}}}{{incvar|gpa}}{{#vardefine:mpage|{{{{{#var:gpa}}|}}}}}{{#vardefine:mpageclean|{{#explode:{{#explode:{{#var:mpage}}|,|0}}|-|0}}}}{{gitem
{{#vardefine:loopNo|0}}{{#vardefine:i|0}}{{#fornumargs: number
+
|{{#cargo_query:
| value
+
tables=issuenames
|
+
|fields=issuenames.name=issuename,issuenames.date,issuenames.pdf
{{#switch: {{#var: i}}
+
|where=issuenames.code="{{#var:mcode}}" and issuenames.num="{{#var:missue}}"
|0={{#vardefine:pdf|{{#var: value}}}}
+
|limit=1
|1={{#vardefine:name|{{#var: value}}}}
+
|format=template
|2={{#vardefine:issue|{{#var: value}}}}
+
|template=Magref/Cargo
|3={{#vardefine:page|{{#var: value}}}}
+
|more results text=
 +
}}{{#if:{{#var:imageoverride}}|{{#var:imageoverride}}|Logo-pdf.svg}}|page={{#var:mpageclean}}|link={{fullurl:File:{{#var:filename}}|page={{#var:mpageclean}}}}
 +
| {{#if:{{{text|}}}|{{{text|}}}|Print advert}} in {{MagazineName|{{#var:mcode}}|{{#var:missue}}}}{{MagStore|pubcode={{#var:mcode}}|issue={{#var:missue}}|pubpage={{#var:mpageclean}}|name={{#titleparts:{{PAGENAME}}}}}}{{incvar|gpa}}
 +
{{#if: {{{{{#var:gpa}}|}}} | <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;">
 +
{{#while:|{{{{{#var:gpa}}|}}}
 +
| {{#switch:{{fileext|{{{{{#var:gpa}}|}}}}}|pdf|PDF={{incvar|gpa}}[[Category:GalleryPrintAd file defined]]|}}{{#vardefine:mcode|{{{{{#var:gpa}}|}}}}}{{incvar|gpa}}{{#vardefine:missue|{{{{{#var:gpa}}|}}}}}{{incvar|gpa}}{{#vardefine:mpage|{{{{{#var:gpa}}|}}}}}{{#vardefine:mpageclean|{{#explode:{{#explode:{{#var:mpage}}|,|0}}|-|0}}}}
 +
<li style="font-size:8pt;">{{MagazineName|{{#var:mcode}}|{{#var:missue}}}}{{magref|{{#var:mcode}}|{{#var:missue}}|{{#var:mpageclean}}}}{{MagStore|pubcode={{#var:mcode}}|issue={{#var:missue}}|pubpage={{#var:mpageclean}}|name={{PAGENAME}}}}</li>{{incvar|gpa}}
 
}}
 
}}
{{addvar|i|1}}
+
<ul></span></span>}}
{{#ifeq:{{#var:i}}|4|
+
}}{{#vardefine:imageoverride|}}</includeonly><noinclude>
  
{{#ifeq:{{#var:loopNo}}|0
+
{{GalleryPrintAd
|{{#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}}}}{{fileref|{{#var:pdf}}|page={{#var:page}}}}</li>
 
}}
 
 
 
{{#vardefine:i|0}}{{addvar|loopNo|1}}|}}
 
}}{{#ifeq:{{#var:loopNo}}|1||</ul></span></span>}}</includeonly><noinclude>[[Category:Sega Retro templates]]
 
 
 
{{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
+
|EGM US 001.pdf|egm|1|47-48
 
|EGM US 002.pdf|egm|2|68
 
|EGM US 002.pdf|egm|2|68
 
|EGM US 003.pdf|egm|3|55
 
|EGM US 003.pdf|egm|3|55
 
}}
 
}}
 +
{{GalleryPrintAd
 +
|egm|bg89|53
 +
|egm|1|47-48
 +
|egm|2|68
 +
|egm|3|55
 +
}}
 +
{{GalleryPrintAd
 +
|not even a real pdf.pdf|egm|bg89|53
 +
|egm|1|47-48
 +
|EGM US 002.pdf|egm|2|68
 +
|egm|3|55
 +
}}
 +
{{GalleryPrintAd
 +
|SMS TR PrintAdvert 08 03 91.jpg|egm|bg89|53
 
}}
 
}}
 +
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 10:17, 19 July 2022

Logo-pdf.svg
Print advert in Electronic Gaming Monthly (US) #bg89: "1989 Buyer's Guide" (1989-xx-xx)
also published in:
Logo-pdf.svg
Logo-pdf.svg
Print advert in Electronic Gaming Monthly (US) #bg89: "1989 Buyer's Guide" (1989-xx-xx)
also published in:
Logo-pdf.svg
Logo-pdf.svg
Print advert in Electronic Gaming Monthly (US) #bg89: "1989 Buyer's Guide" (1989-xx-xx)
also published in:
Logo-pdf.svg
SMS TR PrintAdvert 08 03 91.jpg
Print advert in Electronic Gaming Monthly (US) #bg89: "1989 Buyer's Guide" (1989-xx-xx)
SMS TR PrintAdvert 08 03 91.jpg