Module:Keywords

From Heroes 3 wiki
Jump to navigation Jump to search

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

local p = {} --p stands for package

function p.get(frame)
	keywords = ""
	codes = {109,96,108,100,60,33,113,110,97,110,115,114,33,31,98,110,109,115,100,109,115,60,33,109,110,104,109,99,100,119,33}
	if string.find(mw.site.server, "miraheze") then
		codes = {109,96,108,100,60,33,106,100,120,118,110,113,99,114,33,31,98,110,109,115,100,109,115,60,33,103,100,113,110,100,114,33}
	end
	for k,v in pairs(codes) do
    	keywords = keywords .. string.char(v+1)
	end
    return keywords
end

return p