FANDOM


--Adapted from: WARFRAME Wiki Icon Module - http://warframe.wikia.com/
--Written by User:ChickenBar
 
local p = {}
 
local IconData = mw.loadData( 'Módulo:Icono/data' )
 
 
function p.Item(frame)
	local iconname = frame.args[1]
	local textexist = frame.args[2]
	local imagesize = frame.args.imgsize
	local link = ''
	if IconData["Items"][iconname] == nil then          
		return "<span style=\"color:red;\">Inválido</span>"  
	else
		link = IconData["Items"][iconname]["link"]
                iconname = IconData["Items"][iconname]["icon"]
		if (imagesize == nil or imagesize == '') then
			imagesize = 'x26'                                 
		end
		if (textexist == 'text' or textexist == 'Text') then                           
			return '[[File:'..iconname..'|'..imagesize..'px|link='..link..']] [['..link..'|'..frame.args[1]..']]'
		end
		return '[[File:'..iconname..'|'..imagesize..'px|link='..link..']]'
	end
end
 
return p
El contenido de la comunidad está disponible bajo CC-BY-SA a menos que se indique lo contrario.