Template:ItemShops: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
mNo edit summary
Optimized template's logic and added Notes row, making possible conditions specifiable.
 
(6 intermediate revisions by the same user not shown)
Line 4: Line 4:
[[Category:Item-table templates]]</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: 63%; 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><th colspan="2" style="background-color: {{#var:cell}}; border: 1px solid {{#var:border}}; color:{{#var:border}}; font-weight: bold; width: 35%;">Item</th><th style="background-color: {{#var:cell}}; width: 38%; border: 1px solid {{#var:border}}; color:{{#var:border}}; font-weight: bold;}}">Shop</th><th style="background-color: {{#var:cell}}; border: 1px solid {{#var:border}}; color:{{#var:border}}; font-weight: bold; width: 25%;">Price</th></tr>{{{Contents|}}}</includeonly>
<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><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.