No edit summary Tag: sourceedit |
No edit summary Tag: sourceedit |
||
Line 1: | Line 1: | ||
--WARFRAME Wiki Void Drop Table |
--WARFRAME Wiki Void Drop Table |
||
− | -- |
+ | --http://warframe.wikia.com/ |
+ | --Written by User:ChickenBar |
||
local p = {} |
local p = {} |
Revision as of 03:20, 14 April 2015
- Created with Docbunto
See Also
Code
--WARFRAME Wiki Void Drop Table
--http://warframe.wikia.com/
--Written by User:ChickenBar
local p = {}
local VoidData = mw.loadData( 'Module:VoidPC/data' )
local script = require( "Module:Icon" )
function p.mission( frame )
local mission_tier = frame.args[1]
local mission_type = frame.args[2]
local rewards = {}
local i=1
while VoidData[i] ~= nil do
if (VoidData[i][1] == mission_tier) and (VoidData[i][2] == mission_type) then
local span = mw.html.create('span')
:css('background','rgba(179,196,230,0.3)')
:css('display','inline-block')
:css('border','1px solid white')
:css('padding','2px 2px')
:css('margin-bottom','4px')
:css('white-space','nowrap')
:wikitext(script._Prime(VoidData[i][3], VoidData[i][4], "x18")):done()
table.insert(rewards, tostring(span))
end
i=i+1
end
return table.concat(rewards," ")
end
function p.item( frame )
local item_type = string.upper(frame.args[1])
local item_part = string.upper(frame.args[2])
local locations = {}
local i=1
while VoidData[i] ~= nil do
if (VoidData[i][3] == item_type) and (VoidData[i][4] == item_part) then
table.insert(locations, VoidData[i][1].." "..VoidData[i][2])
end
i=i+1
end
return table.concat(locations, ", ")
end
return p