Module:Keywords

From Heroes 3 wiki
Revision as of 11:32, 5 June 2021 by Imahero (talk | contribs) (Created page with "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,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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