View source for Module:Rune pouch
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
local trim = mw.text.trim
-- Get a rune's name, and the quantity to display
function getItem(str)
backSlash, _ = str:find('\\')
if(backSlash) then
itemName = str:sub(0, backSlash - 1)
amountOfItem = tonumber(str:sub(backSlash + 1)) or 1
if(amountOfItem < 1) then
amountOfItem = 1
elseif(amountOfItem > 16000) then
amountOfItem = 16000
end
return itemName, amountOfItem
else
return str, 1
end
end
000
1:0
Templates used on this page:
- Template:DependencyList (view source)
- Template:Documentation (view source)
- Template:No documentation (view source)
- Template:PageType (view source)
- Module:Array (view source)
- Module:DPLlua (view source)
- Module:DependencyList (view source)
- Module:Documentation (view source)
- Module:Paramtest (view source)
- Module:Rune pouch/doc (view source)
- Module:Tooltip (view source)
- Module:Yesno (view source)
Return to Module:Rune pouch.