Module:Infobox: Difference between revisions
move the \n to different spot in code
m>WOSlinker (add \n in renderRows) |
m>WOSlinker (move the \n to different spot in code) |
||
Line 50: | Line 50: | ||
.css('text-align', 'center') | .css('text-align', 'center') | ||
.cssText(args.headerstyle) | .cssText(args.headerstyle) | ||
.wikitext(rowArgs.header) | .wikitext('\n' .. rowArgs.header) | ||
elseif rowArgs.data then | elseif rowArgs.data then | ||
local row = root.tag('tr') | local row = root.tag('tr') | ||
Line 60: | Line 60: | ||
.css('text-align', 'left') | .css('text-align', 'left') | ||
.cssText(args.labelstyle) | .cssText(args.labelstyle) | ||
.wikitext(rowArgs.label) | .wikitext('\n' .. rowArgs.label) | ||
.done() | .done() | ||
end | end | ||
Line 73: | Line 73: | ||
.addClass(rowArgs.class) | .addClass(rowArgs.class) | ||
.cssText(rowArgs.datastyle) | .cssText(rowArgs.datastyle) | ||
.wikitext(rowArgs.data) | .wikitext('\n' .. rowArgs.data) | ||
end | end | ||
end | end | ||
Line 172: | Line 172: | ||
header = args['header' .. num], | header = args['header' .. num], | ||
label = args['label' .. num], | label = args['label' .. num], | ||
data = | data = args['data' .. num], | ||
datastyle = args.datastyle, | datastyle = args.datastyle, | ||
class = args['class' .. num], | class = args['class' .. num], |