The city condemned my building. Will my policy pay for a hotel?
Generally not, because loss of use requires an insured peril such as fire or water, and a code closure is not one. Your belongings remain covered on their own terms. The accommodation claim in that situation is usually against the owner rather than an insurer.
So what is loss of use actually for?
For when a covered loss makes the home uninhabitable: a fire, a burst pipe, smoke from a neighboring unit. In those cases it pays the additional cost of living elsewhere, and it is frequently the largest part of a tenant claim.
Is there anything that covers being displaced generally?
Not through a renters policy, and that is worth knowing plainly rather than discovering. Where the cause is the owner’s failure, the remedy is a landlord-tenant one, and the sooner that is understood the sooner it gets pursued.