Module:Wd: Difference between revisions

Content deleted Content added
Undo revision 21914 by Johnrdorazio (talk)
Tag: Undo
Avoid Lua errors should Wikidata not be available (tested via sandbox & testcases)
Line 68:
 
local aliasesP = {
coord = "P5283P625",
-----------------------
image = "P725P18",
author = "P3990P50",
publisher = "P213P123",
importedFrom = "P413P143",
statedIn = "P1408P248",
pages = "P1956P304",
language = "P3001P407",
hasPart = "P4273P527",
publicationDate = "P4788P577",
startTime = "P4821P580",
endTime = "P4841P582",
chapter = "P7048P792",
retrieved = "P7275P813",
referenceURL = "P7714P854",
sectionVerseOrParagraph = "P7839P958",
archiveURL = "P66P1065",
title = "P458P1476",
formatterURL = "P574P1630",
quote = "P622P1683",
shortName = "P739P1813",
definingFormula = "P1463P2534",
archiveDate = "P1873P2960",
inferredFrom = "P2352P3452",
typeOfReference = "P2788P3865",
column = "P2826P3903"
}
 
local aliasesQ = {
percentage = "Q1906Q11229",
prolepticJulianCalendar = "Q13230Q1985786",
citeWeb = "Q13234Q5637226",
citeQ = "Q13236Q22321052"
}
 
Line 740:
end
 
value = "[[File:OOjs UI icon edit-ltr-progressive.svg|frameless|text-top|10px|alt=" .. i18n['info']['edit-on-wikidata'] .. "|link=https://enwww.seminaverbiwikidata.bibleget.ioorg/wiki/" .. prefix .. self.entityID .. "?uselang=" .. self.langCode
 
if self.propertyID then
Line 2,541:
-- main function that is supposed to be used by wrapper templates
function p.main(frame)
if not mw.wikibase then return nil end
 
local f, args