Module:Hatnote inline: Difference between revisions
cleanup code since changes to Mediawiki:Common.css
m>SMcCandlish (forcing style that will eventually be in the class) |
m>SMcCandlish (cleanup code since changes to Mediawiki:Common.css) |
||
Line 191: | Line 191: | ||
checkType('_hatnoteInline', 1, s, 'string') | checkType('_hatnoteInline', 1, s, 'string') | ||
checkType('_hatnoteInline', 2, options, 'table', true) | checkType('_hatnoteInline', 2, options, 'table', true) | ||
local classes = {'hatnote | local classes = {'hatnote'} | ||
local extraclasses = options.extraclasses | local extraclasses = options.extraclasses | ||
local selfref = options.selfref | local selfref = options.selfref | ||
Line 201: | Line 201: | ||
end | end | ||
return string.format( | return string.format( | ||
'<span | '<span class="%s">%s</span>', | ||
table.concat(classes, ' '), | table.concat(classes, ' '), | ||
s | s |