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):
- name is the name of the item. (done)
- 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.
- Quantity# defines how many of the item, default 1. (done)
- Cost# defines cost of the item, default "Loot", i.e. 0. (done)
- 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.
- The total cost would be calculated using #expr (also ParserFunctions). Not sure how to handle variable costs that appear in current tables.
- Currently support 12 items, easily updated as max rank and crafting slots increase. (done?)
- Adds "Crafted Items" category. (done).