Module:Sandbox/3df/grapheme explained

local p =

local abcd =

local function alphaNav(frame, series) local out = for i = 1, #series.alphabet do table.insert(out, '' .. series.alphabet:sub(i, i) .. series.alphabet:sub(i, i):lower .. '') end return frame:expandTemplateend

p.main = function(frame) local pargs = frame:getParent.args local ibArgs = local series = 'basiclatin' local alphabet = ibArgs.headerstyle = 'background: lightblue;' ibArgs.label10 = 'Phonetic usage' ibArgs.data10 = '' if series

'basiclatin' then ibArgs.image = '' ibArgs.imagestyle = 'padding-bottom: 12px; height: 48px;' ibArgs.header1 = 'Basic Latin script letter' ibArgs.label3 = 'Name in English' ibArgs.data3 = '' ibArgs.label51 = 'NATO phonetic' ibArgs.data51 = 'Alfa' local morseArgs = ibArgs.label52 = 'Morse code' ibArgs.data52 = frame:expandTemplate ibArgs.header50 = 'Other representations' local otherReps = '

AMA/ASL
BANZSL
Flag semaphore
Unified English Braille
Signal flag
' ibArgs.data56 = otherReps end if series then ibArgs.above = ibArgs.data2 = alphaNav(frame, abcd[series]) ibArgs.label11 = 'Position' ibArgs.data11 = '' end

local root = mw.html.create('div'):wikitext(frame:expandTemplate)

return tostring(root)endreturn p