Anonymous

Module:CommonFunctions: Difference between revisions

From Elwiki
no edit summary
No edit summary
No edit summary
Line 228: Line 228:
end
end


function link(page, text, suffix)
function link(page, text, suffix, dolink)
    if dolink == false then
        return (text or page) .. (suffix and (' ' .. suffix) or '')
    end
     return '[[' .. page .. '|' .. (text or page) .. ']]' .. (suffix and (' ' .. suffix) or '')
     return '[[' .. page .. '|' .. (text or page) .. ']]' .. (suffix and (' ' .. suffix) or '')
end
end