Module:Sensitive IP addresses/summary: Difference between revisions

Content deleted Content added
No edit summary
more accessible and simple markup
 
(4 intermediate revisions by 3 users not shown)
Line 24:
return ret
end
 
--kh
-- Turns an array of CIDR ranges into its string representation.
local function stringifyRanges(ranges, bitLength, separator)
Line 45:
local rangeSeparator = options.rangeseparator or ', '
local showNotes = yesno(options.notes)
local nColumns = showNotes and 3 or 4
 
-- Get the entity data
Line 55 ⟶ 54:
-- Make the table root
local root = mw.html.create('table')
root:addClass('sensitive-ip-addresses')
if options.class then
root:addClass(options.class)
Line 64:
-- Add main header
if options.mainheader then
root:tag('trcaption'):tagwikitext('td'options.mainheader)
end
:attr('colspan', nColumns)
:cssText(options.cellstyle)
:wikitext(options.mainheader)
end
 
-- Add column headers