Template:GPValue

Revision as of 17:57, 4 April 2024 by Ricewind (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template retrieves the value of an item from Module:Items and optionally multiplies it by a specified factor, rounding the result to a specified number of decimal places.

Parameters:

  • 1: (required) The name of the item to retrieve the value for.
  • 2: (optional) The multiplier to apply to the item value. Defaults to 1 if not provided.
  • round: (optional) The number of decimal places to round the result to. Defaults to 0 if not provided.

Example usage:

{{GPValue|Diamond|10|round=2}}

This retrieves the "sellsfor" value of the item "Diamond" from Module:Items, multiplies it by 10, and round the result to `2` decimal places.

Result: 11500