I never got detention, they didn't give it as punishment.
When I was in Secondary School the nuns in the main had a sense of humour so our pranks were taken in that light.....not so by the couple of lay teachers, I think they were made in hell.

They weren't allowed to hit us once we went into Secondary but if something was very serious then the Mother Superior had that privilage. She kept a flat stick in her office with a shape at the end for her hand.
I got 2 slaps of that in the 5 years I was there. We were all caught at one of the windows while one girl was melting her purse with a maginifying glass I suppose we could have set the school on fire.
Anyone who was even watching had to own up and were sent to MS's office to get her 2 slaps. One girl didn't so we didn't speak to her for ages afterwards, our code was if you did something you owned up.

Another time my friend and I were sent by a lay teacher to the Mother Superiors office because I had tasted the soup we were making and my friend owned up to tricking me into doing it.
The food wasn't our own and the poor boarders had to eat it afterwards. When we told MS she just stood back and laughed and laughed and told us to go back to class.

My friend and I were known as the terrible twins by the nuns but those nuns were generally very sound people.
We had great fun, I could write a book.....won't mention getting away with throwing snowballs down on two lay teachers.
Betty