Module:Userbox: Difference between revisions
m
not needed
(import userbox from wikipedia) |
m (not needed) |
||
Line 294:
end
-- local legible = true
-- local contrast = require('Module:Color contrast')._ratio
local function has_text(wikitext)
Line 308:
return mw.text.trim(wikitext) ~= ""
end
--[[
-- not needed
if contrast { data.infoColor, data.backgroundColor, error = 0 } < 4.5 then
Line 326 ⟶ 329:
if not legible then
root:wikitext('[' .. '[Category:Potentially illegible userboxes]' .. ']')
end
]]--
return tostring(root)
|