Module:Country links: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 18:
end
 
function p.make_donate_links( language_code, country_listframe )
 
local country_list = frame.args
local t = {}
for key, value in ipairs(country_list) do
table.insert(t, {value, p.get_country_name(language_code, value)})
Line 35 ⟶ 36:
 
return
end
 
function p.page_language( frame )
 
local full_title = mw.title.getCurrentTitle().prefixedText
local t = mw.text.split( full_title, '/' )
local lang = t[#t]
 
if mw.language.isKnownLanguageTag( lang ) then
return lang
else
return 'en'
end
 
end