Anonymous

Module:Shop: Difference between revisions

From Melvor Idle
getPurchaseStat: Properly handle pages with apostrophes in the game
m (Fix typo)
(getPurchaseStat: Properly handle pages with apostrophes in the game)
Line 60: Line 60:
function p.getPurchaseStat(frame)
function p.getPurchaseStat(frame)
local args = frame.args ~= nil and frame.args or frame
local args = frame.args ~= nil and frame.args or frame
local purchaseName = args[1]
local purchaseName = Shared.fixPagename(args[1])
local statName = args[2]
local statName = args[2]
local displayInline = (args['inline'] ~= nil and string.lower(args['inline']) == 'true' or false)
local displayInline = (args['inline'] ~= nil and string.lower(args['inline']) == 'true' or false)