View source for Module:Infobox Weapon Group
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
-- Module for [[Template:Weapon group]]
local p = {}
local infobox = require('Module:Infobox')
-- Format attack speed
function attackspeedarg(arg)
if not infobox.isDefined(arg) then
return nil
end
local lowarg = string.lower(arg)
local numarg = tonumber(arg)
if lowarg == 'no' or lowarg == 'n/a' then
return 'N/A'
elseif lowarg == 'varies' or lowarg == 'random' then
return '<span title="Weapons in this group have a variable attack speed." style="cursor:help; border-bottom:1px dotted;">Variable</span>'
end
000
1:0
Template used on this page:
Return to Module:Infobox Weapon Group.