Module:Babel: Difference between revisions

From Test Wiki
Content deleted Content added
No edit summary
No edit summary
Line 45: Line 45:
local header = args.header or '[[Wikipedia:Babel]]'
local header = args.header or '[[Wikipedia:Babel]]'
local footer = args.footer or '[[:Category:Wikipedians by language|Search user languages]]'
local footer = args.footer or '[[:Category:Wikipedians by language|Search user languages]]'
local th1 = mw.html.create('th')
local footer_td = mw.html.create('td')
:css('background-color',color)
:css('background-color',color)
:css('text-align','center')
:css('text-align','center')
:attr('colspan','10')
:attr('colspan','10')
:wikitext(header)
:wikitext(footer)
local footer = mw.html.create('tr')
local header_th = mw.html.create('th')
:css('background-color',color)
:css('background-color',color)
:css('text-align','center')
:css('text-align','center')
:attr('colspan','10')
:attr('colspan','10')
:wikitext(footer)
:wikitext(header)
row1:node(header_th)
row3:node(footer_td)
row1:node(header)
row3:node(footer)
local body_cells = mw.html.create('td')
local body_cells = mw.html.create('td')
:css('vertical-align', 'middle !important')
:css('vertical-align', 'middle !important')
Line 87: Line 89:
table_tag:node(row1)
table_tag:node(row1)
:node(row2)
:node(row2)
:node(footer)
:node(row3)
-- table_tag:node(table_body)
return tostring(table_tag)
return tostring(table_tag)