New spoiler/accordion syntax
Site Updates forum
Posted on May 6, 2015, 8:13 p.m. by yeaGO
Hey look a spoiler!!!! Show
===spoiler:Hey look a spoiler!!!!
[[deck-large:haze-frog-spits-on-fools]]
===endspoiler
===accordion
===panel:Hey look I made a spoiler of stuff!
It was hidden now its not.
===endpanel
===panel:I wonder what's here when you click.
Nothing that interesting.
===endpanel
===endaccordion
Bye-bye to overcomplicated JS or HTML that doesn't work everywhere.
Test:
Look what I got in the mail today! Show
May 6, 2015 8:22 p.m.
canterlotguardian says... #4
You just uncomplicated so much stuff I was trying to do for my Kiku, Night's Flower EDH primer. Thanks yeaGO.
May 6, 2015 8:24 p.m.
canterlotguardian says... #8
Is there some other syntax that I have to use to get the panels to show up? I'm trying it out on my deck and it's not showing up the way you have it, yeaGO.
May 6, 2015 8:42 p.m.
canterlotguardian says... #9
To be more specific, the initial panel shows up, but none of the other panels below it. They're all just clumped into a giant wall of text within the first panel.
May 6, 2015 8:46 p.m.
canterlotguardian says... #12
Taking It Back to the River (Kiku Primer) Playtest
Commander / EDH
SCORE: 0 | 0 COMMENTS | 102 VIEWSMay 6, 2015 9:02 p.m.
Epochalyptik says... #14
@yeaGO: Can we expect to see a button for this in the RTE?
May 6, 2015 9:04 p.m.
canterlotguardian says... #15
Thank you for that, Epochalyptik. That was driving me insane.
May 6, 2015 9:04 p.m.
FAMOUSWATERMELON says... #16
sirbar here's some coding that you can use :)
And this is great Yeago! Does this work on absolutely EVERYTHING?
May 6, 2015 9:33 p.m.
Wonderful! Super long descriptions are now a thing of the past, again!!
May 6, 2015 9:40 p.m.
I tried making a list with single line breaks here and it worked inside a spoiler. However, on my profile, it doesn't appear to be working.
My profile: InDirectX
What kind of list I'm talking about:
Scute Mob
Black Lotus
Mox Opal
spoiler version
Show
May 6, 2015 10:02 p.m.
Epochalyptik says... #19
Try <p> tags.
Also, you don't need so many spaces to do breaks. Use three.
May 6, 2015 10:11 p.m.
You can also use
< details >< summary > Whatever< /summary >
< details >
Whatever
Psyche! That's the wrong numba'!
Just take out the spaces.
May 6, 2015 10:47 p.m.
Blizzicane says... #22
Prima - Except that doesn't work in Firefox and Internet Explorer (possible more). Too bad really because its my favorite spoiler type. Q_Q
But I love the addition of the spoilers from the update section, awesome update! X3
May 7, 2015 12:08 a.m.
hyperlocke says... #24
YESSSSS, accordions! I once spent an afternoon trying to get these to work on this site... Thanks!
May 7, 2015 6:56 a.m.
hyperlocke says... #25
can they be nested?
My first try (just do a new accordion inside a panel) didn't work.
May 7, 2015 7:01 a.m.
May 7, 2015 7:33 a.m.
Sparda1127 says... #28
Is there any way we can center the text in the panels though? If so, my deck is being switched over to this ASAAAAAAP.
May 7, 2015 7:54 a.m.
hyperlocke says... #29
You can format the panel text with normal html tags, but you have to insert a space between the double colon and the first tag.
panel: < center >centered text< /center>
May 7, 2015 8:03 a.m.
hyperlocke says... #30
Ah man, I told you about the space and forgot it myself...
May 7, 2015 8:05 a.m.
Sparda1127 says... #31
It seems to mess up the formatting within the spoiler though.
May 7, 2015 8:20 a.m.
Sparda1127 says... #34
The problem is when I switch over from formatting in Guul Draz: The Art of Blood [Budget] to the new accordion formatting in the non-budgeted version (currently private, so can't link), it just creates a massive wall instead of the nicely formatted text.
May 7, 2015 9:54 a.m.
hyperlocke says... #36
Ah, you want paragraphs? Yeah, automatic paragraphs (hit enter 2 times) don't seem to work. Use < p > and < /p > instead.
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
May 7, 2015 10:20 a.m.
Sparda1127 says... #37
Alright, sweet! That fixed everything.
That's a ton of new formatting to put in, but it'll be worth it. :)
May 7, 2015 10:38 a.m.
Servo_Token says... #39
So I went and edited my loam primer through with this new accordion panel such and such, and when I go to save it I get thopters. Too much for the site to handle maybe? I've got like 12 panels and 3 different instances of accordioning, I wouldn't think that that's too much to handle.
May 7, 2015 12:11 p.m.
hyperlocke says... #42
So you can put accordions inside spoilers and vice versa. But you can't put spoilers inside spoilers/accordions inside accordions. You also can't put a spoiler inside an accordion inside a spoiler and so on. That is quite sad.
May 7, 2015 12:26 p.m.
ThisIsBullshit says... #48
So I tried on a deck and it worked great, but now I can't get it to work on my binder.... What's up with that? Or what did I do wrong, more specifically.
Is the other html in my description screwing things up?
May 8, 2015 4:22 p.m.
Epochalyptik says... #49
Shouldn't be. Try again and let me know. I should be able to view your code.
Blind_Guardian says... #2
Finally
May 6, 2015 8:16 p.m.