Module:Template translation: Difference between revisions

Content added Content deleted
m (mw.title.new() no longer returns a tile object with id=0, but nil, if page is not found. Fix it.)
mNo edit summary
Line 1: Line 1:
local this = {}
local this = {}


function this.checkLanguage(subpage)
function this.checkLanguage(subpage, default)
--[[Check first if there's an any invalid character that would cause the
--[[Check first if there's an any invalid character that would cause the
mw.language.isKnownLanguageTag function() to throw an exception:
mw.language.isKnownLanguageTag function() to throw an exception: