Actions

Template

Difference between revisions of "Merch"

From Sonic Retro

m
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
|style="width:240px;"| {{#if:{{{pdf|}}}|[[File:{{{pdf|}}}{{#if:{{{pdfpage|}}}|{{!}}page={{{pdfpage|}}}}}{{!}}100x120px]]}}{{#forargs:image|ii|iii|{{#if:{{{image{{#var:ii}}|}}}|[[File:{{#var:iii}}{{!}}100x120px]]}}}}
+
|style="width:130px; text-align:right"| {{#if:{{{pdf|}}}|[[File:{{{pdf|}}}{{#if:{{{pdfpage|}}}|{{!}}page={{{pdfpage|}}}}}{{!}}100x120px]]|{{#if:{{{image1|}}}|[[File:{{{image1|}}}|100x120px]]}}}}
 +
|style="width:130px; text-align:left"| {{#forargs:image|ii|iii|
 +
{{#switch:{{#var:ii}}|1={{#if:{{{pdf|}}}|{{#if:{{{image1|}}}|[[File:{{{image1|}}}|50x60px]]}}}}
 +
|{{#if:{{#var:iii}}|[[File:{{#var:iii}}|50x60px]]}}}}
 +
}}
 
| {{#if:{{{product|}}}|{{{product|}}}}}
 
| {{#if:{{{product|}}}|{{{product|}}}}}
 
| {{#if:{{{date|}}}|{{{date|}}}}}
 
| {{#if:{{{date|}}}|{{{date|}}}}}
Line 6: Line 10:
 
| {{#if:{{{company|}}}|{{{company|}}}}}
 
| {{#if:{{{company|}}}|{{{company|}}}}}
 
| {{#if:{{{desc|}}}|{{{desc|}}}}}
 
| {{#if:{{{desc|}}}|{{{desc|}}}}}
 +
| {{#if:{{{game|}}}|{{{game|}}}}}
 
|-
 
|-
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 +
 
==Usage==
 
==Usage==
 
<pre>
 
<pre>
Line 21: Line 27:
 
| company=
 
| company=
 
| desc=
 
| desc=
 +
| game=
 
}}
 
}}
 
}}
 
}}
 
</pre>
 
</pre>
  
[[Category:Sonic Retro templates]]
+
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 19:20, 1 January 2022


Usage

{{merchtable|
{{merch
| pdf=
| pdfpage=
| image1=
| image2=
| product=
| date=
| price=
| company=
| desc=
| game=
}}
}}