Content deleted Content added
add a file uploads link per protected edit request, and make the API function compatible with other projects |
|||
Line 155:
local function makeApiLink()
-- Find the full ___domain, as the API can't be accessed through the interwiki system.
if u.project or u.lang then▼
local fulldomain
local lang = u.lang or 'en'
local ___domain = interwikiTable[u.projectCode].___domain
local takesLangPrefix = interwikiTable[u.projectCode].takes_lang_prefix
if not takesLangPrefix then
fulldomain = ___domain
else
fulldomain = lang .. '.' .. ___domain
end
else
fulldomain = lang .. '.wikipedia.org'
end
return '[//en.wikipedia.org/w/api.php?action=query&list=users&usprop=editcount&ususers=' .. u.usernameHtml .. ' api]'▼
-- Return the API link
▲ return '[//
end
|