(1g) In this section:
(a) “Boat” means any ship or vessel that has sleeping quarters.
(b) “Motor home” has the meaning given in s. 340.01 (33m).
(1m) Whoever intentionally enters any of the following places without the consent of the person in lawful possession and with intent to steal or commit a felony in such place is guilty of a Class F felony:
(a) Any building or dwelling; or
(b) An enclosed railroad car; or
(c) An enclosed portion of any ship or vessel; or
(d) A locked enclosed cargo portion of a truck or trailer; or
(e) A motor home or other motorized type of home or a trailer home, whether or not any person is living in any such home; or
(f) A room within any of the above.
(2) Whoever violates sub. (1m) under any of the following circumstances is guilty of a Class E felony:
(a) The person is armed with a dangerous weapon or a device or container described under s. 941.26 (4) (a).
(b) The person is unarmed, but arms himself with a dangerous weapon or a device or container described under s. 941.26 (4) (a) while still in the burglarized enclosure.
(c) While the person is in the burglarized enclosure, he or she opens, or attempts to open, any depository by use of an explosive.
(d) While the person is in the burglarized enclosure, he or she commits a battery upon a person lawfully therein.
(e) The burglarized enclosure is a dwelling, boat, or motor home and another person is lawfully present in the dwelling, boat, or motor home at the time of the violation.
(3) For the purpose of this section, entry into a place during the time when it is open to the general public is with consent.