Template:ShopTableQuantity: Difference between revisions
Jump to navigation
Jump to search
Created page with "<noinclude>It is architecturally identical to Template:ShopTable, except that it has been augmented to accommodate for item quantities. Use Template:ShopItemQuantity a..." |
mNo edit summary |
||
Line 3: | Line 3: | ||
[[Category:Item-table templates]] | [[Category:Item-table templates]] | ||
</noinclude> | </noinclude> | ||
<includeonly>{{#if:{{{Type|}}}|{{#vardefine:cell|#{{{{{Type}}}_color_light}}}}{{#vardefine:background|#{{{{{Type}}}_color}}}}{{#vardefine:border|#{{{{{Type}}}_color_dark}}}}}}<table style="width: | <includeonly>{{#if:{{{Type|}}}|{{#vardefine:cell|#{{{{{Type}}}_color_light}}}}{{#vardefine:background|#{{{{{Type}}}_color}}}}{{#vardefine:border|#{{{{{Type}}}_color_dark}}}}}}<table style="width: 46%; 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-top-left-radius: 25px; border: 1px solid {{#var:border}};">Item</th><th style="border: 1px solid {{#var:border}};">Price</th><th style="border-top-right-radius: 25px; border: 1px solid {{#var:border}};">Quantity</th></tr> | <tr style="background-color:{{#var:cell}}; color:{{#var:border}};"><th colspan="2" style="border-top-left-radius: 25px; border: 1px solid {{#var:border}};">Item</th><th style="border: 1px solid {{#var:border}};">Price</th><th style="border-top-right-radius: 25px; border: 1px solid {{#var:border}};">Quantity</th></tr> | ||
{{{Contents|}}} | {{{Contents|}}} | ||
</table> | </table> | ||
</includeonly> | </includeonly> |
Latest revision as of 03:14, 13 September 2017
It is architecturally identical to Template:ShopTable, except that it has been augmented to accommodate for item quantities. Use Template:ShopItemQuantity as an argument to {{{Contents}}} to construct the data-table rows.