Description
Here's a half-baked solution for discussion thread “TOC's from many pages displayed on one?”
Although this allows you to pull in the TOC's, they aren't linking to their respective pages (but to the current page instead) and fold/unfold only works for the first TOC.
Code
[[module ListPages category="code" limit="9" order="pageEditedDesc"]]
[[table]][[row]]
[[cell]][[[%%page_unix_name%%]]][[/cell]][[/row]]
[[row]]
[[cell]]
[[div style="display : none"]]
[[include %%page_unix_name%%]]
[[/div]]
[[toc]]
[[/cell]][[/row]][[/table]]
[[/module]]
In action
make-clock | |
DescriptionIt same time on your phone :) CodeInsert this code into your page
In actionAfter inserting |
tag | |||||||||||||||||||
DescriptionYou can disguise the tags and include a link. Code
Syntax
In action
ImportantTags used in this syntax do not register with the tag as an article. |
colalt | |||||||||||||||||||||||||||||||||||||
DescriptionSpeaking of multiple collapsibles, there's Demo1Colalt is colalt itself… SyntaxAnd the source code is different in the odd and even layers. The first layer of colalt is the first layer, and when you nest the colalt in order, the second layer, the third layer, and so on.
CodeYou can add/modify parameters as needed by enclosing the part you want to fold with the following colalt.
In actionDemo 2If you omit nohide in oddend or evenend and set hide… Demo 3If you omit hide in oddtop or eventop and set nohide=true… Demo 4If you set folded=false… You can reproduce the collapsible folded="no". [[include :snippets:colalt |foddtop=[|folded=false|nohide=true|hide=- close]]
You can reproduce the collapsible folded="no". [[include :snippets:colalt |foddend=[|folded=false|show=+ open|nohide=true]] Demo 5If you enclose a colalt with [[div class="collapsiblealt"]] and [[/div]]… Demo6ImportantCannot be used within [[iftags]].Cannot be used within [[collapsible]].Skipping and closing odd numbers causes clutching. |
falling-snowflakes-effect | |
Falling snowflakes over pages
Code
In action |
html5player | |
DescriptionCurrently we only have a Flash-based option for audio and video inclusion. These snippets fix that by providing an HTML5-based alternative (which should really be the default by now). CodeYou can create audio and video embeds like this:
If you want the file to play automatically, do it this way:
type should be "video" or "audio". Due to how the audio and video elements are implemented, they are not stylable this way, but this embed can of course be extended to provide a custom layout which can be styled. In action |
mail-to-all-moderators | |
DescriptionI haven't found a solution so I don't know if this is the proper way to ask the question. Feel free to remove the page if not the appropriate way! I would like to know if it is possible to create a link that would open a new mail in outlook that is destinated to all moderators (mail addresses can actually appear in the mail, it's not a problem). Is it possible to ask the site to go get the mail addresses in the wikidot database or do I have to list all the actual addresses in the code? The only way I see to do this would be the code below. But I would like to refer to the wikidot database so I don't have to change all the links when there is a change in the staff. The goal is that the user will warn all moderators when the create a new page. If an automatic solution is available for every page creation it would work as well (even better) but it has to be by mail, as I expect people not to check their private messages on a regular basis. Thanks! Code
|
put-comments-in-the-editor-that-won-t-show | |
DescriptionSo my colleague and I needed this function but we could not find it on wikisyntax. The purpose is to put it in a template in order to warn the writer to read some instructions first. I know its certainly obvious for the most of you but I thought it could be useful for other noobs like us :) CodeSo we found this solution:
However, if you know another way that is more simple or if you think of other functions that could be useful with this one, you are more than welcome! Have a nice day. |
modal-image | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DescriptionThis is a variation of the Bootstrap Image Box which transposes images into a Bootstrap modal upon being clicked. To see how this works, click here! InstructionsTo use this snippet, paste the following code and fill in the desired fields: [[include :snippets:modal-image If you leave a field blank, then a default value will be applied instead. The below table shows you the possible values and what each field does: NOTE: Do not use quotes when filling out fields (unless you want quotes to display).
CSS CustomizationLike its predecessor, the Modal Image snippet may be easily customized for your site via CSS. Use the following classes for customization:
You may also use the following Bootstrap-specific classes that correspond to the kind field (see above):
How do I…
|
countdown-timer | |
DescriptionThis is a simple countdown timer. I Slightly edited it to fit for the holidays. Code
Blank version ( for easy editing)
That's how it would look like |
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 ErichSteinboeck
Redirect: To - 16 Feb 2012 01:37
Module Listpages Tags - 16 Feb 2012 01:24
Module Feed Drilldown: Details Page - 16 Feb 2012 01:24
Module Feed Drilldown - 16 Feb 2012 01:24
Module Feed: Collapsible - 16 Feb 2012 01:23
Module Categories - 16 Feb 2012 01:23
MiniRecentPosts With Limit - 16 Feb 2012 01:23
ListPages: Horizontal? - 16 Feb 2012 01:20
Choose A Page! - 15 Feb 2012 00:32
Redirect: From (1st) - 01 Mar 2009 18:18
Redirect: From (2nd) - 01 Mar 2009 18:17
Rate this solution
If you think this solution is useful — rate it up!
I put two rows, instead of one, it is neater, and all tocs are aligned…. Hope you don't mind, Erich!
If slaughterhouses had glass walls, everyone would be vegan. - Paul McCartney