Module:Variable arguments: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
m Undo.
Tag: Manual revert
Line 111: Line 111:
if string.lower(v) ~= "false" and string.lower(v) ~= "true" then
if string.lower(v) ~= "false" and string.lower(v) ~= "true" then
result = result .. (v == debugg and "" or utils.wlink(v) .. "<br />")
result = result .. (v == debugg and "" or utils.wlink(v))
end
end
i = i + 1
i = i + 1
Line 123: Line 123:
result = "<div style=\"background: #f9f9f9; border: 1px solid #aaa; clear: right; float: right; "
result = "<div style=\"background: #f9f9f9; border: 1px solid #aaa; clear: right; float: right; "
.. "font-size: 90%; width: 300px; margin: 0 0 4px 4px; padding: 4px 4px 4px 4px; text-align: left;\">\n"
.. "font-size: 90%; width: 300px; margin: 0 0 4px 4px; padding: 4px 4px 4px 4px; text-align: left;\">\n"
    .. "{|\n"
    .. "<div style=\"float: left;\">[[File:Wikipedia-logo.png|44px|none|link=|alt=]]</div>\n"
    .. "|-\n"
    .. "<div style=\"margin-left: 60px;\">"
    .. "| [[File:Wikipedia-logo.png|44px|none|link=|alt=]]"
    .. string.format("English [[Wikipedia:Main Page|Wikipedia]] has %s on:\n%s</div>", (i > 1 and "articles" or "an article"), result)
    .. " || "
    .. "{{clear}}</div>"
    .. string.format("English [[Wikipedia:Main Page|Wikipedia]] has %s on:\n%s\n", (i > 1 and "articles" or "an article"), result)
    .. "|}\n"
    .. "{{clear}}\n"
    .. "</div>"
return frame:preprocess(yesno(debugg) == true and "<syntaxhighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>" or result)
return frame:preprocess(yesno(debugg) == true and "<syntaxhighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>" or result)
end
end


return p
return p