Module:Variable arguments: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 90: | Line 90: | ||
parentOnly = true | parentOnly = true | ||
}) | }) | ||
local debugg = frame.args["debug"] | |||
local result = "" | local result = "" | ||
local i = 0 | local i = 0 | ||
| Line 114: | Line 115: | ||
.. string.format("<div class=\"subpages\" style=\"margin-top: -0.1em;\">< <bdi dir=\"ltr\">%s</bdi></div>\n", result) | .. string.format("<div class=\"subpages\" style=\"margin-top: -0.1em;\">< <bdi dir=\"ltr\">%s</bdi></div>\n", result) | ||
.. "</div>\n</div>{{#if: {{ARTICLESPACE}}||[[Category:Article subpages]]}}" | .. "</div>\n</div>{{#if: {{ARTICLESPACE}}||[[Category:Article subpages]]}}" | ||
return frame:preprocess(result) | return frame:preprocess(debugg == true and "<syntaxhighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>" or result) | ||
end | end | ||
return p | return p | ||