Template:ShopTable: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <noinclude>Use this template to tabulate purchasable items—typically for [[Pokémart]] or [[Department Store]] catalogs. Use [[Template:ShopItem]] as an argument to {{{Contents}}} to construct the data-table rows. | ||
{{#if:{{{Type|}}}| | |||
{{#vardefine:cell|#{{{{{Type}}}_color_light}}}} | [[Category:Item-table templates]] | ||
{{#vardefine:background|#{{{{{Type}}}_color}}}} | </noinclude> | ||
{{#vardefine:border|#{{{{{Type}}}_color_dark}}}} | <includeonly>{{#if:{{{Type|}}}|{{#vardefine:cell|#{{{{{Type}}}_color_light}}}}{{#vardefine:background|#{{{{{Type}}}_color}}}}{{#vardefine:border|#{{{{{Type}}}_color_dark}}}}}}<table style="width: 42%; background-color:{{#var:background}}; border-radius: 25px; border: 3px solid {{#var:border}}; padding: 5px; border-spacing: 4px; text-align: center;"> | ||
}} | <tr><td colspan="3"><div style="margin: auto auto; width: 50%; background-color:{{#var:cell}}; border-radius: 25px; padding: 3px; border: 1px solid {{#var:border}}; color:{{#var:border}}; font-weight: bold;">{{#if:{{{Name|}}} | {{{Name}}} | {{PAGENAME}} Mart}}</div></td></tr> | ||
<table style="width: 42%; background-color:{{#var:background}}; border-radius: 25px; border: 3px solid {{#var:border}}; padding: 5px; border-spacing: 4px; text-align: center;"> | <tr style="background-color:{{#var:cell}}; color:{{#var:border}};"><th colspan="2" style="border: 1px solid {{#var:border}};">Item</th><th style="border: 1px solid {{#var:border}};">Price</th></tr> | ||
<tr><td colspan="3"><div style="margin: auto auto; width: 50%; background-color:{{#var:cell}}; border-radius: 25px; padding: 3px; border: | |||
<tr style="background-color:{{#var:cell}}; color:{{#var:border}};"><th colspan="2" style=" | |||
{{{Contents|}}} | {{{Contents|}}} | ||
</table> | </table> | ||
</includeonly> | </includeonly> |
Latest revision as of 13:49, 4 May 2022
Use this template to tabulate purchasable items—typically for Pokémart or Department Store catalogs. Use Template:ShopItem as an argument to {{{Contents}}} to construct the data-table rows.