Template:GenericItemShop: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 9: Line 9:
<tr><th colspan="2" style="background-color: {{#var:cell}}; border: 1px solid {{#var:border}}; color:{{#var:border}}; font-weight: bold; {{#if:{{{Currency|}}}|border-top-left-radius: 25px;}}">Items</th><th style="background-color: {{#var:cell}}; border: 1px solid {{#var:border}}; color:{{#var:border}}; font-weight: bold; {{#if:{{{Currency|}}}|border-top-right-radius: 25px;}}">Price</th></tr>
<tr><th colspan="2" style="background-color: {{#var:cell}}; border: 1px solid {{#var:border}}; color:{{#var:border}}; font-weight: bold; {{#if:{{{Currency|}}}|border-top-left-radius: 25px;}}">Items</th><th style="background-color: {{#var:cell}}; border: 1px solid {{#var:border}}; color:{{#var:border}}; font-weight: bold; {{#if:{{{Currency|}}}|border-top-right-radius: 25px;}}">Price</th></tr>
{{{Contents|}}}
{{{Contents|}}}
</table>
</table></td></tr>{{#ifeq:{{#var:currency}}|Pdollars||<tr><td style="text-align: left; border: 1px solid {{#var:border}}; border-radius: 1px 1px 25px 25px; background-color: {{#var:cell}}; color: {{#var:border}};"><p style="margin-top: 8px; margin-left: 10px;"><ul><li>{{#var:currency}} are the currency of this shop.</li></ul></p></td></tr>}}</table></includeonly>
</td></tr>
{{#ifeq:{{#var:currency}}|Pdollars||
<tr><td style="text-align: left; border: 1px solid {{#var:border}}; border-radius: 1px 1px 25px 25px; background-color: {{#var:cell}}; color: {{#var:border}};"><p style="margin-top: 8px; margin-left: 10px;"><ul><li>{{#var:currency}} are the currency of this shop.</li></ul></p></td></tr>
}}
</table>
</includeonly>

Revision as of 00:53, 15 May 2020

Use this when you want to tabulate a thematically generic shop. Use Template:ITS to construct data rows as an argument to {{{Contents}}}.

Additionally, furnish an argument for {{{Currency}}} if you wish to specify any currency other than Pokédollars (Pokédollars is the default one) for the shop.