Module:DynamicYSWSList: Difference between revisions
U0AHNB20WDD (talk | contribs) No edit summary |
U080F22CTJN (talk | contribs) add auto link formatting? |
||
| Line 98: | Line 98: | ||
for _, item in ipairs(programs) do | for _, item in ipairs(programs) do | ||
out[#out+1] = '|- class="ysws-program" data-start="' .. (item.startDate or '') .. '" data-end="' .. (item.endDate or '') .. '"' | out[#out+1] = '|- class="ysws-program" data-start="' .. (item.startDate or '') .. '" data-end="' .. (item.endDate or '') .. '"' | ||
out[#out+1] = '! scope="row" class="ysws-name" | ' .. safe(item.name) | out[#out+1] = string.format('! scope="row" class="ysws-name" | [[%s|%s]]' .. item.name, safe(item.name)) | ||
out[#out+1] = '| class="ysws-description" | ' .. (item.description ~= '' and safe(item.description) or '—') | out[#out+1] = '| class="ysws-description" | ' .. (item.description ~= '' and safe(item.description) or '—') | ||
out[#out+1] = dateCell(item.startDate, 'ysws-start') | out[#out+1] = dateCell(item.startDate, 'ysws-start') | ||