Template:Set drops vars

From RuneRealm Wiki
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:Set drops vars/doc. [edit] [history] [purge]
Template:Set drops vars invokes function main in Module:Set drops vars using Lua.

This template is used to set drops variables used by {{DropsLine}} to determine the levels associated with the drop version.

The variables are of the form DropLevel_{type}_{version} and the values are a comma separated list of levels. All values will also be set on the DEFAULT version.

These variables must be defined for any version declared in a drop table template in order for the drop to store the associated level.

Params

  • type - the type of drop, for example combat or farming
  • version - comma separated list of drop versions the levels apply to
  • level - comma separated list of levels that apply to this version

Example

Example calling the template multiple times:

{{Set drops vars|type=farming|version=Regular|level=10}}
{{Set drops vars|type=farming|version=Diseased|level=32}}

Sets the following variables:

  • DropLevel_farming_Regular = 10
  • DropLevel_farming_Diseased = 32
  • DropLevel_farming_DEFAULT = 10,32