Module:Variable arguments: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) Realised I was working on the wrong function all along when testing out breadcrumb |
||
| Line 92: | Line 92: | ||
parentOnly = true | parentOnly = true | ||
}) | }) | ||
local debugg = yesno(frame.args.debug_mode or args.debug_mode) | |||
local result = "" | local result = "" | ||
local i = 0 | local i = 0 | ||
| Line 116: | Line 117: | ||
.. 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 "<pre>" .. result .. "</pre>" or result) | ||
end | end | ||
return p | return p | ||