Template:Set drops vars/doc

This is the current revision of this page, as edited by Alex (talk | contribs) at 00:45, 17 October 2024 (Created page with "{{Documentation}} This template is used to set drops variables used by {{T|DropsLine}} to determine the levels associated with the drop version. The variables are of the form <code>DropLevel_{type}_{version}</code> and the values are a comma separated list of levels. All values will also be set on the <code>DEFAULT</code> 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. ==P..."). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a documentation subpage for Template:Set drops vars.
It contains usage information, categories, and other content that is not part of the original template page.
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