17,370
edits
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) |