local p =
local function listItem(value, label) return string.format('*
%s%s', value, label)endfunction p.list(frame) local output = local i = 1 local args = frame:getParent.args
while args['figure' .. i .. '-value'] and args['figure' .. i .. '-label'] do local value = args['figure' .. i .. '-value'] local label = args['figure' .. i .. '-label']
output = output .. listItem(value, label) .. '\n'
i = i + 1 end
output = output .. '
'if args['footer'] then output = output .. '
' .. args['footer'] .. '
'endif args['last-updated'] then if args['bot'] then local user_link = frame:preprocess('' .. args['bot'] .. '') output = output .. '
Last updated on ' .. args['last-updated'] .. '
by ' .. user_link .. '' else output = output .. '
Last updated: ' .. args['last-updated'] .. '
' endendoutput = output .. '
'
return outputend
return p