Posted by ErichSteinboeck on 21 Mar 2009 11:48, last edited by James Kanjo on 09 May 2010 05:55
When editing Wikidot pages it is sometimes convenient to remove parts of a page by commenting it (i. e. surrounding it with Wikidot comment tags [!-- and --]) instead of deleting it.
Commenting a part of a page with Wikidot comments only works as long as the part to be commented does not itself contain comments. Wikidot comments do not support nested comments — the first end comment tag (--]) that's inside the part to be commented would prematurely end the surrounding comment.
Here is a way how to comment a part of page with almost any1 content.
How it Works
Instead of using simple Wikidot comment tags ([!-- and --]) use
| as a comment start
[!-- |
and as a comment end
[[/code]] |
Examples
| What you type … | What you get … |
|
Code before commented section Code after commented section |
Backlinks
Author
ErichSteinboeck. Please visit his/her userPage.
Other(!) HowTos posted by ErichSteinboeck
- System Variables
- How Many Days Does Your Wiki Exist
- Include Inline
- System Variables: Details
- Include a Forum Thread
- Module Attributes via URL
- Set Up an Infobox — Exclude Specific Attributes
- Page Count
- Include With Defaults
- Set Up An Infobox
- Iframe Link
- Date: How Long Ago?
- Include Part Of A Page Only (Tricky Version)
- Include Part Of A Page Only
- Feed/FrontForum/ListPages/live template — %%date%%
- ListPages: Automatic Header
- Create Sortable List of Pages
- Direct Links to Sub-Pages of System Pages





