Module:Variable arguments: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 16: | Line 16: | ||
out_str = out_str:sub(1, -2) | out_str = out_str:sub(1, -2) | ||
if out_str == "" then | if out_str == "" or out_str == nil then | ||
out_str = "* [[Module:{{ROOTPAGENAME}}]]\n" | out_str = "* [[Module:{{ROOTPAGENAME}}]]\n" | ||
end | end | ||
| Line 103: | Line 103: | ||
out_str = out_str:sub(1, -11) | out_str = out_str:sub(1, -11) | ||
if out_str == "" then | if out_str == "" or out_str == nil then | ||
out_str = "[[{{#titleparts: {{FULLPAGENAME}}|-1}}]]" | out_str = "[[{{#titleparts: {{FULLPAGENAME}}|-1}}]]" | ||
end | end | ||