Jump to content

Module:Userbox: Difference between revisions

47 bytes added ,  7 years ago
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)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.