Module:Math: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
en>Mr. Stradivarius
(Undid revision 586591521 by Mr. Stradivarius (talk) reinstate the new version - the problem was limited to two modules, which I will now fix)
en>Mr. Stradivarius
(replace frame:preprocess with frame:callParserFunction per protected edit request by User:Jackmcbarn)
Line 492: Line 492:
if number == nil then
if number == nil then
local frame = mw.getCurrentFrame()
local frame = mw.getCurrentFrame()
local attempt = frame:preprocess('{{#expr: ' .. number_string .. '}}')
local attempt = frame:callParserFunction('#expr', number_string)
attempt = tonumber(attempt)
attempt = tonumber(attempt)
if attempt ~= nil then
if attempt ~= nil then