Widget:Tp total calculate
From Guild Wars 2 Wiki
Jump to navigationJump to search
This widget should be placed at the bottom of a page, beneath any tables or placeholder elements which contain item ids and quantities.
It calculates the values of elements with the "tpprice", "tpsubtotal" and "tpgrandtotal" classes.
Each container needs to be wrapped with a "tpwrapper" class.
Usage
{{tp total calculate}}
Example
{| {{STDT|sortable right tpwrapper}} data-info="buys" ! Qty ! Material ! style="width:135px;" | TP buy price ! style="width:135px;" | Subtotal |- class="tptotal" data-id="19976" data-qty="30" | 30 | style="text-align:left;" | {{item icon|Mystic Coin}} | class="tpprice" | ... | class="tpsubtotal" | ... |- class="tptotal" data-id="24315" data-qty="50" | 50 | style="text-align:left;" | {{item icon|Molten Lodestone}} | class="tpprice" | ... | class="tpsubtotal" | ... |- class="tptotal" data-id="19701" data-qty="1500" | 1500 | style="text-align:left;" | {{item icon|Orichalcum Ore}} | class="tpprice" | ... | class="tpsubtotal" | ... |- ! colspan="3" style="text-align:left;" | Grand total ! class="tpgrandtotal" style="text-align:right;" | ... |} {{tp total calculate}}
Qty | Material | TP buy price | Subtotal |
---|---|---|---|
30 | Mystic Coin | ... | ... |
50 | Molten Lodestone | ... | ... |
1500 | Orichalcum Ore | ... | ... |
Grand total | ... |
Used on
See also
- Template:Tp total placeholder — the input materials template
- Template:Tp total calculate — wrapper template for this widget