Template:ItemShops: Difference between revisions
Jump to navigation
Jump to search
m Reworded "shop" to "source" in the best interest of scalability. |
Optimized template's logic and added Notes row, making possible conditions specifiable. |
||
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: | <table style="width: 100%; text-align: center; background-color: {{#var:background}}; border: 3px solid {{#var:border}}; border-radius: 25px; border-spacing: 5px;"> | ||
<tr | <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> | <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> |
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.