Module:FreeBSD: Difference between revisions
From Nasqueron Agora
m (Indent) |
(freshports.org now has HTTPS support) |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
-- Gets a formatted FreeBSD port link | -- Gets a formatted FreeBSD port link | ||
function p.GetsPortLink(frame) | function p.GetsPortLink(frame) | ||
if frame.args.url == nil | if (frame.args.url == nil or frame.args.url == '') then | ||
link = "https://www.freshports.org/" .. frame.args.port | |||
link = " | |||
else | else | ||
link = frame.args.url | link = frame.args.url |
Latest revision as of 15:13, 13 February 2017
Documentation for this module may be created at Module:FreeBSD/doc