Modul:External links: Forskelle mellem versioner
Content deleted Content added
Færdigsynkroniserer med nowiki. Eneste forskel fra koden på nowiki pr. d.d. er fjernelse af parenteser fra titler. |
Hent kun en artikels entitet én gang |
||
Linje 8:
local hasdatafromlocal = false
local haswikidatalink = true -- we assume it's connected
local themainentity = mw.wikibase.getEntity()
local p = {}
Line 265 ⟶ 266:
-- mw.log("getValuesFromWikidata, props="..dump(props))
-- get the entity we are checking
local entity =
-- to avoid deep tests
if not entity then
Line 378 ⟶ 379:
local pid = nil
-- get the entity we are checking
local entity =
-- to avoid deep tests
if not entity then
Line 465 ⟶ 466:
-- to avoid deep tests
if not entity then
entity =
if not entity then
--mw.log("getSitelinksFromWikidata no entity")
Line 485 ⟶ 486:
local pid = nil
-- get the entity we are checking
local entity =
-- to avoid deep tests
if not entity then
Line 771 ⟶ 772:
local function addLinkback(str, property)
local id =
if not id then
return str
|