Editing Module:LangGive feedback
Jump to navigation
Jump to search
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 219: | Line 219: | ||
local lang_code = lang_code_override | local lang_code = lang_code_override | ||
if (lang_code == '' or lang_code == nil) then | if (lang_code == '' or lang_code == nil) then | ||
lang_code = | lang_code = get_lang_code() | ||
end | end | ||
| Line 311: | Line 311: | ||
lang_code = lang_code_override | lang_code = lang_code_override | ||
if (lang_code == '' or lang_code == nil) then | if (lang_code == '' or lang_code == nil) then | ||
lang_code = | lang_code = get_lang_code() | ||
end | end | ||
| Line 342: | Line 342: | ||
end | end | ||
function get_lang_code() | |||
local title = mw.title.getCurrentTitle() | local title = mw.title.getCurrentTitle() | ||
local lang_code = title.fullText:match(".*/(.*)$") | local lang_code = title.fullText:match(".*/(.*)$") | ||