Wakka Formatting Guide

Text Formatting


Contents


Wacko text formatting is slightly different from other Wikis, so you should read the examples below.


You can experiment with formatting in the Sand Box.


Text enclosed in pairs of double quotes is not formatted and remains unchanged when displayed.

Basic Formatting


**bold**
bold
//italic//
italic
__underline__
underline
--strikethrough--
strikethrough
##monospace (10) text##
monospace (10) text
>>centered<<
centered

!!note!! (also ''note'',
but it is better not to use it).
note
??red (emphasis)??
red (emphasis)
%%Embed code%%

Links

[[http://www.webscript.ru]] or ((http://www.webscript.ru))
http://www.webscript.ru
[[http://www.webscript.ru Webscript]] or ((http://www.webscript.ru Webscript))
Webscript
[[Clusters]] or ((Clusters))
Clusters?
[[Clusters The page about clusters]]
or ((Clusters The page about clusters))
The page about clusters?
http://www.ya.ru is highlighted automatically.
http://www.ya.ru
http://www.yandex.ru/logo1.gif
Image with no link.

((/HomePage http://www.yandex.ru/logo1.gif))
Image with a link.

{{a name="test"}} or {{anchor name="test"}}
anchor declaration.

((#test)) or ((/HomePage#TOC_1))
anchor reference.
test or /HomePage#TOC_1
mailto:address@domain.com
email.
mailto:address@domain.com
file:rindex.gif or file:Subpage/rindex.zip
file uploads.
file:rindex.gif
file:Subpage/rindex.zip
TODO: Roman please upload two test files here.

NB: mixed case words (Like This?) do not need to be enclosed in brackets. For internal links (inside this Wiki), the complete URL should not be written
(otherwise the link will not work). Add "http://" only for external links.


NB: To prevent a WordLikeThis from becoming a link, place a ~ (tilde) in front of it.


NB: You can also link to non Bumpy Text? words using: ((Clusters here)) = here?.

Headlines


Action source page doesn't exist yet(/Wacko Formatting / Headlines?)

Bulleted and Numbered Lists


Indent lists with tabs or double spaces, and use *, 1., A., a., or i. to specify the type of list you want. This solves the Wakkawiki problem of needing to use tabs in a textarea – double spaces instead work better.


first line
indented line
first line
indented line
*bulleted list
*bulleted list-2
  • bulleted list
  • bulleted list-2
1. numbered list
1. numbered list-2
  1. numbered list
  2. numbered list-2
A. using uppercase characters
A. using uppercase characters-2
  1. using uppercase characters
  2. using uppercase characters-2
a. using lowercase characters
a. using lowercase characters-2
  1. using lowercase characters
  2. using lowercase characters-2
i. using Roman numbers
i. using Roman numbers-2
  1. using Roman numbers
  2. using Roman numbers-2

Tables


Table with border
#|
||cell11|cell12|cell13||
||cell21|cell22||
|#


cell11cell12cell13
cell21cell22

Table without border, 100% width
#||
||cell11|cell12|cell13||
||cell21|cell22||
||#


cell11cell12cell13
cell21cell22

Miscellaneous


Horizontal rule (separator):
----



Forced line break:
test---shmest
test
shmest


Text output “as-is” — ignoring markup
Text should be enclosed by a pair of double quotes. You can look at the source of this page for numerous examples.


HTML output “as-is
this works only if site the admin allows it.
<# <input type="text"> #>
<# <input type="text"> #>
If you see <input type="text"> instead of input field, site admin don't turn up this function (config file's parameter allow_rawhtml. NB: it is very dangerous option, avoid XSS!).


Superscript:
E=mc^^2^^
E=mc2


Subscript:
H vv2vv O
2 O


Macros


Macros are little shortcuts which automatically update the document you're writing with relevant variables such as your name and wikiname, the date of writing etc. Basically, they're just little text shortcuts.


To automatically insert your name, use:
::::
RomanIvanov?


Auto name and date:
::@::
RomanIvanov? /20.06.2003 18:13/


Date:
::+::
20.06.2003 18:13

Table of Contents


To make a table of contents entry, use 


{{ToC}}


anything with a headline value will be listed with anchors to specific parts of your page.


NB: if you are using this with the 'include' plugin, but don't want the headers that you're pulling in from the include file to be listed in the generated table of contents, use the 'notoc' option like so:


{{Include file="WackoFormatting/Headlines" notoc="1"}}

Extensions – additional formatters

Wacko Wiki? is easily extended with text formatters. They are called using syntax %%(name) text%%.
There are several formatters included in Wacko package:

%%(php) PHP-код%%
<?
phpinfo
();
$s = "Hello, World!\n";
print
"$s";
?>

UbS?: attention: that code should begin with <? and end with ?>, because builtin PHP parser identifies PHP by those separators.
%%(comments) Comments, they will be hidden when the page is stored and redisplayed %%

%%(icq) ICQ Pro Logs%%

SomebodyHello14.05.20 14:52
RomanYes, hello14.05.20 14:52
SomebodyTesting
blah blah
28.06.20 2:25
RomanYep28.06.20 2:25

There's also icq_t (Trillian), icq_l (ICQ Lite) and icq_m (Miranda IM + nConvers) formatters.
%%(email) Email%%
Hi!
RI>> Yes, it is.
>Are you sure?

Of course, yes!

Roman.

%%(sql) SQL-code%%
SELECT * FROM sometable WHERE a = '12' and b = 2 ORDER BY c DESC


Category Help


 
There are no files on this page. [Display files/form]
There is no comment on this page. [Display comments/form]