Template:GenericItemShop: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 6: Line 6:
<includeonly>{{#vardefine:border|#{{{{{Type|Normal}}}_color_dark}}}}{{#vardefine:background|#{{{{{Type|Normal}}}_color}}}}{{#vardefine:cell|#{{{{{Type|Normal}}}_color_light}}}}{{#vardefine:currency|{{{Currency|Pdollars}}}}}
<includeonly>{{#vardefine:border|#{{{{{Type|Normal}}}_color_dark}}}}{{#vardefine:background|#{{{{{Type|Normal}}}_color}}}}{{#vardefine:cell|#{{{{{Type|Normal}}}_color_light}}}}{{#vardefine:currency|{{{Currency|Pdollars}}}}}
<table style="width: 43%; text-align: center; padding: 3px; background-color: {{#var:background}}; border: 3px solid {{#var:border}};  border-radius: 25px; border-spacing: 5px;">
<table style="width: 43%; text-align: center; padding: 3px; background-color: {{#var:background}}; border: 3px solid {{#var:border}};  border-radius: 25px; border-spacing: 5px;">
<tr><td width="100%"><table class="sortable" style="text-align: center; padding: 3px; width: 100%;">
<tr><td width="100%"><table class="sortable" style="text-align: center; width: 100%;">
<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|}}}

Revision as of 00:52, 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.