Module:Sensitive IP addresses/summary: Difference between revisions

Content deleted Content added
Undid revision 740742983 by 208.54.39.156 (talk)
more accessible and simple markup
 
(3 intermediate revisions by 2 users not shown)
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