12,727
edits
No edit summary |
(Use printError function) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
-- Adapted from: https://oldschool.runescape.wiki/w/Module: | -- Adapted from: https://oldschool.runescape.wiki/w/Module:Recommended_equipment | ||
-- Released under: https://creativecommons.org/licenses/by-nc-sa/3.0/ | -- Released under: https://creativecommons.org/licenses/by-nc-sa/3.0/ | ||
Line 5: | Line 5: | ||
local Params = require('Module:Shared/Paramtest') | local Params = require('Module:Shared/Paramtest') | ||
local Shared = require('Module:Shared') | |||
local Icons = require("Module:Icons") | local Icons = require("Module:Icons") | ||
Line 120: | Line 121: | ||
if showDR and greatest_row_size > 1 then | if showDR and greatest_row_size > 1 then | ||
-- showDR option is only compatible if a single column of equipment is to be displayed | -- showDR option is only compatible if a single column of equipment is to be displayed | ||
return ' | return Shared.printError('showDR option is incompatible with more than one item per slot') | ||
end | end | ||