11.314
suntingan
(←Membuat halaman berisi '-- This module renders the calendar seen on Portal:Current events. --[[ Incoming expected variables: frame.args.year = Integer value for year frame.args.month = Integer value for month, 1 based. --]] local p = {} local function makeWikilink(link, display) if display then return string.format('%s', link, display) else return string.format('%s', link) end end local function getDateStuff(argsDate) --[[ Note: This function takes advant...') |
Tidak ada ringkasan suntingan |
||
| Baris 103: | Baris 103: | ||
-- Day of week headings | -- Day of week headings | ||
local dayHeadingRow = root:tag('tr') | local dayHeadingRow = root:tag('tr') | ||
local weekdays = {' | local weekdays = {'M', 'S', 'S', 'R', 'K', 'J', 'S'} | ||
for _, weekday in ipairs(weekdays) do | for _, weekday in ipairs(weekdays) do | ||
dayHeadingRow:tag('th'):wikitext(weekday) | dayHeadingRow:tag('th'):wikitext(weekday) | ||