Difference between revisions of "GalleryPrintAd"

From Sega Retro

(Created page with "<!-- pdf | name | issue | page --> {{#vardefine:i|0}}{{#forargs: | key | value {{#switch: {{#var: i}} |0=PDF: {{#var: value}} |1=NAME: {{#var: value}} |2=ISSUE: {{#var: value}...")
 
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- 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:i|0}}{{#forargs:
+
|{{#cargo_query:
| key
+
tables=issuenames
| value
+
|fields=issuenames.name=issuename,issuenames.date,issuenames.pdf
{{#switch: {{#var: i}}
+
|where=issuenames.code="{{#var:mcode}}" and issuenames.num="{{#var:missue}}"
|0=PDF: {{#var: value}}
+
|limit=1
|1=NAME: {{#var: value}}
+
|format=template
|2=ISSUE: {{#var: value}}
+
|template=Magref/Cargo
|3=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:i|0}}|}}
+
}}{{#vardefine:imageoverride|}}</includeonly><noinclude>
}}<noinclude>[[Category:Sega Retro templates]]</noinclude>
+
 
 +
{{GalleryPrintAd
 +
|EGM US BuyersGuide 1989.pdf|egm|bg89|53
 +
|EGM US 001.pdf|egm|1|47-48
 +
|EGM US 002.pdf|egm|2|68
 +
|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>

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