Template:PokemartItems: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
No edit summary
Since Item is the only parameter needed, I added the fallback positional value of 1.
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#vardefine:items|{{#expr:{{#var:items}}+1}}}}
<td><table style="border-radius: 25px; background-color: {{#var:border}}; width: 100%; padding: 3px; text-align: center;">
<td><table style="border-radius: 25px; background-color: {{#var:border}}; width: 100%; padding: 3px; text-align: center;">
<tr><td style="text-align: right;">[[File:{{{Item}}}.png]]</td><td>[[{{{Item}}}|<span style="color:{{#var:cell}}; font-weight: bold;">{{{Item}}}</span>]]</td></tr>
<tr><td style="text-align: right;">[[File:{{{Item|{{{1}}}}}}.png]]</td><td>[[{{{Item|{{{1}}}}}}|<span style="color:{{#var:cell}}; font-weight: bold;">{{{Item|{{{1}}}}}}</span>]]</td></tr>
<tr style="background-color:{{#var:cell}};"><td colspan="2" style="border-radius: 1px 1px 30px 30px;">{{Pdollar}}{{{Price}}}</td></tr>
<tr style="background-color:{{#var:cell}};"><td colspan="2" style="border-radius: 1px 1px 30px 30px;">{{Pdollar}}{{MartCatalog|{{ucfirst:{{{Item|{{{1}}}}}}}}}}</td></tr>
</table></td>{{#if:{{{NR|}}}|</tr><tr>}}</includeonly>
</table></td>{{#ifexpr:{{#var:items}} = 5|</tr><tr>}}</includeonly>

Latest revision as of 08:31, 4 January 2023