Spoiler tag

Nao

  • Dadman with a boy
  • Messages: 16 082
Spoiler tag
« le 7 Mai 2011 à 13:00 »
Feature: Spoiler tag
Developer: Nao
Target: users, geeks
Status: 100% (complete.)
Comment:

Just as the name implies, use the spoiler tag to hide sensitive information by default. Perfect to discuss recently released fiction. Or whatever.

Roz

Re: Spoiler tag
« Réponse #1, le 22 Juin 2011 à 20:21 »
Will there be a way to describe the spoiler? As in:

(cliquez pour montrer/cacher)
Luke I am your father

So that people know what the spoil is about, for whatever reason?

Re: Spoiler tag
« Réponse #2, le 23 Juin 2011 à 00:12 »
Can't say I've ever needed it, if I did, I could just as easily preface it.
(cliquez pour montrer/cacher)
Just like this.

Re: Spoiler tag
« Réponse #3, le 23 Juin 2011 à 00:12 »
Citation de Arantor le 23 Juin 2011 à 00:12
Can't say I've ever needed it, if I did, I could just as easily preface it.
(cliquez pour montrer/cacher)
Just like this.
Will you make it so it won't break on descriptions? A lot of forums today run with descriptions on.

Re: Spoiler tag
« Réponse #4, le 23 Juin 2011 à 00:25 »
Considering that there are multiple spoiler mods for SMF that are all different...

I guess it's something we can kill in the converter.

Re: Spoiler tag
« Réponse #5, le 23 Juin 2011 à 00:36 »
Citation de Arantor le 23 Juin 2011 à 00:25
Considering that there are multiple spoiler mods for SMF that are all different...
If you're not planning any properties for spoiler you could just rip out anything behind the =.

Then again, I can see this might cause stupid bugs later on, so I agree with you, if the converter will do it, then that would be the best time to do it.

Maybe, if I brush up on my skills, I'll be able to create a plug-in that lets you use descriptions, no?

Roz

Re: Spoiler tag
« Réponse #6, le 23 Juin 2011 à 02:02 »
Hmm, one of the spoiler mods I had did the thing I asked. I wasn't quite clear on it.

With the following markup
(cliquez pour montrer/cacher)
the button we have saying SPOILER (the one we click) had the text we typed field, right beside it. So if I wanted to spoil something about Game of Thrones the spoiler button would be:

SPOILER: Game of Thrones Deaths!

So in essence, the person would know what the spoiler was about without having to read the context of it. Of course this isn't essential, but it's a small and nice detail.

Re: Spoiler tag
« Réponse #7, le 23 Juin 2011 à 02:43 »
Yeah we understood that.

Re: Spoiler tag
« Réponse #8, le 6 Juillet 2011 à 18:54 »
I think it's something we could (should?) add indeed...
Added to my to-do-list, with lower priority though. (But it should be quick to implement.)

Re: Spoiler tag
« Réponse #9, le 27 Août 2012 à 09:35 »
(cliquez pour montrer/cacher)
(cliquez pour montrer/cacher)
:eheh:
(cliquez pour montrer/cacher)
(cliquez pour montrer/cacher)
:cool:

sorry my English...
question: if there are pictures in the spoiler - they will be loaded if it is closed?

Re: Spoiler tag
« Réponse #10, le 27 Août 2012 à 09:48 »
I guess so, yes... For them not to load, you'd have to use JavaScript (it's called a 'lazy load' technique, you can google it.)
Perhaps it depends on the browser, though (it's not hard to calculate the visibility of an image and determine whether to suspend loading. Well, if it can be done in JavaScript, it can be done in the browser itself too ;)). But I would expect the pictures to load.
Posté : 27 Août 2012 à 09:46

Oh, BTW quite obviously the description feature was added in the meantime! (cf. previous posts :P)