Module:ApplyPattern
Jump to navigation
Jump to search
Custom module to apply either some wiki markup or a template to each item in a comma delimited list. Look at Template:Class for examples.
local p = {} function p.apply(frame) return 'Hello, my ' .. frame.args[1] .. ' is ' .. string.gsub(frame.args[2], '%%pattern%%',frame.args[1]) end return p