Module:Wikidata: Difference between revisions

Content deleted Content added
Revert mw → mW "fixes" (don't know if that broke the module, but please don't do genfixes on Lua/template code again)
Change from mw.wikibase.getEntity (deprecated) to mw.wikibase.getEntityObject
Line 101:
local input_parm = mw.text.trim(frame.args[3] or "")
if input_parm == "FETCH_WIKIDATA" then
local entity = mw.wikibase.getEntitygetEntityObject()
if entity.claims[propertyID] ~= nil then
local out = {}
Line 152:
local input_parm = mw.text.trim(frame.args[3] or "")
if input_parm == "FETCH_WIKIDATA" then
local entity = mw.wikibase.getEntitygetEntityObject()
if entity.claims[propertyID] ~= nil then
local out = {}
Line 184:
local date_format = mw.text.trim(frame.args[3] or "dmy")
if input_parm == "FETCH_WIKIDATA" then
local entity = mw.wikibase.getEntitygetEntityObject()
if entity.claims[propertyID] ~= nil then
local out = {}
Line 226:
local date_format = mw.text.trim(frame.args[4] or "dmy")
if input_parm == "FETCH_WIKIDATA" then
local entity = mw.wikibase.getEntitygetEntityObject()
if entity.claims[propertyID] ~= nil then
local out = {}