Module:Unicode chart/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
local p = {}
local getArgs = require('Module:Arguments').getArgs
local frame
 
local function unicodeChar(hex)
return frame:expandTemplate{
title = 'unichar',
args = {hex}
}
--return '&#x'.. hex ';'
end
 
local function createTableBody(startHex, endHex)
Line 20 ⟶ 29:
row:tag("th"):wikitext('U+'.. rowHex .. 'x')
for colIndex=0, 15 do
row:tag("td"):wikitext('&#x'..
unicodeChar(rowHex .. string.format("%X", colIndex) .. ';')
)
end
end