Content deleted Content added
add logo to table |
use 3rd arg for default |
||
(3 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 15 ⟶ 17:
:tag('th'):wikitext('Meetup'):done()
:tag('th'):wikitext('Logo'):done()
:tag('th'):wikitext('
:tag('th'):wikitext('Date'):done()
:done()
for n, event in ipairs(data) do
local logo = event.logo and '[[File:' .. event.logo .. '|50px]]'
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(
:tag('td'):wikitext(
:tag('td'):wikitext(event.date):done()
:done()
|