Content deleted Content added
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 4:
function p.makeTableTop()
local headerRow = mw.html.create('tr')
:node(mw.html.create('th'):wikitext('Sitesite'))
:node(mw.html.create('th'):wikitext('IDid'))
:node(mw.html.create('th'):wikitext('Aliasalias'))
:node(mw.html.create('th'):wikitext('Notesnotes'))
:done()
 
Line 29:
 
local function getAlias(alias, title)
if not alias or alias == '' then
return title'N/A'
else
return alias
end
end
end
 
local function getNotes(notes)
if not notes or notes == '' then
return 'N/A'
else
return notes
end
end
end
 
if not args.site then
return mw.html.create('tr')
:css('background-color', getColor(args.rowIndex))
:node(mw.html.create('td'):attr('colspan', '4'):wikitext('Invalid arguments. Please see documentation for correct usage.'))
:done()
Line 53:
local site = args.site or mw.title.getCurrentTitle().text
local id = args.id or ''
local alias = getAlias(args.alias, mw.title.getCurrentTitle(site).text) -- исправление 2
local notes = getNotes(args.notes) -- исправление 3
local background = getBackground(site)
 
Line 72:
:css('background-color', background)
:css('padding', '8px')
:wikitext(aliasaliasCell) -- исправление 2
:done()
 
Line 78:
:css('background-color', background)
:css('padding', '8px')
:wikitext(notesnotesCell) -- исправление 3
:done()
 
return mw.html.create('tr')
:css('background-color', getColor(args.indexrowIndex)) -- исправление 1
:node(cell)
:node(idCell)