Modul:Math: Unterschied zwischen den Versionen
replace frame:preprocess with frame:callParserFunction per protected edit request by User:Jackmcbarn
(Undid revision 586591521 by Mr. Stradivarius (talk) reinstate the new version - the problem was limited to two modules, which I will now fix) |
(replace frame:preprocess with frame:callParserFunction per protected edit request by User:Jackmcbarn) |
||
Zeile 492: | Zeile 492: | ||
if number == nil then | if number == nil then | ||
local frame = mw.getCurrentFrame() | local frame = mw.getCurrentFrame() | ||
local attempt = frame: | local attempt = frame:callParserFunction('#expr', number_string) | ||
attempt = tonumber(attempt) | attempt = tonumber(attempt) | ||
if attempt ~= nil then | if attempt ~= nil then |