You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {} -- p stands for package
function p.forDate( frame )
local todayU = frame:callParserFunction( '#time:U' )
local soonU = frame:callParserFunction( '#time:U', '+2 months' )
local timeU = frame:callParserFunction( '#time:U', frame.args[1] )
local color = 'green'
local shape = '◉' -- different shapes for accessibility WCAG 1.4.1
local statusind = 'aktuell'
if ( timeU < soonU ) then
color = '#CC8500'
shape = '◐'
statusind = 'ablaufend'
end
if ( timeU < todayU ) then
color = 'red'
shape = '◎'
statusind = 'abgelaufen'
end
return p.getIndicator( frame, color, shape, statusind )
end
000
1:0
Template used on this page:
Return to Module:IndicatorProcess.