{{refid=queries['ref']}} {{qchild = queries['feature']}}
{{if qchild==null}} {{device_name_full qchild}} {{else}} {{device_name_full qchild}} {{end}}
{{dv = (device_by_ref refid)}} {{if qchild==null}}
Referencing Events for all Features
{{event_list = events_referenced_for_device refid true}} {{else}}
Referencing Events
{{event_list = events_referenced_for_device qchild false}} {{end}} {{if (array.size event_list) == 0}}
No events reference this device
{{else}} {{for evitem in event_list}} {{end}} {{end}}
{{if dv == null}} {{else}} {{if (dv.version < 4) || (qchild != null)}}
{{end}} {{end}}