Module:Loops

-- Module for various loops used in various templates on the wiki -- Author: KockaAdmiral, adapted by SandyTree in 2022 -- local p = {};

function template_args return mw.getCurrentFrame:getParent.args end

function p.dots(frame) local args = template_args local ret = '' for i, v in ipairs(args) do       ret = ret .. v .. ' • '   end ret = string.gsub(ret, ' • $', '') return ret end

function p.tags(frame) local args = template_args local ret = '' local style = frame.args['style'] for i, v in ipairs(args) do       ret = ret .. '' .. v .. ' '    end    ret = string.gsub(ret, ' • $', '')    return ret end

function p.pagetabs(frame) local args = template_args local ret = '' local style = frame.args['style'] for i, v in ipairs(args) do       ret = ret .. '' .. v .. ' '   end ret = string.gsub(ret, ' • $', '') return ret end

return p --