Module:Official website: Difference between revisions
Content deleted Content added
Johnrdorazio (talk | contribs) m 1 revision imported |
Johnrdorazio (talk | contribs) No edit summary |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 30:
local function isEnglish(prop)
local ret = quickPcall(function ()
for i, lang in ipairs(prop.qualifiers.
if lang.datavalue.value['numeric-id'] == 1860 then
return true
Line 45:
-- Get objects for all official sites on Wikidata.
local websites = quickPcall(function ()
return mw.wikibase.
end)
Line 88:
local function renderUrl(options)
if not options.url and not options.wikidataurl then
local
local result = '<strong class="error">' ..
'No URL found. Please specify a URL here or add one to Wikidata.' ..
'</strong>'
if qid then
result = result.. ' [[File:OOjs UI icon edit-ltr-progressive.svg |frameless |text-top |10px |alt=Edit this at Wikidata |link=https://www.wikidata.org/wiki/' .. qid .. '#
end
return result
Line 104 ⟶ 103:
)
if options.wikidataurl and not options.url then
local
if qid then
ret[#ret + 1] = '[[File:OOjs UI icon edit-ltr-progressive.svg |frameless |text-top |10px |alt=Edit this at Wikidata |link=https://www.wikidata.org/wiki/' .. qid .. '#
end
end
|