Wowpedia
Advertisement
Wowpedia
237,038
pages

Documentation for this module may be created at Module:Amdiv/doc

local p = {}

p.main = function(f) 
	local args = f:getParent().args
	local color = args["color"] or "orange"
	local icon = args["icon"] or "stub.png"
	local innerdiv = string.gsub(string.gsub(string.gsub(f:preprocess(args["innerdiv"]),"<","&lt;"),">","&gt;"),"'","\\'")
	local output = "<div class='amdiv amdiv-" .. color .."'><div class='amdiv-image'>[[File:"..icon.."|x30px|"..args["icontext"].."|link="..args["iconlink"].."]]</div><div class='amdiv-text' data-value='"..innerdiv.."'></div></div>"
	return output
end

return p
Advertisement