Module:Variable arguments: Difference between revisions

Restore the old behavior where there was no need to pass a parameter to hide the page name link
ArrowHead294 (talk | contribs)
mNo edit summary
Line 67: Line 67:
    .. "<div style=\"float: left;\">[[File:Wikipedia-logo.png|44px|none|link=|alt=]]</div>\n"
    .. "<div style=\"float: left;\">[[File:Wikipedia-logo.png|44px|none|link=|alt=]]</div>\n"
    .. "<div style=\"margin-left: 60px;\">English [[Wikipedia:Main Page|Wikipedia]] has " .. (i > 1 and "articles" or "an article") .." on:\n" .. out_str .. "</div></div>"
    .. "<div style=\"margin-left: 60px;\">English [[Wikipedia:Main Page|Wikipedia]] has " .. (i > 1 and "articles" or "an article") .." on:\n" .. out_str .. "</div></div>"
return out_str
end
function p.breadcrumb(frame)
local args = mArguments.getArgs(frame, {
    parentOnly = true
    })
local out_str = ""
local i = 0
for k, v in pairs(args) do
out_str = out_str .. v .. " {{pipe}} "
i = i + 1
end
out_str = frame:preprocess(out_str):sub(1, -4)
return out_str
return out_str
end
end


return p
return p