Module:Hatnote inline: Difference between revisions

    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-inline'}
    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 style="font-style:italic;" class="%s">%s</span>',
    '<span class="%s">%s</span>',
    table.concat(classes, ' '),
    table.concat(classes, ' '),
    s
    s