Template:BossRewardsWinCount: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
m Categorized it under item-table templates.
m Re-arranged columns for more appropriate precedence.
Line 7: Line 7:
<includeonly>{{#vardefine:wincount|0}}{{#if:{{#var:background}}||{{#vardefine:cell|#{{{{{Theme|Normal}}}_color_light}}}}{{#vardefine:background|#{{{{{Theme|Normal}}}_color}}}}{{#vardefine:border|#{{{{{Theme|Normal}}}_color_dark}}}}}}<table style="width: 45%; max-width: 85%; text-align: center; border: 3px solid {{#var:border}}; background-color: {{#var:background}}; padding: 7px; border-radius: 25px;">
<includeonly>{{#vardefine:wincount|0}}{{#if:{{#var:background}}||{{#vardefine:cell|#{{{{{Theme|Normal}}}_color_light}}}}{{#vardefine:background|#{{{{{Theme|Normal}}}_color}}}}{{#vardefine:border|#{{{{{Theme|Normal}}}_color_dark}}}}}}<table style="width: 45%; max-width: 85%; text-align: center; border: 3px solid {{#var:border}}; background-color: {{#var:background}}; padding: 7px; border-radius: 25px;">
<tr style="background-color:{{#var:cell}}; color: {{#var:border}};">
<tr style="background-color:{{#var:cell}}; color: {{#var:border}};">
<th scope="col" style="border: 1px solid {{#var:border}}; width: 12%;">Win Count</th></tr>
<th scope="col" colspan="2" style="width: 22%; border: 1px solid {{#var:border}};">Reward</th>
<th scope="col" colspan="2" style="width: 22%; border: 1px solid {{#var:border}};">Reward</th>
<th scope="col" style="border: 1px solid {{#var:border}}; width: 12%; border: 1px solid {{#var:border}};">Quantity</th>
<th scope="col" style="border: 1px solid {{#var:border}}; width: 12%; border: 1px solid {{#var:border}};">Quantity</th>
<th scope="col" style="border: 1px solid {{#var:border}}; width: 12%;">Win Count</th></tr>
{{{Contents|}}}
{{{Contents|}}}
</table></includeonly>
</table></includeonly>

Revision as of 05:14, 1 February 2022

It adopts the same framework as Template:BossItem, except it's designed to auto-increment for win-consecutive prizes such as those offered by Christmas Chris.

Use in tandem with Template:BRWC to construct tabular rows.