יחידה:Citation/CS1: הבדלים בין גרסאות בדף

אין תקציר עריכה
אין תקציר עריכה
שורה 1,698: שורה 1,698:
-- our code start
-- our code start
local Month = A['Month'];
local Month = A['Month'];
local hasminus = string.find( Language, '-', 0, true)
LangCode = mw.ustring.gsub( Language, '-.*', '' );
if (hasminus ~= nil)
Language = LangCode;
then LangCode = string.sub( Language, 1, hasminus - 1 )
Language = string.sub( Language, 1, hasminus - 1 )
end
-- our code end
-- our code end