Content deleted Content added
No edit summary |
No edit summary |
||
Line 2:
local getArgs = require('Module:Arguments').getArgs
local function
local
--header
local labelRow =
labelRow:tag("
for colIndex=0, 15 do
labelRow:tag("
:cssText("width:20pt") :wikitext(string.format("%X", colIndex)) end
--fill cells
local startInt = tonumber(startHex:sub(1, -2), 16)
local endInt = tonumber(endHex:sub(1, -2), 16)
for rowIndex=startInt, endInt do
local row =
local rowHex = string.format("%X", rowIndex)
row:tag("th"):wikitext('U+'.. rowHex .. 'x')
Line 28 ⟶ 30:
local args = getArgs(frame)
local
if args['block-range-start'] and args['block-range-end'] then
end
local tableHTML = mw.html.create("table")
:addClass("unicode-block")
:wikitext(body)
return tostring(tableHTML)
end
|