Шаблон:Tp total — различия между версиями
Материал из Guild Wars 2 wiki
(Новая страница: «<includeonly><div class="tpwrapper {{#if:{{{align|}}} || inlineprices }}" style="display: inline-block;" data-info="{{{info|buys}}}" data-useval="true"><div class…») |
(нет различий)
|
Текущая версия на 15:38, 3 апреля 2018
This template creates an element which is used by Template:tp total calculate to calculate and display the total value of a given materials list. (Please note that tp total calculate should only be used once per page)
Содержание
Usage[править]
{{tp total|info = buys <item 1 quantity>; <item 1 name> <item 2 quantity>; <item 2 name> <item 3 quantity>; <item 3 name> }}
Parameters[править]
- 1 (unnamed parameter)
- Item quantity and name.
- Use semi-colons to separate the item quantity, item name and item fallback value (value is optional, and could for example be a vendor price).
- Use new lines to separate different items.
- info
- "buys" (default), "sells", "sellst"
- direct cost
- Allows an additional vendor cost to be specified, e.g. when trading Grandmaster Huntsman's Mark, an additional 5 is incurred (
direct cost = 50000
).
Example[править]
It would cost a total of {{tp total| 50; Orichalcum Ingot 50; Elder Wood Plank | direct cost = 50000 }} to craft a random item using the buy it now price. {{tp total calculate}}It would cost a total of
...
to craft a random item using the buy it now price.
{{#Widget:TP prices total start}}
See also[править]
- Template:tp total calculate — the widget wrapper that makes this template work