Module:Navbox: திருத்தங்களுக்கு இடையிலான வேறுபாடு

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
Reverted 1 edit by Alakzi (talk): Sigh, I meant to do that in the sandbox. (TW)
reapply just Add colour tracking changes from sandbox
வரிசை 271:
local function hasBackgroundColors()
return mw.ustring.match(args.titlestyle or '','background') or mw.ustring.match(args.groupstyle or '','background') or mw.ustring.match(args.basestyle or '','background')
end
 
local function isIllegible()
local styleratio = require('Module:Color contrast')._styleratio
 
for key, style in pairs(args) do
if tostring(key):match("style$") then
if styleratio{style} < 4.5 then
return true
end
end
end
return false
end
 
வரி 277 ⟶ 290:
if needsHorizontalLists() then table.insert(cats, 'Navigational boxes without horizontal lists') end
if hasBackgroundColors() then table.insert(cats, 'Navboxes using background colours') end
if isIllegible() then table.insert(cats, 'Potentially illegible navboxes') end
return cats
end
"https://tamilar.wiki/w/Module:Navbox" இலிருந்து மீள்விக்கப்பட்டது