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

מ הפעיל/ה הגנה על הדף "יחידה:תאריך": דף בשימוש רב ([עריכה=רק בדוקי עריכות אוטומטית מורשים] (בלתי מוגבלת בזמן) [העברה=רק בדוקי עריכות אוטומטית...
מאין תקציר עריכה
שורה 368: שורה 368:
for a in pairs(months) do
for a in pairs(months) do
wikitext = mw.ustring.gsub(wikitext, 'ב?'..a, months[a])  
wikitext = mw.ustring.gsub(wikitext, ' ?ב?'..a, ' ' .. months[a])  
end
end
-- if there are alphabet chars return nil (unexpected character)
-- if there are alphabet chars return nil (unexpected character)
assert(not mw.ustring.find(wikitext, '%a'), "Unexpected format")
assert(not mw.ustring.find(wikitext, '%a'), "Unexpected format")
 
 
local parts = mw.text.split(wikitext,' ')
local parts = mw.text.split(mw.text.trim(wikitext),' ')


     local definition = {}
     local definition = {}