Jump to content

Module:Math: Difference between revisions

6 bytes removed ,  10 years ago
replace frame:preprocess with frame:callParserFunction per protected edit request by User:Jackmcbarn
m>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)
m>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
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.