Template:ItemTableGeneric: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
Created page with "<noinclude>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 a..."
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>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}}}.</noinclude>
<noinclude>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}}}.
<includeonly>
 
{{#vardefine:border|#{{{{{Type|Normal}}}_color_dark}}}}
[[Category:Item-table templates]]
{{#vardefine:background|#{{{{{Type|Normal}}}_color}}}}
</noinclude>
{{#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: 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; border-spacing: 5px;">
<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>
</td>
</tr>
</table>
</table>
</includeonly>
</includeonly>

Latest revision as of 02:52, 21 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}}}.