Шаблон:Base ingredients table row — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
(Новая страница: «<includeonly>|- <!-- -->{{#vardefine:vendor price|{{#ask: [[Sells item::{{{1}}}]]Has item cost::?;Coin | mainlabel = - | ?Has item cost |+index = 2 | ?Ha…»)
 
 
Строка 34: Строка 34:
  
 
== Examples ==
 
== Examples ==
 
  
 
[[Category:Recipe formatting templates]]
 
[[Category:Recipe formatting templates]]
 
 
</noinclude>
 
</noinclude>

Текущая версия на 12:48, 4 апреля 2018


Usage[править]

Formats the item and quantity for {{base ingredients table}}. We assume that ingredients will be purchased in significant quantities from vendors. We calculate vendor price by utilising {{Base ingredients result format vendor value}}.

Per {{base ingredients table}}, a call to {{base ingredients lookup}} must be made first to generate a value for #var:<item>_quantity_wanted. This is the quantity of the item to purchase from the vendor.

The row identifies the tptotal class and the attributes data-id, data-qty, and data-value. These are used for calculated the total with Widget:TP prices total.

  • data-id - The item id of <item>
  • data-qty - The quantity of the item, given by #var:<item>_quantity_wanted
  • data-value - The vendor price of <item>

Parameters[править]

Unnamed parameter 1
Item - The base ingredient

Examples[править]