4. A violation of a special law or county or municipal ordinance ancillary to a state charge, or if not ancillary to a state charge, only if the public defender contracts with the county or municipality to provide representation pursuant to ss.
27.54 and
125.69.
The public defender shall not provide representation pursuant to this paragraph if the court, prior to trial, files in the cause an order of no imprisonment as provided in s. 27.512;