Module:Crafting cost/doc: Difference between revisions

From The Cycle: Frontier Wiki
(Created page with "This module returns a formatted (using Template:Item list) list of an item's crafting cost, if any. Use the wrapper template Template:Crafting cost to use this module. == Usage == Pass the item you want the list for as the first argument to the template, like so: <pre> {{Crafting cost|Combat Helmet}} </pre> Which gives: {{Crafting cost|Combat Helmet}} If an item does not have a crafting recipe, it will look like this: {{Crafting cost|Sample Container}}")
 
mNo edit summary
Line 4: Line 4:


== Usage ==
== Usage ==
Pass the item you want the list for as the first argument to the template, like so:
Pass the item you want the list for as the first argument, like so:
<pre> {{Crafting cost|Combat Helmet}} </pre>
<pre> {{Crafting cost|Combat Helmet}} </pre>
Which gives:
Which gives:
Line 12: Line 12:


{{Crafting cost|Sample Container}}
{{Crafting cost|Sample Container}}
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.
<pre>{{Crafting cost|Medium Extended|Uncommon}}</pre>
Which gives, as expected:
{{Crafting cost|Medium Extended|Uncommon}}

Revision as of 11:24, 1 June 2023

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

Use the wrapper template Template:Crafting cost to use this module.

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.