Jump to content

Module:MakeInvokeFunc

Gikan sa Bikol Sentral na Wikipedia, an talingkas na ensiklopedya
Pagbabago puon kaitong 20:19, 15 Hulyo 2025 ni ShiminUfesoj (urulay | ambag) (Pinagmukna an pahina kaining "-- Based on work in Module:Documentation return function(p) return function(funcName) return function (frame) local args = require("Module:Arguments").getArgs(frame, { valueFunc = function (key, value) if type(value) == 'string' then value = value:match('^%s*(.-)%s*$') -- Remove whitespace. if key == 'heading' or value ~= '' then return value else return nil end else return value end...")
(iba) ← Mas luma | Presenteng pagbabago (iba) | Mas bago → (iba)
-- Based on work in [[Module:Documentation]]
return function(p)
	return function(funcName)
		return function (frame)
			local args = require("Module:Arguments").getArgs(frame, {
				valueFunc = function (key, value)
					if type(value) == 'string' then
						value = value:match('^%s*(.-)%s*$') -- Remove whitespace.
						if key == 'heading' or value ~= '' then
							return value
						else
							return nil
						end
					else
						return value
					end
				end
			})
			return p[funcName](args)
		end
	end
end