Module:Variable arguments: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 113: Line 113:
if string.lower(v) ~= "false" and string.lower(v) ~= "true" then
if string.lower(v) ~= "false" and string.lower(v) ~= "true" then
result = result .. string.format("<div>%s</div>", (v == debugg and "" or utils.wlink(v)))
result = result .. (v == debugg and "" or string.format("{{wlink|%s}}", v))
end
end
i = i + 1
i = i + 1
Line 120: Line 120:
if result == nil or utils.trim(result) == "" then
if result == nil or utils.trim(result) == "" then
local arpn = frame:preprocess("{{ARTICLEROOTPAGENAME}}")
local arpn = frame:preprocess("{{ARTICLEROOTPAGENAME}}")
result = utils.wlink(arpn)
result = string.format("{{wlink|%s}}", arpn)
end
end