Template:AddResource

From Istaria Lexica

Template documentation (for the template shown above, sometimes hidden or invisible)

Description[edit]

This template adds a needed resource to item details. To show the added resources, Template:ShowResources is called.

  • Try out this template in your sandbox
  • Find pages using this template
  • Product Calculator heavily depends on these informations. Please ensure that needmin, needopt, skillmin, skillopt and skillname parameters are correctly set up.


Syntax[edit]

{{AddResource|resource=|needmin=|needopt=|skillmin=|skillopt=|skillname=|tool=|machine=}}

Parameters[edit]

{{AddResource
|resource  = The resource's name to be added, will be linked
|needmin   = Count of the resource when on minimal skill
|needopt   = Count of the resource when on optimal skill
|skillmin  = Minimal needed skill rank
|skillopt  = Optimal skill rank
|skillname = Name of the skill needed, will be linked
|tool      = Name of the tools to be used, comma separated
|machine   = Name of the machines to be used, comma separated
}}

Examples[edit]

{{AddResource|resource=Travertine Brick|needmin=2|needopt=5|skillmin=1000|skillopt=1350|skillname=Stoneworking|tool=Stone Chisel}}
{{AddResource|resource=Adamantium Bar|needmin=10|needopt=25|skillmin=1100|skillopt=1450|skillname=Smelting|tool=Smithing Hammer,Dragon Smelting VI|machine=Smelter,Dragon Scale Forge}}
{{ShowResources}}
Visit Template:AddResource/doc to edit this text. (How to: document correctly)