Module:Documentation: Difference between revisions

    m>Mr. Stradivarius
    (add a templateTitle object to the env functions, and reformat the experimentBlurb function to make it fit on the page)
    m>Mr. Stradivarius
    (add a categories blurb function)
    Line 609: Line 609:
    -- Return the fmbox output.
    -- Return the fmbox output.
    return messageBox.main('fmbox', fmargs)
    return messageBox.main('fmbox', fmargs)
    end
    function p.makeCategoriesBlurb(args, env)
    -- Get the title object.
    local success, docTitle = env:grab('docTitle')
    if not success then
    -- docTitle is the error message.
    return docTitle
    end
    -- Make the blurb.
    local docPathLink = makeWikilink(docTitle.prefixedText, message('docLinkDisplay', 'string'))
    return message('addCategoriesBlurb', 'string', {docPathLink})
    end
    end