Widget:Total precios bazar

De Guild Wars 2 Wiki
Saltar a: navegación, buscar

A widget to calculate the total value for a series of given item ids and quantities. To calculate separate groups of grandtotals, use a separate element with class="tpwrapper", e.g. use a second table like the one below on the same page.

Example

{| {{STDT|sortable right tpwrapper}} data-info="buys"
! Cant.
! Material
! style="width:135px;" | Precio de compra en Bazar
! style="width:135px;" | Subtotal
|- class="tptotal" data-id="19976" data-qty="30"
| 30
| style="text-align:left;" | {{objeto icono|Moneda mística}}
| class="tpprice" | ...
| class="tpsubtotal" | ...
|- class="tptotal" data-id="24315" data-qty="50"
| 50
| style="text-align:left;" | {{objeto icono|Piedra imán fundida}}
| class="tpprice" | ...
| class="tpsubtotal" | ...
|- class="tptotal" data-id="19701" data-qty="1500"
| 1500
| style="text-align:left;" | {{objeto icono|Mineral de oricalco}}
| class="tpprice" | ...
| class="tpsubtotal" | ...
|-
! colspan="3" style="text-align:left;" | Total
! class="tpgrandtotal" style="text-align:right;" | ...
|}
{{#Widget:Total precios bazar}}
Cant. Material Precio de compra en Bazar Subtotal
30 Moneda mística.png Moneda mística ... ...
50 Piedra imán fundida.png Piedra imán fundida ... ...
1500 Mineral de oricalco.png Mineral de oricalco ... ...
Total ...

Notas

  • To add a fallback manual value, such as a merchant vendor price, add data-useval="true" to the top of the tpwrapper element, and add data-value="0" to the tptotal element (replacing the zero with whatever value you wish).

Ver también