Module:FreeBSD

From Nasqueron Agora
Revision as of 22:37, 21 January 2013 by Dereckson (talk | contribs) (Created page with "local p = {} -- Formats a FreeBSD port link function p.PrintsFreeBSDPort(frame) if frame.args[2] == nil then link = "http://www.freshports.org/" .. frame.args[1] ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:FreeBSD/doc

local p = {}

-- Formats a FreeBSD port link
function p.PrintsFreeBSDPort(frame)
    if frame.args[2] == nil then
        link = "http://www.freshports.org/" .. frame.args[1]
    else
        link = frame.args[2]
    end
    
    return '[' .. link .. ' ' .. frame.args[1] .. ']'
end

return p