Module:Items/ComparisonTables: Difference between revisions

getTableForList: Revise method of obtaining args from template
(getTableFromList: Change to use one item per parameter/arg instead of a comma delimited list)
(getTableForList: Revise method of obtaining args from template)
Line 355: Line 355:


function p.getTableForList(frame)
function p.getTableForList(frame)
local frameArgs = frame.args ~= nil and frame.args or frame
local pFrame = frame.getParent()
local frameArgs = pFrame.args ~= nil and pFrame.args or frame
local includeModifiers = frame.includeModifiers ~= nil and string.upper(frame.includeModifiers) == 'TRUE' or false
local includeModifiers = frame.includeModifiers ~= nil and string.upper(frame.includeModifiers) == 'TRUE' or false