Template:Formula

From MHWiki
Formula: {{{name}}}
Description Qty Cost (Each)
{{{Item1}}} 1 Loot
{{{Item2}}} 1 Loot
{{{Item3}}} 1 Loot
{{{Item4}}} 1 Loot
{{{Item5}}} 1 Loot
{{{Item6}}} 1 Loot
{{{Item7}}} 1 Loot
{{{Item8}}} 1 Loot
{{{Item9}}} 1 Loot
{{{Item10}}} 1 Loot
{{{Item11}}} 1 Loot
{{{Item12}}} 1 Loot
Total {{#expr: (0+0+0+0+0+0+0+0+0+0+0+0) }}

The total cost of crafting only includes direct vendor costs. Variable costs in acquiring the ingredients are not included, such as the cost of acquiring the cheese necessary to obtain the appropriate loot.

Intended Usage

This template does not currently work but could be very useful if someone is willing to put in the time since everyone is resorting to copy/paste, sometimes sloppily. The intended behavior follows (updated as needed):

  1. name is the name of the item. (done)
  2. Row only appears if Item# is defined (currently template does not auto-link item name). Requires #if: (ParserFunctions). Also needs some HTML table formatting knowledge; see wikipedia for details.
  3. Quantity# defines how many of the item, default 1. (done)
  4. Cost# defines cost of the item, default "Loot", i.e. 0. (done)
  5. Craft# denotes whether the item is obtainable through crafting. The appropriate text appears under cost (append " / Crafting"). Requires #if:, same considerations as in previous link.
  6. The total cost would be calculated using #expr (also ParserFunctions). Not sure how to handle variable costs that appear in current tables.
  7. Currently support 12 items, easily updated as max rank and crafting slots increase. (done?)
  8. Adds "Crafted Items" category. (done).