Module:WikidataS
Apparence
La documentation pour ce module peut être créée à Module:WikidataS/doc
local p = {}
function p.claim(frame)
local f = (frame.args[1] or frame.args.item) and frame or frame:getParent()
local ret, _ = require('Module:Wikidata').claim(frame)
return f:preprocess('<nowiki>'..ret..'</nowiki>')
end
function p.getParentValues(frame)
local f = (frame.args[1] or frame.args.item) and frame or frame:getParent()
return f:preprocess('<nowiki>'..require('Module:Wikidata').getParentValues(frame)..'</nowiki>')
end
function p.linkWithParentLabel(frame)
local f = (frame.args[1] or frame.args.item) and frame or frame:getParent()
return f:preprocess('<nowiki>'..require('Module:Wikidata').linkWithParentLabel(frame)..'</nowiki>')
end
function p.yearsOld(frame)
return require('Module:Wikidata').yearsOld(frame)
end
function p.getLabel(frame)
local f = (frame.args[1] or frame.args.item) and frame or frame:getParent()
local ret, _ = require('Module:Wikidata').getLabel(frame)
return f:preprocess('<nowiki>'..ret..'</nowiki>')
end
function p.getSiteLink(frame)
local f = (frame.args[1] or frame.args.item) and frame or frame:getParent()
return f:preprocess('<nowiki>'..require('Module:Wikidata').getSiteLink(frame)..'</nowiki>')
end
function p.lang(frame)
return require('Module:Wikidata').lang(frame)
end
function p.numStatements(frame)
return require('Module:Wikidata').numStatements(frame)
end
function p.validProperty(frame)
return require('Module:Wikidata').validProperty(frame)
end
return p