Изменения
Перейти к навигации
Перейти к поиску
мСтрока 137:
Строка 137:
− +
− +
оформление
function p._ratio(args)
function p._ratio(args)
local v1 = color2lum(args[1])
local v1 = color2lum(mw.text.unstripNoWiki(args[1]))
local v2 = color2lum(args[2])
local v2 = color2lum(mw.text.unstripNoWiki(args[2]))
if (type(v1) == 'number' and type(v2) == 'number') then
if (type(v1) == 'number' and type(v2) == 'number') then
-- v1 should be the brighter of the two.
-- v1 should be the brighter of the two.