Module:Unicode chart/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 141:
local function getAliasAbbr(codepoint)
local tbl = getAliasValues(codepoint.int, "abbreviation")
local alias =return tbl[1] or nil
return alias
end
Line 210 ⟶ 209:
cell:addClass(category)
local abbr = getCellAbbr(codepoint, category, args)
if (mUnicode.is_combining(codepoint.int)) then
cell:addClass("combining")
end
if category == "reserved" or category == "noncharacter" then
Line 222 ⟶ 217:
local unicodeChar = '&#x'.. codepoint.hex .. ';'
unicodeChar = linkChar(unicodeChar, codepoint, args) or unicodeChar
-- if (args['link_sub'] and args['link_sub'][codepoint.int]) then
-- unicodeChar = '[[' .. args['link_sub'][codepoint.int]
-- .. '|' .. unicodeChar .. ']]'
-- elseif args['link'] == "wiki" then
-- local redir = mRedirect.luaMain(unicodeChar, false)
-- --unicodeChar = '[[' .. redir .. '|' .. unicodeChar .. ']]'
-- unicodeChar = expandTemplate('Link if exists', {unicodeChar})
-- elseif args['link'] == "wikt" then
-- unicodeChar = '[[wikt:' .. unicodeChar .. '|' .. unicodeChar .. ']]'
-- end
if args['wrapper'] then
unicodeChar = expandTemplate(args['wrapper'], {unicodeChar})