Module:User:Catonif/surf
Appearance
- This module sandbox lacks a documentation subpage. Please create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
local export = {};
function export.main(frame)
local args = frame:getParent().args;
local template_name = args[1];
local new_args = {};
for i, v in pairs(args) do
local num = tonumber(i);
if (num) then
if (num ~= 1) then
new_args[num - 1] = v;
end
else
new_args[i] = v;
end
end
new_args.nocap = true;
return (args.nocap and 'b' or 'B')
.. 'y [[Appendix:Glossary#surface analysis|surface analysis]], '
.. frame:expandTemplate { title = template_name, args = new_args };
end
return export;