RolePlay onLine RPoL Logo

, welcome to Technical Discussions

14:04, 12th February 2025 (GMT+0)

Images in a spoiler tag?

Posted by AugustusGloop
AugustusGloop
member, 12 posts
Thu 6 Jun 2024
at 20:58
  • msg #1

Images in a spoiler tag?

Is it possible to spoiler an image?
patchwolf
member, 110 posts
Software Tester
Sydney, Australia
Thu 6 Jun 2024
at 21:57
  • msg #2

Images in a spoiler tag?

Let's find out!

This worked in my game...

quote:

Spoiler text: (Highlight or hover over the text to view)
Testing....

<img src="https://i.patchwolf.com/ExandriaUnbound/00-Poster-Map-9000.jpg">

Test Complete.



But this did not:

quote:

Spoiler text: (Highlight or hover over the text to view)
<img src="https://i.patchwolf.com/ExandriaUnbound/00-Poster-Map-9000.jpg">Test Complete.


So I think it's possible if there's something other than the nested tags in there.
AugustusGloop
member, 13 posts
Thu 6 Jun 2024
at 22:42
  • msg #3

Images in a spoiler tag?

Interesting!  I tried your method, but while the top and bottom text is spoilered, the image (in the middle) seems to be visible without mousing over it.
This message was last edited by the user at 22:59, Thu 06 June 2024.
patchwolf
member, 111 posts
Software Tester
Sydney, Australia
Thu 6 Jun 2024
at 23:15
  • msg #4

Images in a spoiler tag?

No, you're right.  My bad.  Looks like it's not possible.

In that case, I'd recommend just a link to the image source anyway.  let your players opt-in to seeing what you want them to see.
AugustusGloop
member, 14 posts
Thu 6 Jun 2024
at 23:21
  • msg #5

Images in a spoiler tag?

Yeah, that was my thought too.  One more step is a first world problem, so I'm not complaining.  Thank you for investigating!
Sign In