Description
This solutions will show you how to make nice collapsible text blocks. What for? See the examples, you should know.
Code
[[collapsible]]
Some text to show/hide.
[[/collapsible]]
[[collapsible show="+ show me the hidden content" hide="- hide this content"]]
Some text to show/hide.
[[/collapsible]]
[[collapsible hideLocation="both"]]
some
very
very
...
long
text
[[/collapsible]]
In action
The options to the block are:
- show - text to be shown when folded, e.g. "+ show text"
- hide - text to be shown when unfolded, click to fold
- hideLocation - location of the text to hide block, values are: top, bottom, both (nice for long blocks)
And now some real examples
Extremely custom menu
Take a look at: http://snippets.wikidot.com/code:collapsible-block-unleashed
Code hiding
The following code is taken from the Wikidot-based web page
Quiz
What is the best Wiki platform ever?
Multiple Collapsibles
See also http://snippets.wikidot.com/code:colalt
Thanks to tsangk for this great snippet: conditional-blocks
text above inserted with:
[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]
Other snippets posted by michal-frackowiak
MyBlogLog recent visitors - 06 Jun 2021 04:03
Include Any Page - 06 Jun 2021 03:20
Babelfish Translation - 06 Jun 2021 03:14
Todo List - 18 Aug 2014 15:28
Multicolumn Layout - 17 Dec 2012 19:51
Zoho Writer - 16 Feb 2012 01:57
Zoho Sheet - 16 Feb 2012 01:56
Zoho Show - 16 Feb 2012 01:55
Zoho Polls - 16 Feb 2012 01:53
WoW Tooltips - 16 Feb 2012 01:52
Widgetbox Panel - 16 Feb 2012 01:52
Video from Revver - 16 Feb 2012 01:50
Tabs - 16 Feb 2012 01:45
Standalone Page Buttons - 16 Feb 2012 01:44
Social Bookmarking - 16 Feb 2012 01:42
Simple Gallery - 16 Feb 2012 01:41
Remember The Milk Todo - 16 Feb 2012 01:39
Recent Changes (mini) - 16 Feb 2012 01:36
Rating Summary - 16 Feb 2012 01:35
Quimble Poll - 16 Feb 2012 01:33
Quikmaps Maps - 16 Feb 2012 01:33
Photobucket Widget - 16 Feb 2012 01:29
Page Previews (Snap.com) - 16 Feb 2012 01:29
Pabpixies Gadgets - 16 Feb 2012 01:28
Meebo me - 16 Feb 2012 01:20
Layout With Tables - 16 Feb 2012 01:19
Instacalc - 16 Feb 2012 01:12
Import the Digg Feed - 16 Feb 2012 01:11
Import a News Feed - 16 Feb 2012 01:10
Google Gadgets - 16 Feb 2012 01:05
Gabbly chat - 16 Feb 2012 01:02
Forum Summary for the Front Page - 16 Feb 2012 01:02
Footnotes - 16 Feb 2012 01:01
Foldable List - 16 Feb 2012 01:01
Flickr Images By Tags - 16 Feb 2012 01:00
Feedburner - 15 Feb 2012 00:53
Extra Side Bar - 15 Feb 2012 00:51
Embed Code From Other Services - 15 Feb 2012 00:50
EditGrid Spreadsheets - 15 Feb 2012 00:49
Cornify - 15 Feb 2012 00:39
Compact Feed Display - 15 Feb 2012 00:35
Center Video - 15 Feb 2012 00:28
Bibliography/Footnotes/Comments Listed in TOC - 15 Feb 2012 00:26
Automatic Sitemap - 15 Feb 2012 00:25
Alexa traffic ratings - 15 Feb 2012 00:23
3d tagcloud - 15 Feb 2012 00:22
Rate this solution
If you think this solution is useful — rate it up!
Thank you great job helped me out.
Ramon Brown
This is really neat. Nice workNo really, this is great!!
HTML rendering:
This is really neat. <span class="hover" style="">Nice work<span style="">No really, this is great!</span></span>!
Fantastic, I appreciate the work.
What if I want to the name of it to 'access file 5243578435-B' You get the idea, how would I change the name of it?
I'd like to put in bold the show / hide text, but can't find the correct synatx…
try it with a local moduile CSS - overwriting the style of the "element div.collapsible-.block-folded"
with style="font-weight: bold;" :
I have a test-page with this local module CSS ( found out the div.class "collapsible-block-folded" with firefox web-developer tool inspector ( menu) on my test wiki:
https://helmuti-pdorf.wikidot.com/collapsible-block-css
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
Is there any way to change the color of the collapsible?
I have only the special style settings on http://snippets.wikidot.com/code:collapsible-block-unleashed
The "collapsible" line itself I have seen somewhere, but I think this is not so easy to sovle
Perhaps the old guide from div style settings does help you?
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
When I was making a tutorial on how to make a Personal Sandbox Template, I used this snippet to make the page shorter due to having code on the page too. Well I have come to problem when trying to list my latest post on my category start page.
I get this error:
Well if you look on my site it will show the start tag for this snippet and the un-collapsed content.
How do I fix this so the start tag and the un-collapsed content don't show?
My site is http://download-source.ml/
Joshua Darby
Wikidot Support Mentor | Icon Deposit Profile
I cannot seethe collapsible block , wether on the sandbox template nor on your site..?
I found it:
http://download-source.ml/download:personal-sandbox-template-wikidot
Not sure why this is happening , need some time toi contrrol…
at the first look I think the "include text" (includes are always expanded in "code" blocks!) is making the text so long..
if you do not wish this you should insert a space before the "include text" line - shifting the include one character to the right.
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
I would like to encourage EFL teachers to participate in this page and share ideas.
Is there a why to get the collapsible text block to appear in line with the text?
What I code is:
From Bridget's small log
with her one window, two quilts,
and hard pine bed,
it is 64 steps up to the old well,
the one that dried out
What I would prefer to have it look like is
From Bridget's small log +crib
An eight-by-ten-cabin
where prostitutes lived
and entertained
customers.
with her one window, two quilts,
and hard pine bed,
it is 64 steps up to the old well,
the one that dried out
Any ideas?
Thanks.
thanks - M
thanks !!