On my wiki, I have quite a few blocks of wiki markup code that I use over and over again. However, I find that I frequently forget exactly what the code is, so I have to go to a page that already has it, copy it and paste it into my new page.
What would be nice is to have a category called snippets: that works somewhat like template:, but contains blocks of wiki code that could be easily inserted in the editor by a dropdown box similar to the one used for templates.
For example, I could have a page called /snippets:special-box that has the title "My Super Special Box" and the following markup:
[[div class="someclass"]]
[[div class="anotherclass"]]
[[/div]]
[[/div]]
Then in the editor, there would be a drop down box, just like the one for selecting a template, but instead it lists all the pages in the snippets: category. Next to the drop down box would be a button labeled "Insert". In the dropdown box, I would select "My Super Special Box" from the list. Then when I clicked the "Insert" button next to it, the markup shown above would be inserted in the editor at the cursor's current position.
Have you seen Keneth Tsang' "Wikidot Extension"?
http://community.wikidot.com/blog:wikidot-extension-mass-delete-tool-and-more
Sorry, only the mass delete tool and file manager is not (yet) working - because of the new admin-panel…
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 ?
Thanks, Helmut. His extension looks very useful, but it isn't what I need in this situation. His extension works very well for inserting the built-in wiki markup, but I need something to insert entire blocks of wiki markup that I wrote myself and want to make available for other users of my wiki without forcing them to copy and paste markup from existing pages.
Right now, I handle this by using includes:
[[include _feature:begin |param1=x |param2=y]] <— Contains opening tags
Users add content here…
[[include _feature:end]] <— Contains closing tags
Each of the include pages might have anywhere from 2 to 12 lines of normal wiki code to create a specially formated box around the content or to produce some other kind of custom design, layout, or formatting that is unique to my site. In a sense, I'm extending the built-in markup with my own commands to make it easier for other users to create content with all the same formatting that I use.
The problem is that while the [[include ...]] syntax is easier to remember than everything on the included page itself, it is still difficult to remember all of the includes that I have made available. I have a custom markup reference page for my users (and me!) to copy and paste the includes from, but it would be much easier if they could select the desired include from a drop down list above the editor.
Rob Ostapiuk, Principal Technical Training Engineer, Microchip Technology Inc.
Microchip Developer Help
Thanks for explanation!
Now I understand the problem better …. and I think this helps the developers too.
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 ?
By the way, I want to thank you for all of your contributions to the wikidot site. I've learned a lot from your posts and answers to other people's questions.
Rob Ostapiuk, Principal Technical Training Engineer, Microchip Technology Inc.
Microchip Developer Help
Do you have an API key? Since you're a Pro user, I think you get one automatically. If so, you should check out leiger's STE Editor (an external Wikidot editor app). You can create and add you own custom extensions that might be a workaround for this issue until the devs decide to add something like this.
I usually just keep a text file of my snippets open and flip to it when I need to copy and paste my commonly used markup into a page. I have a dual monitor setup which I really like because I can open up a few windows with no overlap.
STE Home Page
STE Extension Info
Community Admin
Thanks, Ed. I just stumbled across STE editor last night and have been reading up on it. It sounds like an interesting tool that might solve some other issues for my users and might work for this too. The only drawback is I would have to ensure that all users have the same custom extensions. I just got my API key so I may be playing with this in the near future.
I've been doing something similar for my snippets. Instead of a text file, I have some hidden pages on the wiki with all my snippets so that all users can access the same code. I just keep it open in a separate browser tab. It works, but I always think "there must be a better way".
Rob Ostapiuk, Principal Technical Training Engineer, Microchip Technology Inc.
Microchip Developer Help
For the developers: look also on the (old) wish: http://feedback.wikidot.com/wish:588/comments/show#post-1829268 (Ability to create your own syntax)
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 ?