Template:ItemTableGeneric: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
{{#vardefine:background|#{{{{{Type|Normal}}}_color}}}}
{{#vardefine:background|#{{{{{Type|Normal}}}_color}}}}
{{#vardefine:cell|#{{{{{Type|Normal}}}_color_light}}}}
{{#vardefine:cell|#{{{{{Type|Normal}}}_color_light}}}}
<table style="width: 35%; padding: 5px; text-align: center;">
<table style="width: 35%; padding: 5px; text-align: center; background-color: {{#var:background}}; border: 3px solid {{#var:border}};  border-radius: 25px;">
<tr><th colspan="2" style="background-color:{{#var:background}}; border: 1px solid {{#var:border}}; border-radius: 25px 25px 1px 1px; color:{{#var:border}}; font-weight: bold;">Items</th></tr>
<tr><th colspan="2" style="background-color: {{#var:cell}}; border: 1px solid {{#var:border}}; border-radius: 25px 25px 1px 1px; color:{{#var:border}}; font-weight: bold;">Items</th></tr>
{{{Contents|}}}
{{{Contents|}}}
</table>
</table>
</includeonly>
</includeonly>

Revision as of 05:00, 17 February 2017

Use this when you want to tabulate an item list as consistent and monoelemental as listing strictly the item names. Use Template:ITG to construct data rows as an argument to {{{Contents}}}.