Изворни код странице Модул:WeatherBoxColors/sandbox
Пређи на навигацију
Пређи на претрагу
Немате дозволу да уређујете ову страницу из следећег разлога:
Можете да видите и копирате извор ове странице.
w = {};
convert = require( 'Module:BaseConvert' );
math_mod = require( 'Module:Math' );
function hex( value )
return convert.convert( { n = value, base = 16, width = 2, precision = 0 } );
end
function format_line( background, text_color )
return table.concat( {"background: #", background, "; color:#", text_color, ";"} );
end
function range_pos( value, start, stop )
if start < stop then
if value < start then
return 0;
elseif value > stop then
return 1;
else
return (value - start) / (stop - start);
000
1:0
Шаблон који се користи на овој страници:
Назад на страницу Модул:WeatherBoxColors/sandbox.