"ഘടകം:Add to Calendar" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

(ചെ.)No edit summary
(ചെ.) Jinoytommanjaly (സംവാദം) ചെയ്ത നാൾപ്പതിപ്പ് 2805339 നീക്കം ചെയ്യുന്നു
 
(ഒരേ ഉപയോക്താവ് ചെയ്ത ഇടയ്ക്കുള്ള ഒരു നാൾപ്പതിപ്പ് പ്രദർശിപ്പിക്കുന്നില്ല)
വരി 115: വരി 115:
'&in_loc=' .. mw.uri.encode(args.location or '') ..
'&in_loc=' .. mw.uri.encode(args.location or '') ..
' Yahoo]'
' Yahoo]'
-- ICS / iCal
local ics_content = table.concat({
'BEGIN:VCALENDAR',
'VERSION:2.0',
'BEGIN:VEVENT',
'SUMMARY:' .. (args.text or ''),
'DTSTART:' .. os.date('!%Y%m%dT%H%M%SZ', date_u),
'DTEND:' .. os.date('!%Y%m%dT%H%M%SZ', end_date_u),
'DESCRIPTION:' .. (args.details or ''),
'LOCATION:' .. (args.location or ''),
'END:VEVENT',
'END:VCALENDAR'
}, '\r\n')
local ics_link = '[data:text/calendar;charset=utf8,' .. mw.uri.encode(ics_content) .. ' iCal]'


return '<span class="add-to-calendar">' ..
return '<span class="add-to-calendar">' ..
google_link .. ' • ' ..
google_link .. ' • ' ..
outlook_link .. ' • ' ..
outlook_link .. ' • ' ..
yahoo_link .. ' • ' ..
yahoo_link ..
ics_link ..
'</span>'
'</span>'
end
end


return { main = main }
return { main = main }
"https://schoolwiki.in/ഘടകം:Add_to_Calendar" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്