WackoWiki: WackoDocumentation/WackoFormatting ...

Home Page | Изменения | Новые Комменты | Пользователи | Каталог | Регистрация | Вход:  Пароль:  

Text Formatting

Also available in Russian, Deutsch, and Fran�ais.
See also: Actions


Wacko text formatting is slightly different from other wikis, so you should read the examples below.
You can experiment with formatting in the SandBox.
Text enclosed in pairs of double quotes is not formatted and remains unchanged when displayed.


source displayed

1. Table of contents


{{ToC numerate=1}}


detailed description...

Оглавление документа

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"}}

2. Basic Formatting

**bold**
bold
//italic//
italic
__underline__
underline
##monospace (10) text##
monospace (10) text
--strikethrough--
strikethrough
++small++
small text
%%(wacko wrapper=text wrapper_align=center) centered %%
wrapper_align can be center, right or justify.
(also ''>>centered<<'', but it is better not to use it).
centered

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

NB Strikethrough, like all formattings below (in this chapter), are multiline. All previous formattings is not multiline because we going to make formatting that doesn't break your texts,

3. 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
[[SandBox]] or ((SandBox))
SandBox
[[SandBox The sandbox page]]
or ((SandBox The sandbox page))
The sandbox page
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.
Example for Formatting Help (1�??)
file:/Subpage/rindex.zip

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?.


TH: How do you use a link to a local file with spaces in it? (eq: «S:\Network Drive\File 1.txt» or «//server1\file name.txt»)


RF: To link to local files on a server with spaces like that, use file:/// and switch all backslashes to forwardslashes. Also, replace any spaces with %20, so your link would become «file://///server1/file%20name.txt" Also, there is an issue with linking to local files on Firefox: Solution

4. Headlines

== Primary Heading ==

Primary Heading

=== Secondary Heading ===

Secondary Heading

==== Tertiary Heading ====

Tertiary Heading

===== Small Heading =====

Small Heading

====== Even Smaller Heading ======
Even Smaller Heading
======= Smallest Heading =======
Smallest Heading

5. 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.

Lists:
  first line
    indented line
----
  *bulleted list
  *bulleted list-2
----
  1. numbered list
  1. numbered list-2
----
  A. using uppercase characters
  A. using uppercase characters-2
----
  a. using lowercase characters
  a. using lowercase characters-2
----
  i. using Roman numbers
  i. using Roman numbers-2
----
  1. list
    1. nested list
      * and even more nested list
    1. nested list 2
  2. list 2

Lists:

first line
indented line

  • bulleted list
  • bulleted list-2

  1. numbered list
  2. numbered list-2

  1. using uppercase characters
  2. using uppercase characters-2

  1. using lowercase characters
  2. using lowercase characters-2

  1. using Roman numbers
  2. using Roman numbers-2

  1. list
    1. nested list
      • and even more nested list
    2. nested list 2
  2. list 2

6. Cite and definitions

<[ Citation of text
(blockquote) ]>

Citation of text
(blockquote)

(?Term Some definition?)
Term
(?Term containing spaces == Some other definition?)
Term containing spaces

7. Footnotes

Text, then footnote[[*]] and second one[[**]]
Text, then footnote* and second one**
Text, then numeric footnote[[*1]] and second one[[*2]]
Text, then numeric footnote1 and second one2
[[#*]] Text for first footnote
[[#**]] Text for second footnote
[[#1]] Text for numeric footnote
[[#2]] Text for second numeric footnote
* Text for first footnote
** Text for second footnote
1 Text for numeric footnote
2 Text for second numeric footnote

8. Tables


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


cell11cell12cell13
cell21cell22

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


cell11cell12cell13
cell21cell22

9. 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.
Furthermore, for the screening of any form of marking, it is possible to use ~ (tilde).


HTML output “as-is”
this works only if site the admin allows it.
<# <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


10. 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

11. Extensions – additional formatters (Highlighters)

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

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

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 %%

%%(noautolinks) no AutoLinks if CamelCase-Words%%
no AutoLinks if CamelCase-Words
%%(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

There's also (ini), (html), (css) and (pascal) highlighters.

<html>
<a href="http://www.ya.ru" width="8">test</a>
</html>

[Wiki]
BestEngine="WackoWiki"
Version=4

body {margin: 0; padding:5px;}
.class {background:url("http://www.ya.ru/")} 

program megaprogramme;
{ comment }
BEGIN
 if a = 15 then writeln('test');
END.

There's also highlighters for CSS, diff, DTD, Javascript, mySQL, PHP, Python, SQL, XML.
They can be called as (hl css) etc.

body {margin: 0; padding:5px;}
.class {background:url("http://www.ya.ru/")}

var a = document.getElementById("test");
a.value = new Array(15, 31);
function echo (msg) {alert(msg)};

<?
phpinfo();
$s = "Hello, World!\n";
print "$s";
?>

<config>
<section name="test">
  <var>Test</var>
  <val><![CDATA[..text...]]></val>
</section>
</config>


11.1. Wrappers around formatters

Furthermore, to any formatter it is possible to assign one of frame after indicating to it the parameter wrapper .
You choose specific “wrapper” for any highlighter using wrapper parameter as shown below.
There are such wrappers: box, shade, page and text


%%(css wrapper=box wrapper_align=left wrapper_width=270)
.d { font-size:70% }
%%

.d { font-size:70% } 

As we see, wrapper box makes it possible to form the convenient “menu”, streamlined with text. By the way, there is special formatter (Box), which does not make anything except as it turns around text into this wrapper.



%%(css wrapper=shade)
.d2 { font-size:70% }
%%

.d2 { font-size:70% } 

shade � this box without the tuning.

%%(wacko wrapper=text wrapper_align=center)
text on to center
%%
text on to center

text is derived the “floating” (float) block of text.

%%(wacko wrapper=page wrapper_width=200)
this text cannot be wider than two hundred pixel
%%
this text cannot be wider than two hundred pixel

page it makes it possible to regulate the width of the usual block of text.


%%(wacko wrapper=box wrapper_width=300)
**Box**---- �A hundred times every day I remind myself that my inner and outer life depend upon the labors of other men, living and dead, and that I must exert myself in order to give in the measure as I have received and am still receiving.� � Albert Einstein
%%
Box
�A hundred times every day I remind myself that my inner and outer life depend upon the labors of other men, living and dead, and that I must exert myself in order to give in the measure as I have received and am still receiving.� � Albert Einstein


{{BackLinks}}
Страницы, ссылающиеся на данную: AlexLane
WackoDocDeutsch/Aufgaben/PDFHandbuch
WackoDocDeutsch/Formatierung
WackoDocFrancophone/MiseEnForme
WackoDocumentation
WackoDocumentation/FAQ
WackoDocumentation/TwoCharacterRule
WackoDocumentation/WackoActions/TableOfContents
WackoIntro
WackoДокументация/ПланРаботы
WakkaСделано
projects/WackoFormatter

 
Файлов нет. [Показать файлы/форму]
Много комментариев (12). [Показать комментарии/форму]
Donate
Время работы: 1.885 s
Использовано памяти: 1.729 Mb