Module:Variable arguments: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 28: Line 28:
end
end
result = "<div class=\"mw-content-subtitle2\">\n"
result = "<div class=\"mw-content-subtitle2\">"
.. "<div class=\"breadcrumb-article\">"
.. "<div class=\"breadcrumb-article\">"
.. "<div class=\"subpages\">" .. string.format("&lt; <bdi dir=\"ltr\">%s</bdi>", result) .. "</div>\n"
.. string.format("<div class=\"subpages\">&lt; <bdi dir=\"ltr\">%s</bdi></div>", result)
.. "</div></div>"
.. "</div></div>"
.. "{{#if: {{ARTICLESPACE}}||[[Category:Article subpages]]}}"
.. "{{#if: {{ARTICLESPACE}}||[[Category:Article subpages]]}}"
Line 55: Line 55:
for k, v in pairs(args) do
for k, v in pairs(args) do
result = result .. (v == debugg and "" or string.format(fmt, frame:preprocess(string.format("{{ucfirst:%s}}", v))))
result = result .. (v == debugg and "" or string.format(fmt, frame:preprocess(string.format("{{ucfirst: %s}}", v))))
i = i + 1
i = i + 1
end
end
Line 70: Line 70:
(namespace == "module"
(namespace == "module"
and "This module depends on the following other modules"
and "This module depends on the following other modules"
or "This template uses [[wikipedia:wp:Lua|Lua]]"),
or "This template uses {{wlink|Lua|s=wp}}"),
result)
result)
.. "\n}}"
.. "}}"


if yesno(debugg) == true then
if yesno(debugg) == true then