Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
start category list
fixes
Line 641:
local categories_formatted
if args.demo_page then -- for testing purposes
local category_list = mw.html.newcreate('div')
:wikitext('Categories:')
:tag('ol')
categories_formatted = tostring(category_list)
for _, cat in ipairs(categories) do
local cat_link = wikilink(':Category:' .. cat.category)
category_list:tag('li'):wikitext(cat_link):done()
end
categories_formatted = tostring(category_list:allDone())
else
local categories_linked = {}
Line 674 ⟶ 679:
local tstyle = frame:extensionTag ('templatestyles', '', {src='Module:Message box/tmbox.css'}) ..
frame:extensionTag ('templatestyles', '', {src = 'Module:WikiProject banner' .. (sandbox or '') .. '/styles.css'})
return warning .. tstyle .. tostring(banner) .. table.concat(categories)categories_formatted, note_count, #taskforce_output, assessment_link
end