m
1 revision imported from wikipedia:Module:Su
(Default sub/sup font-size should match with sub/sup size set in Common.css. That should reduce excess line-height. Use proper monospace 'hack'.) |
m (1 revision imported from wikipedia:Module:Su) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 40:
if options.fontSize == 'f' or options.fontSize == 'fixed' then
span:css{
['font-family'] = '
['font-size'] = '80%'
}
else
span:css('font-size',
end
if options.align == 'r' or options.align == 'right' then
Line 56:
-- Add the wikitext.
span
:
:css('font-size', 'inherit')
:css('line-height', 'inherit')
:css('vertical-align', 'baseline')
:wikitext(sup)
:done()
:tag('br', {selfClosing = true}):done()
:
:css('font-size', 'inherit')
:css('line-height', 'inherit')
:css('vertical-align', 'baseline')
:wikitext(sub)
return tostring(span)
|