Module:Documentation: Difference between revisions

    m>Mr. Stradivarius
    (add a categories blurb function)
    m>Mr. Stradivarius
    (use messages for the err function instead of hard-coded values)
    Line 89: Line 89:
    local function err(msg)
    local function err(msg)
    return string.format(
    return string.format(
    '<strong class="error">[[Module:Documentation]] error: %s</strong>%s',
    '<strong class="error">%s %s</strong>%s',
    message('errorPrefix', 'string'),
    msg,
    msg,
    makeCategoryLink('Documentation template invocations with errors')
    makeCategoryLink(message('errorCategory', 'string'))
    )
    )
    end
    end