Module:Set drops vars: Revision history

Jump to navigation Jump to search
Diff selection: mark the radio boxes of the versions to compare or click on a revision date to view it. (cur) = difference from current version, (prev) = difference from preceding version,  m = minor edit, → = section edit

17 October 2024

  • curprev 11:2311:23, 17 October 2024Alex talk contribs 1,241 bytes +1,241 Created page with "local var = mw.ext.VariablesLua local p = {} function p.main(frame) return p._main(frame:getParent().args) end function p._main(args) local type = args.type or '' local levels = args.level or '' local versions = args.version or '' -- All levels are additionally saved to the DEFAULT drop version versions = versions .. ',DEFAULT' local valuesToSet = {} for dropVersion in string.gmatch(versions, ' *([^,]+) *') do local varName = string.format('DropLevel_%s_%s..."