Module:Unicode chart/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 6:
local function unicodeChar(hex)
if unicodeLookupName(tonumber(hex, 16)):find("<reserved") then
return mw.html.create("tddiv")
:addClass("reserved")
else
return mw.html.create("tddiv")
:wikitext('&#x'.. hex .. ';')
end
Line 38:
row:tag("th"):wikitext('U+'.. rowHex .. 'x')
for colIndex=0, 15 do
row:tag("td"):wikitext(
tostring(unicodeChar(rowHex .. string.format("%X", colIndex)))
)
end
end