Anonymous

Module:Township: Difference between revisions

From Melvor Idle
GetTaskReferenceTable: Fix for page names containing apostrophes
(Handle items with 0 tasks, and also add a Tasks header)
(GetTaskReferenceTable: Fix for page names containing apostrophes)
Line 882: Line 882:
local args = frame.args ~= nil and frame.args or frame
local args = frame.args ~= nil and frame.args or frame
local referenceName = args[1]
local referenceName = Shared.fixPagename(args[1])
local referenceType = args[2]
local referenceType = args[2]
local referenceIDs = GetReferenceIDs(referenceName, referenceType)
local referenceIDs = GetReferenceIDs(referenceName, referenceType)