Module:Variable arguments: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 7: Line 7:
     })
     })
local out_str = ""
local out_str = ""
local root_page_name = frame:preprocess("{{ROOTPAGENAME}}")
local i = 0
local i = 0
Line 18: Line 17:
if out_str == "" then
if out_str == "" then
out_str = "* [[Module:" .. root_page_name .. "]]\n"
out_str = "* [[Module:{{ROOTPAGENAME}}]]\n"
end
end
Line 58: Line 57:
local out_str = ""
local out_str = ""
local i = 0
local i = 0
local root_page_name = frame:preprocess("{{FULLROOTPAGENAME}}")
for k, v in pairs(args) do
for k, v in pairs(args) do
Line 73: Line 71:
if out_str == "" then
if out_str == "" then
out_str = "<div style=\"margin-left: 10px;\">"
out_str = "<div style=\"margin-left: 10px;\">"
.. "'''[[wikipedia:" .. root_page_name .. "|" .. root_page_name .. "]]'''"
.. "'''[[wikipedia:{{FULLROOTPAGENAME}}|{{FULLROOTPAGENAME}}]]'''"
.. "</div>\n" .. out_str
.. "</div>\n" .. out_str
end
end