Content deleted Content added
name |
use 3rd arg for default |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 5:
p.main = function(frame)
local event = data[tonumber(frame.args[1])]
if event and event[frame.args[2]] then
return event[frame.args[2]]
else
return frame.args[3]
end
end
Line 22 ⟶ 24:
local link = '[[Wikipedia:WikiProject Women in Green/Meetup/' .. n .. (event.name and '|' .. event.name or '') .. ']]'
table:tag('tr')
:tag('td'):css('text-align', 'center'):wikitext(n):done()
:tag('td'):wikitext(logo):done()
:tag('td'):wikitext(link):done()
|