Template:Crafting cost: Difference between revisions

Template page
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>{{#invoke:Crafting cost|main|{{{1}}}|{{#if:{{{2|}}}| {{{2}}} }}}}</includeonly><noinclude>
<includeonly>{{#invoke:Crafting cost|main|{{{1}}}|{{#if:{{{2|}}}|{{{2}}}}}}}</includeonly><noinclude>


Wrapper template for [[Module:Crafting cost]]. This module returns a formatted (using [[Template:Item list]]) list of an item's crafting cost, if any.
Wrapper template for [[Module:Crafting cost]]. This module returns a formatted (using [[Template:Item list]]) list of an item's crafting cost, if any.
Line 17: Line 17:


Which gives, as expected:
Which gives, as expected:
{{Crafting cost|Medium Extended|Uncommon}}
{{Crafting cost|Medium Extended|Uncommon}}

Revision as of 11:18, 1 June 2023


Wrapper template for Module:Crafting cost. This module returns a formatted (using Template:Item list) list of an item's crafting cost, if any.

Usage

Pass the item you want the list for as the first argument, like so:

 {{Crafting cost|Combat Helmet}} 

Which gives:

If an item does not have a crafting recipe, it will look like this:

Lua error: This item does not have a crafting cost.

Since attachments share their in game name, you must pass the rarity as the second argument if that attachment has multiple variants. Attachments without multiple variants do not require this argument.

{{Crafting cost|Medium Extended|Uncommon}}

Which gives, as expected:

Cookies help us deliver our services. By using our services, you agree to our use of cookies.