Difference between revisions of "GalleryPrintAd"

From Sega Retro

 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{gitem|{{{1}}}|page={{{4}}}|{{#if:{{{text|}}}|{{{text}}}|Print advert}} in {{MagazineName|{{{2}}}|{{{3}}}}}
+
<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
{{#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;">
+
|{{#cargo_query:
{{#fornumargs: i
+
tables=issuenames
| v
+
|fields=issuenames.name=issuename,issuenames.date,issuenames.pdf
| {{#ifexpr: {{#var:i}} mod 4 = 1 |
+
|where=issuenames.code="{{#var:mcode}}" and issuenames.num="{{#var:missue}}"
{{#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}}}}
+
|limit=1
<li>{{MagazineName|{{#var:name}}|{{#var:issue}}}}{{fileref|{{#var:pdf}}|page={{#var:page}}}}</li>
+
|format=template
 +
|template=Magref/Cargo
 +
|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}}
 
}}
 
}}
}}
+
<ul></span></span>}}
</ul></span></span>
+
}}{{#vardefine:imageoverride|}}</includeonly><noinclude>
}}
+
 
}}</includeonly><noinclude>
 
 
{{GalleryPrintAd
 
{{GalleryPrintAd
 
|EGM US BuyersGuide 1989.pdf|egm|bg89|53
 
|EGM US BuyersGuide 1989.pdf|egm|bg89|53
Line 17: Line 24:
 
|EGM US 003.pdf|egm|3|55
 
|EGM US 003.pdf|egm|3|55
 
}}
 
}}
 
+
{{GalleryPrintAd
[[Category:Sega Retro templates]]
+
|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