Module:Sensitive IP addresses/summary: Difference between revisions

Content deleted Content added
use a more specific name than "separator"
add a cellstyle option
Line 33:
root:tag('tr'):tag('td')
:attr('colspan', nColumns)
:cssText(options.cellstyle)
:wikitext(options.mainheader)
end
Line 40 ⟶ 41:
headerRow
:tag('th')
:cssText(options.cellstyle)
:wikitext('[[IPv4]]')
:done()
:tag('th')
:cssText(options.cellstyle)
:wikitext('[[IPv6]]')
:done()
:tag('th')
:cssText(options.cellstyle)
:wikitext('Description')
if showNotes then
headerRow:tag('th'):wikitext('Notes')
:cssText(options.cellstyle)
:wikitext('Notes')
end
 
Line 58 ⟶ 64:
dataRow
:tag('td')
:cssText(options.cellstyle)
:wikitext(entityData.ipv4Ranges
and table.concat(entityData.ipv4Ranges, rangeSeparator)
Line 64 ⟶ 71:
:done()
:tag('td')
:cssText(options.cellstyle)
:wikitext(entityData.ipv6Ranges
and table.concat(entityData.ipv6Ranges, rangeSeparator)
Line 70 ⟶ 78:
:done()
:tag('td')
:cssText(options.cellstyle)
:wikitext(entityData.description or entityData.name)
if showNotes then
dataRow:tag('td'):wikitext(entityData.notes)
:cssText(options.cellstyle)
:wikitext(entityData.notes)
end
end