Content deleted Content added
No edit summary |
No edit summary |
||
Line 536:
cal_props.prevnext = 'yes' == (args.prevnext and args.prevnext:lower()); -- show previous / next links in month header only in single month calendars
if args.lk_pref_mprev or args.lk_suff_mprev then
cal_props.lk_pref_mprev = args.lk_pref_mprev;
cal_props.lk_suff_mprev = args.lk_suff_mprev;
cal_props.prevnext = true;
end
if args.lk_pref_mnext or args.lk_suff_mnext then
cal_props.lk_pref_mnext = args.lk_pref_mnext;
cal_props.lk_suff_mnext = args.lk_suff_mnext;
cal_props.prevnext = true;
end
Line 574 ⟶ 576:
cal_props.hide_year = ('yes' == args.hide_year) or ('off' == args.show_year); -- year normally displayed; this hides year display but not when linked or replaced with title
end
-- TODO: implement these two
cal_props.lk_pref = args.lk_pref; -- prefix for all links except previous
cal_props.lk_suff = args.lk_suff; -- suffix for all links except previous
for _, v in ipairs ({'y', 'm', 'd'}) do -- loop through calendar parts for link prefix and suffix parameters
Line 586 ⟶ 588:
end
if not (cal_props.m_center or cal_props.m_float_r) then -- these may aleady be set for stand-alone month
cal_props.y_center = 'center' == (args.float and args.float:lower());
cal_props.y_float_r = 'right' == (args.float and args.float:lower());
end
--TODO: underscore instead of hyphen
cal_props.today = 'yes' == (args['show-today'] and args['show-today']:lower()); -- highlight today's date in calendars where it is displayed
cal_props.today_color = args.today_color or args.today_colour;
|