Template:ItemShops: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
Created page with "<noinclude>Used to tabulate buyable items carried by multiple types of shops. Use Template:ItemShop to construct rows for the table. Category:Item-t..."
 
Optimized template's logic and added Notes row, making possible conditions specifiable.
 
(12 intermediate revisions by the same user not shown)
Line 2: Line 2:


Use [[Template:ItemShop]] to construct rows for the table.
Use [[Template:ItemShop]] to construct rows for the table.
[[Category:Item-table template]]</noinclude>
[[Category:Item-table templates]]</noinclude>
<includeonly>{{#vardefine:border|#{{{{{Type|Normal}}}_color_dark}}}}{{#vardefine:background|#{{{{{Type|Normal}}}_color}}}}{{#vardefine:cell|#{{{{{Type|Normal}}}_color_light}}}}
<includeonly>{{#vardefine:border|#{{{{{Type|Normal}}}_color_dark}}}}{{#vardefine:background|#{{{{{Type|Normal}}}_color}}}}{{#vardefine:cell|#{{{{{Type|Normal}}}_color_light}}}}
<table style="width: 58%; text-align: center; background-color: {{#var:background}}; border: 3px solid {{#var:border}};  border-radius: 25px; border-spacing: 5px;">
<table style="width: 100%; text-align: center; 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; width: 100%;">
<tr style="background-color: {{#var:cell}}; color: {{#var:border}}; font-weight: bold;"><th colspan="2" style="border: 1px solid {{#var:border}}; width: 22%; border-top-left-radius: 25px;">Item</th><th style="width: 23%; border: 1px solid {{#var:border}};">Sources</th><th style="border: 1px solid {{#var:border}}; width: 20%; border: top-right-radius: 25px;">Price</th><th style="border-top-right-radius: 25px; border: 1px solid; width: 40%;">Notes</th></tr>{{{Contents|
<tr><th colspan="2" style="background-color: {{#var:cell}}; border: 1px solid {{#var:border}}; color:{{#var:border}}; font-weight: bold;">Item</th><th style="background-color: {{#var:cell}}; border: 1px solid {{#var:border}}; color:{{#var:border}}; font-weight: bold;}}">Source</th><th style="background-color: {{#var:cell}}; border: 1px solid {{#var:border}}; color:{{#var:border}}; font-weight: bold; ">Price</th></tr>{{{Contents|}}}</table></td></tr></table></includeonly>
}}}
<tr><td colspan="8" style="text-align: left; border-radius: 1px 1px 25px 25px; border: 1px solid {{#var:border}}; background-color: {{#var:cell}};"><p style="margin-top: 8px; margin-left: 10px;"><ul>
<li>'''Emboldened''' items are currently unavailable; see the corresponding source's article for more details</li>
<li><span style="color:#0000FF;">♂</span> denotes that the item is only purchasable and equippable by male characters.</li>
<li><span style="color:#FF33CC;">♀</span> denotes that the item is only purchasable and equippable by female characters.</li>
</ul></p></td></tr>
</table></includeonly>

Latest revision as of 14:29, 14 September 2023

Used to tabulate buyable items carried by multiple types of shops.

Use Template:ItemShop to construct rows for the table.