Module:Inventory

From Exiled Kingdoms Wiki
Revision as of 04:09, 7 June 2017 by M3lkor (talk | contribs) (Created page with "p = {} invName = mw.getCurrentFrame().args[0] invItm = mw.getCurrentFrame().args[1] invArm = mw.getCurrentFrame().args[2] invWpn = mw.getCurrentFrame().args[3] invMark = mw.ge...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

p = {} invName = mw.getCurrentFrame().args[0] invItm = mw.getCurrentFrame().args[1] invArm = mw.getCurrentFrame().args[2] invWpn = mw.getCurrentFrame().args[3] invMark = mw.getCurrentFrame().args[4] invFunc = mw.getCurrentFrame().args[5]

function getItems()

   if (invItm ~= nil) then
       Items = mw.text.split(invItm,',',true)
       tmptbl ={invItm, invArm, invWpn, invMark}
       return mw.getCurrentFrame().expandTemplate{ title = invName, args = tmptbl }
   end
   if (invArm ~= nil) then
       
       
   end
   if (invWpn ~= nil) then
       
       
   end

end return p