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 pastU = frame:callParserFunction( '#time:U', '-2 months' )
local timeU = frame:callParserFunction( '#time:U', frame.args[1] )
local closed = frame.args[2]
local color = 'green'
local shape = '◉' -- different shapes for accessibility WCAG 1.4.1
local statusind = 'aktuell'
if ( timeU < todayU ) then
color = '#CC8500'
end
if ( timeU < pastU ) then
color = 'red'
shape = '◎'
statusind = 'überfällig'
end
if ( closed == 'closed' ) or ( closed == 'geschlossen' ) then
color = 'blue'
shape = '◍'
statusind = 'geschlossen'
000
1:0
Template used on this page:
Return to Module:IndicatorAudit.