Module:Variable arguments: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 62: Line 62:
if string.lower(v) ~= "false" and string.lower(v) ~= "true" then
if string.lower(v) ~= "false" and string.lower(v) ~= "true" then
result = result .. "<div style=\"margin-left: 10px;\">"
result = result .. string.format("<div style=\"margin-left: 10px;\">'''{{w|%s}}'''</div>\n", v)
.. string.format("'''[[wikipedia:%s|%s]]'''", v, v)
.. "</div>\n"
end
end
i = i + 1
i = i + 1
Line 70: Line 68:
if result == "" then
if result == "" then
local arpn = frame:preprocess("{{ARTICLEROOTPAGENAME}}")
result = "<div style=\"margin-left: 10px;\">{{w|{{ARTICLEROOTPAGENAME}}}}</div>\n" .. result
result = "<div style=\"margin-left: 10px;\">"
.. string.format("'''[[wikipedia:%s|%s]]'''", arpn, arpn)
.. "</div>\n" .. result
end
end