Anonymous user
Module:Template test case: Difference between revisions
In the end they could be merged nicely
(renderTableRows: use class and style parameters) |
(In the end they could be merged nicely) |
||
Line 175:
columns = 'renderColumns',
rows = 'renderRows',
tablerows = '
inline = 'renderInline',
default = 'renderDefault'
Line 434:
for _, obj in ipairs(self.templates) do
if self.options.showheader then▼
tableroot:tag('tr'):tag('td')▼
:css('text-align', 'center')▼
:css('font-weight', 'bold')▼
:wikitext(obj:makeHeader())▼
end▼
local dataRow = tableroot:tag('tr')
if self.options.showheader then
dataRow:tag('th')▼
dataRow:
:
:css('text-align', 'left')
:wikitext(obj:makeHeader())▼
▲ :wikitext(obj:makeHeader())
dataRow:tag('td')
:css('padding', '0 1em')
:wikitext('→')
▲ else
▲ :css('text-align', 'center')
▲ :css('font-weight', 'bold')
▲ :wikitext(obj:makeHeader())
▲ end
end
dataRow:tag('td')
:newline()
:wikitext(self:getTemplateOutput(obj))
end
return tostring(root)
end
|