Content deleted Content added
update to File:OOjs UI icon edit-ltr-progressive.svg to match Module:EditAtWikidata |
remove mobile and flash options, 50 uses in 300k does not support the additional complexity |
||
(3 intermediate revisions by 3 users not shown) | |||
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.' ..
Line 104 ⟶ 103:
)
if options.wikidataurl and not options.url then
local
if qid then
ret[#ret + 1] = '[[File:
end
end
return table.concat(ret, ' ')
Line 148 ⟶ 137:
url = url,
wikidataurl = wikidataurl,
display = args[2] or args.name or 'Official website'
}
return formattedUrl .. renderTrackingCategory(url, wikidataurl)
|