Module:Board

local p = {} function p.get( frame ) local runes = string.sub(frame.args[1], 1, 30) local names = { w = "Water", f = "Fire", e = "Earth", l = "Light", d = "Dark", h = "Heart", W = "WaterE", F = "FireE", E = "EarthE", L = "LightE", D = "DarkE", H = "HeartE" }   div = mw.html.create("div") :css("display", "inline-block") :css("position", "relative") :css("width", "360px") :css("height", "300px") :wikitext("") x = 0 y = 0 for rune in string.gmatch(runes, ".") do       if x == 360 then x = 0 y = y + 60 end if names[rune] then span = div:tag("span") :css("position", "absolute") :css("left", x .. "px") :css("top", y .. "px") :wikitext("") :done end x = x + 60 end return tostring(div) end return p