Module:Uses Wikidata: Difference between revisions

m
fix
(made function callable outside of template)
m (fix)
Line 3: Line 3:
function p.usesProperty(frame)
function p.usesProperty(frame)
local args = frame.getParent(frame).args or nil
local args = frame.getParent(frame).args or nil
if args == nil then
if mw.text.trim(args[1] or '') == '' then
args = frame.args
args = frame.args
end
end
Anonymous user