Content deleted Content added
more comments |
work in progress |
||
Line 89:
local bubble = function(text, short_text, default_colour, conflict)
local colour = cfg.
local out = mw.html.create('span')
:addClass('wpb-header-bubbles')
Line 296:
end
end
if show_quality then -- quality rating shown in banner
local class_module = require('Module:Class')._class
Line 309 ⟶ 310:
or cfg.quality.default_scale
local quality_rating = cfg.quality.rating:format(pagetype, rating, scale)
-- local icon = cfg.quality.icon[class] and iconDefault and (o.image ~= cfg.no) or (o.image == cfg.yes)
-- icon = icon and p.icon(args) .. ' ' or ''
local text = wikilink(':Category:' .. category, class)
-- cell
-- :wikitext(mw.getCurrentFrame():extensionTag{ name = 'templatestyles', args = {src = cfg.stylesLocation} }, icon, text)
-- return tostring(cell)
local class_row = mw.html.create('tr')
:tag('td'):addClass('assess'):addClass('assess-' .. class):done()
--:node(class_module{class, category = assessment_cat})
:tag('td'):addClass('mbox-text'):attr('colspan', '2'):wikitext(quality_rating)
:allDone()
Line 322 ⟶ 332:
table.insert(nested_ratings, 1, new_bubble)
end
add_category(category)
▲ add_category((class=='' and 'Unassessed' or class..'-Class') .. ' ' .. assessment_cat)
end
if args.HOOK_ASSESS then
|