Changes

Jump to: navigation, search

Module:Template translation

201 bytes added, 02:54, 26 September 2014
add getMainLanguageSubpage
local subpage = titleparts[#titleparts]
return this.checkLanguage(subpage, '')
end
 
--[[Get the first part of the language code of the subpage, before the '-'.
]]
function this.getMainLanguageSubpage()
parts = mw.text.split( this.getLanguageSubpage(), '-' )
return parts[1]
end
Anonymous user

Navigation menu