12,303
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
||
(5 intermediate revisions by the same user not shown) | |||
Line 82: | Line 82: | ||
if parameters["word"] then | if parameters["word"] then | ||
if parameters["rad"] then | if parameters["rad"] then | ||
return data["rad"]["greg"]["days"][greg_wday] .. ", " .. data["rad"]["date"][greg_day] .. " " .. data["rad"]["greg"]["months"][greg_month] .. " | return data["rad"]["greg"]["days"][greg_wday] .. ", " .. data["rad"]["date"][greg_day] .. " " .. data["rad"]["greg"]["months"][greg_month] .. " nventusk " .. greg_year .. "șk" | ||
else | else | ||
return data["eng"]["days"][greg_wday] .. ", " .. greg_day .. " " .. data["eng"]["months"][greg_month] .. " " .. greg_year | return data["eng"]["days"][greg_wday] .. ", " .. greg_day .. " " .. data["eng"]["months"][greg_month] .. " " .. greg_year | ||
Line 123: | Line 123: | ||
laenk_date.day = 6 | laenk_date.day = 6 | ||
end | end | ||
return data["rad"]["days-13"][laenk_date.day] .. " " .. data["rad"]["months"][13] .. " | return data["rad"]["days-13"][laenk_date.day] .. " " .. data["rad"]["months"][13] .. " nventusk " .. laenk_date.year .. "șk" | ||
else -- if months 1-12 | else -- if months 1-12 | ||
if parameters["mod"] then -- modern format | if parameters["mod"] then -- modern format | ||
return data["rad"]["days"][laenk_date.wday] .. ", " .. data["rad"]["date"][laenk_date.day] .. " " .. data["rad"]["months"][laenk_date.month] .. " | return data["rad"]["days"][laenk_date.wday] .. ", " .. data["rad"]["date"][laenk_date.day] .. " " .. data["rad"]["months"][laenk_date.month] .. " nventusk " .. laenk_date.year .. "șk" | ||
else -- traditional format | else -- traditional format | ||
local temp_first = "" | local temp_first = "" | ||
if laenk_date.mweek == 1 then temp_first = " helișe" end | if laenk_date.mweek == 1 then temp_first = " helișe" end | ||
return mw.ustring.gsub(data["rad"]["week"][laenk_date.mweek] .. " " .. data["rad"]["days"][laenk_date.wday] | return mw.ustring.gsub(data["rad"]["week"][laenk_date.mweek] .. " " .. data["rad"]["days"][laenk_date.wday], "(a a)", "ag a") .. " " .. data["rad"]["months"][laenk_date.month] .. temp_first .. " nventusk " .. laenk_date.year .. "șk" | ||
end | end | ||
end | end | ||
Line 179: | Line 179: | ||
else -- date format | else -- date format | ||
if laenk_date.month == 13 then | if laenk_date.month == 13 then | ||
return laenk_date.wday .. "’ " .. laenk_date.month .. "” " .. laenk_date.year | local offset = 6 | ||
if laenk_date.is_leapyear then offset = 7 end | |||
return (offset - laenk_date.wday) .. "’ " .. laenk_date.month .. "” " .. laenk_date.year | |||
else | else | ||
return laenk_date.mweek .. "·" .. laenk_date.wday .. "’ " .. laenk_date.month .. "” " .. laenk_date.year | return laenk_date.mweek .. "·" .. laenk_date.wday .. "’ " .. laenk_date.month .. "” " .. laenk_date.year | ||
Line 189: | Line 191: | ||
else | else | ||
if parameters["word"] then | if parameters["word"] then | ||
if laenk_date.month == 13 then | if laenk_date.month == 13 then | ||
return data["eng"]["days-lnk-13"][laenk_date.day] .. " " .. data["eng"]["months-lnk"][13] .. " " .. laenk_date.year | |||
else | else | ||
return data["eng"]["week"][laenk_date.mweek] .. " " .. data["eng"]["days-lnk"][laenk_date.wday] .. " of " .. data["eng"]["months-lnk"][laenk_date.month] .. " " .. laenk_date.year | |||
end | end | ||
else | else | ||
local numdate = laenk_date.day .. "/" .. laenk_date.month .. "/" .. laenk_date.year | |||
if laenk_date.month ~= 13 then numdate = numdate .. " (" .. laenk_date.wday .. ")" end | |||
return numdate | |||
end | end | ||
end | end | ||
Line 202: | Line 206: | ||
-- CALENDAR | -- CALENDAR | ||
Line 305: | Line 309: | ||
highlighter(time_data.month == 13 and time_data.day == 6, "<th width=16.6%", "><small>PRIMA<br>" .. link("lfv", "assil") .. "</small></th>") | highlighter(time_data.month == 13 and time_data.day == 6, "<th width=16.6%", "><small>PRIMA<br>" .. link("lfv", "assil") .. "</small></th>") | ||
else | else | ||
grey("<th width=16.6%", "><small>SEXTA<br>" .. link("lfv", "nael") .. "</small></th>") | grey("<th width=16.6%", "><small>SEXTA<br>(" .. link("lfv", "nael") .. ")</small></th>") | ||
highlighter(time_data.month == 13 and time_data.day == 1, "<th width=16.6%", "><small>QUINTA<br>" .. link("lfv", "luol") .. "</small></th>") | highlighter(time_data.month == 13 and time_data.day == 1, "<th width=16.6%", "><small>QUINTA<br>" .. link("lfv", "luol") .. "</small></th>") | ||
highlighter(time_data.month == 13 and time_data.day == 2, "<th width=16.6%", "><small>QUARTA<br>" .. link("lfv", "maol") .. "</small></th>") | highlighter(time_data.month == 13 and time_data.day == 2, "<th width=16.6%", "><small>QUARTA<br>" .. link("lfv", "maol") .. "</small></th>") | ||
Line 325: | Line 329: | ||
highlighter(time_data.month == 13 and time_data.day == 6, "<td", ">1</td>") | highlighter(time_data.month == 13 and time_data.day == 6, "<td", ">1</td>") | ||
else | else | ||
grey("<td", "> | grey("<td", ">—</td>") | ||
highlighter(time_data.month == 13 and time_data.day == 1, "<td", ">5</td>") | highlighter(time_data.month == 13 and time_data.day == 1, "<td", ">5</td>") | ||
highlighter(time_data.month == 13 and time_data.day == 2, "<td", ">4</td>") | highlighter(time_data.month == 13 and time_data.day == 2, "<td", ">4</td>") |