Changes
tweak logic to make it work like the actual template - the documentation was slightly wrong
local p = {}
function p.yesno(frame)
-- defaults
local retvals = {
["¬"] = ""
}
-- Allow arguments to override defaults.
-- 'any' tracks the presence of any arguments at all.
end
end
val = args[1]
return retvals['¬']
end
val = val:match'^%s*(.*%S)' or '' -- Trim whitespace.
if val == '' then
return retvals['blank'] ~= nil and retvals['blank'] or retvals['no']
elseif val == 'n' or val == 'no' or val == '0' then
return retvals['no']
end
end
return p