The source code for the parser that powers this wiki is
available here or also here.
The SYNTAX for editing pages is as follows:
new page: [some new page]
rule (line): ---
heading: ==heading2==
===heading3===
====heading4====
bold: b[some text]b
italic: i[some text]i
link: http://url.com
ftp://url.com
https://url.com
[[http://url.com Label Text]]
code: --code
for i:= 1 to 5 do
writeln;
code--
HTML: You can also add HTML anywhere! Just insert the html as normal. This way
if the wiki syntax limits you, then you can still use HTML. On public
servers you may wish to disable javascript, head, and body tags though.
FUTURE CONSIDERATION
custom: custom[some text being wrapped in a tag of yours]custom
anything[something inside]anything
These would call upon an INI file which linked to other html tags.
Example:
x[some text]x would be crossed out text, or a tag to sing
christian bible music via Text to Song
ib[snip of text]ib would be italic bold combined
r[this text]r would be red text, as "r" stands for red based
only on imagination of the custom syntax creator
blu[colored text]blu would show blue text.
This unfortunately opens up the Lisp problem - pretty much anything
and everything can theoretically be done as it's extensible.
Feature or bug? Make most people use a standard wiki syntax.
Let the rest of the creative retards do whatever non standard shit.
Features to add:
- link to JPG/PNG image and download it onto this server that the wiki is on, in case link goes dead (make local copy). Display jpg/png in wiki using local copy.
- bullets (list items) and possibly shotguns, rifles, handguns, to kill features
- rewrite the entire shitty wikipedia parser, basing it on this code instead of regex php nightmare that currently powers wikipedia. No time for this. Only a small subset of wikipedia features could be demoed. Someone with more time could then complete it. Show how to write parser in PHP, convert some code over. Unicode nightmare?
|