Module:Sandbox/Hellknowz/Test: Difference between revisions

Content deleted Content added
do i need preprocess?
merge month indices
Line 13:
['october'] = 10,
['november'] = 11,
['december'] = 12,
}
 
local monthShortIndices = {
['jan'] = 1,
['feb'] = 2,
['mar'] = 3,
['apr'] = 4,
--['may'] = 5, -- long one would have caught this already
['jun'] = 6,
['jul'] = 7,
Line 229 ⟶ 226:
-- Find the possible month name index
monthIndex = monthIndices[mw.ustring.lower(foundMatch)]
if (not monthIndex) then monthIndex = monthShortIndices[mw.ustring.lower(foundMatch)] end
 
if (monthIndex) then