Table of contents
- 2. Samples
Click on the relevant Question to see the answer.
How can I correctly paste content from Microsoft Word?
As you may have noticed, copy-pasting text/content from Word will result in some very ugly HTML code.
The wiki has a solution for this: When editing a page, press the Past from Word icon (next to Save & Source in the toolbar) when you have copied text from Word to the clipboard.
You can then paste the text in the new window, and the wiki will automatically clean the HTML code for you.
How can I create links with hover popups?
The following DekiScript code to do this is very simple. Just enter it in while editing a page:
{{
var title = "TitleYouWant";
var link = "RelativeLinkOnWikiYouWant";
var text = "TextYouWant";
popup.show(title,link,text);}}
You can create a hover popup to a certain section of a page, with this code:
{ {
var title = "Title of Section";
var link = "Relative Address of Page (Without http://wiki.lumenon.nl/)";
var text = wiki.page(link,title);
popup.show(title,link .. "#" .. title,text);
} }
An example to Theorems, under Coloring (Summary of Graph Theory, Year 2):
Theorems
Theorem 10.1 The chromatic number of every planar graph is at most 4 (The Four Color Theorem) Theorem 10.2 A graph G has chromatic number 2 if and only if G is a nonempty bipartite graph Theorem 10.5 For every graph G of order n: χ(G) ≥ ω(G) and χ(G) ≥ 
Theorem 10.7 For every graph: χ(G) ≤ 1 + Δ(G) Theorem 10.8 For every connected graph G that is not an odd cycle or a complete graph Theorem 10.9 For every graph G, χ(G) ≤ 1 + max{δ(H)},
Theorem 10.10 For every integer k ≥ 3, there exists a triangle-free graph with chromatic number k.
{ {
var title = "Theorems";
var link = "Bachelor/Year_2/Graph_Theory/Summary/Coloring";
var text = wiki.page(link,title);
popup.show(title,link .. "#" .. title,text);
} }
How can I add this to my DekiWiki installation?
Simple:
Download the library from this page: http://www.walterzorn.com/tooltip/tooltip_e.htm
Upload this library to your server.
Download Popup.xml from this page and upload to your server.
Goto Configuration Page of your wiki, then Extension and then Add Script.
Under Name: "Popup" and under Manifest: the location to which you uploaded the XML file.
Then, press Add new Key, enter name: script-location and value: Exact location of wz_tooltip.js
That's it!
You can now run the extension by calling popup.show!
Samples
Table popup:
Theorems
Theorem 10.1 The chromatic number of every planar graph is at most 4 (The Four Color Theorem) Theorem 10.2 A graph G has chromatic number 2 if and only if G is a nonempty bipartite graph Theorem 10.5 For every graph G of order n: χ(G) ≥ ω(G) and χ(G) ≥ 
Theorem 10.7 For every graph: χ(G) ≤ 1 + Δ(G) Theorem 10.8 For every connected graph G that is not an odd cycle or a complete graph Theorem 10.9 For every graph G, χ(G) ≤ 1 + max{δ(H)},
Theorem 10.10 For every integer k ≥ 3, there exists a triangle-free graph with chromatic number k.
Large popup + image:
Prototype
The Prototype pattern teaches how a system can instantiate classes that are not known when the system is built.

Context
Solution
Small definition popup:
Encapsulation
Encapsulation conceals the functional details of a class from objects that send messages to it.
How can I put in Math symbols or equations?
There are two options. For Math equations, we suggest the first, for simple symbol notations, the second.
Math Equations
For Math equations, the DekiScript Math function is best used. While editing, click the Extensions button, scroll down to the Math extension and fill in the Math equation, using LaTeX-AMS notation.
Example, LaTeX-AMS notation.
Note: The "\" character is used as an escape character in the DekiScript, so every "\" in the formula must be substituted by "\\".
Math Symbols
Look up the character on this website, and put it in with the Unicode key combination (ALT + #####), or copy-paste it from the website.
http://www.fileformat.info/info/unic...ry/Sm/list.htm
How do I upload pictures/files to a page?
At the bottom right of a page, there is the option to "Attach file or image" to a page.
While creating a page for the first time, you are not able to upload files until the page is saved.
If the page is already created, you can edit the page and upload files (even while editing).
Where can I find the shortcuts for the WYSIWYG Editor?
Here: FCKEditor Hotkeys
Where can I test how to edit / create pages?
On this page you can edit / create / test to your hearts content. Test Page
Retrieved from "http://wiki.lumenon.nl/Wiki_FAQ"

Comments