-
Notifications
You must be signed in to change notification settings - Fork 0
/
gikiplugin-edit-GWS.php
81 lines (71 loc) · 2.9 KB
/
gikiplugin-edit-GWS.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?PHP
/*
* GWS GikiPlugin - a plugin for Giki to support WikiSyntax
* Copyright (C) 2005, 2006 Gregor Richards
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* This file just adds some text to the edit page to briefly describe how to use wikisyntax
*/
/*
* see if we can get subwindows
*/
$realnode = $node;
$node = "";
if (!isset($subwins)) {
if (file_exists("gikiplugin-render-subwins.php")) {
include("gikiplugin-render-subwins.php");
} else {
$subwins = false;
}
}
$node .= $realnode;
$help = "Content in {{ and }} will be displayed unedited:<br>" .
"{{<br>" .
"## //This will appear exactly as you see it//<br>" .
"}}<br><br>" .
"URLs will become links automatically.<br>" .
"<i>//Italic//</i><br>" .
"<b>##Bold##</b><br>" .
"__Underline__<br>" .
"<h1>= Largest heading =</h1><br>" .
"<h4>==== Smallest heading ====</h1><br>" .
"<table border=1><tr><th>Input</th><th>Output</th></tr>" .
"<tr><td>* bulleted list<br>" .
"** with subelements</td>" .
"<td><ul><li>bulleted list</li>" .
"<ul><li>with subelements</li></ul></ul></td></tr>" .
"<tr><td># numbered list<br>" .
"## with subelements</td>" .
"<td><ol><li>numbered list</li>" .
"<ol><li>with subelements</li></ol></ol></td></tr>" .
"<tr><td>| Tables | Like | So |<br>" .
"|-2 This spans both 'Tables' and 'Like' | This is under 'So' |<br>" .
"|!2 This will span two rows | This is next to the row-spanning element |<br>" .
"| So is this |</td>" .
"<td><table border=2><tr><td>Tables</td><td>Like</td><td>So</td></tr>" .
"<tr><td colspan=2>This spans both 'Tables and 'Like'</td><td>This is under 'So'</td></tr>" .
"<tr><td rowspan=2>This will span two rows</td><td>This is next to the row-spanning element</td></tr>" .
"<tr><td>So is this</td></tr></table></tr>" .
"</tr></table>";
if (!$subwins) {
$node .= "<hr><h1>WikiSyntax:</h1>";
$node .= $help;
} else {
$node .= "<hr>";
$node .= generateSubwin("WikiSyntax", "<h1>WikiSyntax</h1>", $help);
}
?>