Module:Test: Difference between revisions

From Elwiki
No edit summary
No edit summary
Line 1: Line 1:
require('Module:CommonFunctions')
local p = {}
local p = {}
function p.main(frame)
function p.main(frame)
     local passive = frame:preprocess("{{:Dark Force}}")
     local passive = frame:preprocess("{{:Dark Force}}")
     if string.match(passive, "%d%.%d,%s%d%.%d") then
     local passive_s = split(passive)
        return 'matched'
     return passive_s[1]
     else
        return passive
    end
end
end
return p
return p

Revision as of 12:12, 3 April 2022

Documentation for this module may be created at Module:Test/doc

require('Module:CommonFunctions')
local p = {}
function p.main(frame)
    local passive = frame:preprocess("{{:Dark Force}}")
    local passive_s = split(passive)
    return passive_s[1]
end
return p