Module:Documentation: Difference between revisions

    m>Mr. Stradivarius
    (use messages for the err function instead of hard-coded values)
    m>Mr. Stradivarius
    (don't use messages for fmbox parameter names)
    Line 562: Line 562:
    -- Assemble the arguments for {{fmbox}}.
    -- Assemble the arguments for {{fmbox}}.
    local fmargs = {}
    local fmargs = {}
    fmargs[message('fmboxIdParam', 'string')] = message('fmboxId', 'string') -- Sets fmargs.id = 'documentation-meta-data'
    fmargs.id = message('fmboxId', 'string') -- Sets 'documentation-meta-data'
    fmargs[message('fmboxImageParam', 'string')] = message('fmboxImageNone', 'string') -- Sets fmargs.image = 'none'
    fmargs.image = message('fmboxImageNone', 'string') -- Sets 'none'
    fmargs[message('fmboxStyleParam', 'string')] = message('fmboxStyle', 'string') -- Sets fmargs.style = 'background-color: #ecfcf4'
    fmargs.style = message('fmboxStyle', 'string') -- Sets 'background-color: #ecfcf4'
    fmargs[message('fmboxTextstyleParam', 'string')] = message('fmboxTextstyle', 'string') -- Sets fmargs.textstyle = 'font-style: italic;'
    fmargs.textstyle = message('fmboxTextstyle', 'string') -- 'font-style: italic;'


    -- Assemble the fmbox text field.
    -- Assemble the fmbox text field.