Module:Su: Difference between revisions

Content deleted Content added
use _main instead of luaMain
Add lineheight option, per talk
Line 20:
local options = {
align = args.a,
fontSize = args.w,
lineHeight = args.lh
}
return p._main(sup, sub, options)
Line 34 ⟶ 35:
['margin-bottom'] = '-0.3em',
['vertical-align'] = sub and '-0.4em' or '0.8em',
['line-height'] = options.lineHeight or '1.2em',
}
if options.fontSize == 'f' or options.fontSize == 'fixed' then