Module:WikiProject banner/auxiliary and Module:WikiProject banner/auxiliary/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
fix text color in dark mode; this generally works but may cause problems, in which case revert or try specifying a color |
try fix |
||
Line 1: | Line 1: | ||
require('strict') |
require('strict') |
||
local p = {} |
local p = {} |
||
local sandbox |
local sandbox = '/sandbox' |
||
local cfg = mw.loadData('Module:WikiProject banner/config' .. (sandbox or '')) |
local cfg = mw.loadData('Module:WikiProject banner/config' .. (sandbox or '')) |
||
local yesno = require('Module:Yesno') |
local yesno = require('Module:Yesno') |
||
Line 76: | Line 76: | ||
:tag('td') |
:tag('td') |
||
:addClass('assess-b') |
:addClass('assess-b') |
||
:css('background', cfg.quality.colour.B |
:css('background', cfg.quality.colour.B):css('padding-bottom', '5px') |
||
:wikitext(cfg.b_checklist.image) |
:wikitext(cfg.b_checklist.image) |
||
:done() |
:done() |
||
Line 125: | Line 125: | ||
local todo_list = mw.html.create('tr') |
local todo_list = mw.html.create('tr') |
||
:tag('td'):attr('colspan', '3'):css('padding', '0') |
:tag('td'):attr('colspan', '3'):css('padding', '0') |
||
:tag('table'):addClass('mw-collapsible mw-collapsed'):css('background', 'transparent |
:tag('table'):addClass('mw-collapsible mw-collapsed'):css('background', 'transparent'):css('width', '100%') |
||
:tag('tr') |
:tag('tr') |
||
:tag('th'):css('text-align', 'left'):css('padding', '0.2em 2px 0.2em 0') |
:tag('th'):css('text-align', 'left'):css('padding', '0.2em 2px 0.2em 0') |
||
Line 131: | Line 131: | ||
:done():done() |
:done():done() |
||
:tag('tr') |
:tag('tr') |
||
:tag('td'):css('text-align', 'left'):css('padding', '5px'):css('background-color', 'white |
:tag('td'):css('text-align', 'left'):css('padding', '5px'):css('background-color', 'white') |
||
:css('border', '1px solid #c0c090'):css('margin-top', '5px') |
:css('border', '1px solid #c0c090'):css('margin-top', '5px') |
||
:cssText(args.TODO_STYLE):wikitext(list) |
:cssText(args.TODO_STYLE):wikitext(list) |