Module:Portal toolbox: Difference between revisions

Content deleted Content added
create a new module
 
m fix
Line 8:
:attr('colspan', '2')
:wikitext(text)
end
 
local function edit(frame, pagename)
return frame:expandTemplate{ title='edit', args = { pagename } }
end
 
Line 40 ⟶ 44:
end
if right == nil then
right = edit(frame:expandTemplate{ title='edit', args = { a } })
end
toolbox_row(frame, tbl, a, text, right)
Line 54 ⟶ 58:
toolbox_header_row(frame, tbl, 'Main portal page')
local rootTitle = mw.title.getCurrentTitle().rootPageTitle.subjectPageTitle
toolbox_edit_rowtoolbox_row(frame, tbl, rootTitle.fullText, nil, edit(frame, rootTitle.fullText))
toolbox_section(frame, args, tbl, rootTitle, 'Static subpages', 'static')