Editing Module:InfoboxHeroGive feedback
Jump to navigation
Jump to search
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 541: | Line 541: | ||
end | end | ||
if row.link then | if row.link then | ||
label_cell:wikitext(string.format('[[%s|<span | label_cell:wikitext(string.format('[[%s|<span>%s</span>]]:', | ||
page_link(ctx, row.link), label_of(row))) | page_link(ctx, row.link), label_of(row))) | ||
else | else | ||
| Line 597: | Line 597: | ||
local tr = tbl:tag('tr') | local tr = tbl:tag('tr') | ||
local label = dict_module.translate(row.label_dict) | local label = dict_module.translate(row.label_dict) | ||
local label_cell = tr:tag('td') | |||
if row.tooltip then | if row.tooltip then | ||
label_cell:attr('title', row.tooltip) | |||
end | end | ||
if row.link then | if row.link then | ||
label_cell:wikitext(string.format('[[%s|<span>%s</span>]]:', | |||
page_link(ctx, row.link), label)) | page_link(ctx, row.link), label)) | ||
else | else | ||
label_cell:wikitext(label .. ':') | |||
end | end | ||
tr:tag('td'):wikitext(ctx.args[row.param]) | tr:tag('td'):wikitext(ctx.args[row.param]) | ||