Difference between revisions of "Module:Availability/crate"
(Created page with "local p = {} function p.status(frame) num = frame.args[1] if num == '101' or num == '100' or num == '99' or num == '98' or num == '95' or num == '94'...") |
|||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
+ | |||
+ | local active = {'61', '62', '63', '64', '65', '66', '67', '68', '69', '72', '73', '81', '82', '83', '84', '85', '87', '90', '91', '92', '93', '94', '95', '98', '99', '100', '101'} | ||
function p.status(frame) | function p.status(frame) | ||
num = frame.args[1] | num = frame.args[1] | ||
− | if num = | + | if active[num] ~= nil then |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
return 'Mann Co. Supply Crate/Active series' | return 'Mann Co. Supply Crate/Active series' | ||
else | else |
Revision as of 20:02, 8 March 2016
Documentation for this module may be created at Module:Availability/crate/doc
local p = {} local active = {'61', '62', '63', '64', '65', '66', '67', '68', '69', '72', '73', '81', '82', '83', '84', '85', '87', '90', '91', '92', '93', '94', '95', '98', '99', '100', '101'} function p.status(frame) num = frame.args[1] if active[num] ~= nil then return 'Mann Co. Supply Crate/Active series' else return 'Mann Co. Supply Crate/Retired series' end end return p