(Unterschied zwischen Seiten)
K (1 Version importiert) |
hw>WikiSysop (Created page with "local p = {} -- p stands for package function p.forDate( frame ) local todayU = frame:callParserFunction( '#time:U' ) local soonU = frame:callParserFunction( '#time:U...") |
||
Zeile 1: | Zeile 1: | ||
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' | |||
if ( timeU < soonU ) then | |||
color = 'orange' | |||
end | |||
if ( timeU < todayU ) then | |||
color = 'red' | |||
end | |||
return p.getIndicator( frame, color ) | |||
end | |||
function p.getIndicator( frame, color ) | |||
-- adding the color in hidden text makes the indicator sortable in tables | |||
return "<span class='date-indicator' style='color: " .. color .. ";font-size:1em;'>◉<span style='display:none;'>" .. color .. "</span></span>"; | |||
end | |||
return p | |||
Version vom 9. Juli 2021, 16:53 Uhr
Die Dokumentation für dieses Modul kann unter Modul:IndicatorProcess/Doku erstellt werden
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'
if ( timeU < soonU ) then
color = 'orange'
end
if ( timeU < todayU ) then
color = 'red'
end
return p.getIndicator( frame, color )
end
function p.getIndicator( frame, color )
-- adding the color in hidden text makes the indicator sortable in tables
return "<span class='date-indicator' style='color: " .. color .. ";font-size:1em;'>◉<span style='display:none;'>" .. color .. "</span></span>";
end
return p
{ "type": "PROPERTY_CONSTRAINT_SCHEMA", "constraints": { "type_constraint": "_txt", "allowed_values": [ "1 Anwendungsbereich", "2 Normative Verweisungen", "3 Begriffe", "4 Kontext der Organisation", "4.1 Verstehen der Organisation und ihres Kontextes", "4.2 Verstehen der Erfordernisse und Erwartungen interessierter Parteien", "4.3 Festlegen des Anwendungsbereichs des Informationssicherheitsmanagementsystems", "4.4 Informationssicherheitsmanagementsystem", "5 Führung", "5.1 Führung und Verpflichtung", "5.2 Politik", "5.3 Rollen, Verantwortlichkeiten und Befugnisse in der Organisation", "6.1 Maßnahmen zum Umgang mit Risiken und Chancen", "6.2 Informationssicherheitsziele und Planung zu deren Erreichung", "7 Unterstützung (Support)", "7.1 Ressourcen", "7.2 Kompetenz", "7.3 Bewusstsein", "7.4 Kommunikation", "7.5 Dokumentierte Information", "8 Betrieb (Operation)", "8.1 Betriebliche Planung und Steuerung", "8.2 Informationssicherheitsrisikobeurteilung", "8.3 Informationssicherheitsrisikobehandlung", "9 Bewertung der Leistung", "9.1 Überwachung, Messung, Analyse und Bewertung", "9.2 Internes Audit", "9.3 Managementbewertung", "10 Verbesserung", "10.1 Nichtkonformität und Korrekturmaßnahmen", "10.2 Fortlaufende Verbesserung" ] } }