Versie door Admin (overleg | bijdragen) op 10 aug 2023 om 08:03 (Nieuwe pagina aangemaakt met 'local p = {} local function pregmatchall( str, pattern ) -- end function p.main( frame ) --str str = mw.text.unstrip(frame.args[1]) --padlength padlength = m...')
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)

Module:Pad numbers

Summary
Pad numbers in string. Scriptfout: de module heeft de waarde nil teruggegeven. Dit moet een exporttabel zijn.



local p = {}

local function pregmatchall( str, pattern )
	--
end

function p.main( frame )
	--str
	str = mw.text.unstrip(frame.args[1])
	--padlength
	padlength = mw.text.unstrip(frame.args[2])
	--default
	regpattern = "!\d+!"
	
end