Эта пага как бы вики Wiki, но никто кроме меня не может ее изменять, а хуй вам. Здесь будут тестироваться все синтакс фишки движка. Можно просмотреть и другие страницы в
архиве.
Заголовки#
#Heading 1
##Heading 2
###Heading 3
Heading 1#
Heading 2##
Heading 3###
More exclamation marks you use, the smaller the heading will be (up to 5 exclamation marks). Exclamation marks has to be exactly at the beginning of the line.
Списки#
Обычный список##
* - Fruit
** - Apple
*** - Granny smith
** - Orange
* - Vegetables
** - Garlic
** - Onion
* - Fruit
- Apple
* - Granny smith
- Orange
* - Vegetables
- Garlic
- Onion
Нумерованный список##
- First item
-- First subitem
--- First subsubitem
-- Second subitem
- First item
- First subitem
- Second subitem
Стили текста#
'&#'.ord('
').';''&#'.ord('').';'Bold
'&#'.ord('').';''&#'.ord(' ').';'→
Bold (два астерикса)
'&#'.ord('
').';'Italic'&#'.ord('').';' →
Italic (один астерикс)
'&#'.ord('
').';''&#'.ord('
').';''&#'.ord('
').';'Bold and italic'&#'.ord('
').';''&#'.ord('
').';''&#'.ord(' ').';'→
bold italics (три астерикса)
'&#'.ord('-').';'-'&#'.ord('S').';'trikethrough'&#'.ord('-').';'-'&#'.ord(' ').';'→
Strikethrough
'&#'.ord('_').';'_'&#'.ord('U').';'nderlined'&#'.ord('_').';'_'&#'.ord(' ').';'→
Underlined
'&#'.ord('{').';'small}Small text'&#'.ord('{').';'/small} →
Small text
x'&#'.ord('{').';'sup}10'&#'.ord('{').';'/sup} → x
10
x'&#'.ord('{').';'sub}i'&#'.ord('{').';'/sub} → x
i
CSS стили, классы, IDs##
{.first.second#id color: blue; font-size: large}
Текст со стилем (span) c ID и двумя классами{/}
Текст со стилем (span) c ID и двумя классами
Классы начинаются с точки, ID будет с хешом. Все что после пробела будут уже стили CSS, так что не может быть никакого пробела между и внутри классов и ID. Другие методы:
{. display: block;}Текст{/} - это не класс, не id, только стиль
{.citation}Текст{/if} - только класс
Закраивающий элемент <span>.
Subpages#
Subpages are useful when you need to insert some common content into multiple pages, example could be a navigational menu (by the way, we have
Menu plugin.
Syntax: '&#'.ord('{').';'include:page_to_be_included}.
You can use the same syntax to include page in template (i.e. not in page content), but in this case, whole content of this subpage must be in HTML (you can, but not have to enclose it in '&#'.ord('{').';'html} and '&#'.ord('{').';'/html}).
Multilingual content#
Let's say you have page named "Biography" in German and you would like to make French variant. Rename page Biography to Biography.de and create page named Biography.fr and insert French translation there. Then visitors whose browser identifies primary language as French will see Biography.fr. It's recommended to create a redirect from page Biography to default language variant. The obvious limitation is that page name has to stay the same in every language variant. That's not such a big problem with "Biography", but it can be worse with other names.
This is recommended way to create multilingual content, there are more ways to do it.
Redirects#
If you want to redirect from some page to other, put '&#'.ord('{').';'redirect:page} at the very beginning of the page. It's not straightforward to edit page containing redirect because every visit will cause redirecting. The only way to edit such page is from search results (as it provides direct edit links), or possibly by manually altering URL.
Other#
ЗаголовкиHeading 1СпискиСтили текстаEmails, ссылки, картинкиSubpagesMultilingual contentRedirectsOther
Table of contents##
Automatically generated table of contents can be inserted with '&#'.ord('{').';'TOC} (see demo on the right). It can be used in both pages and templates.
Characters##
Some sequences of characters are automatically replaced:
* Arrows : <'&#'.ord('-').';'- : ←, '&#'.ord('-').';'-> : →, <'&#'.ord('-').';'-> : ↔
* Dash : '&#'.ord('-').';'- : —
* Copyrights : '&#'.ord('(').';'c) or '&#'.ord('(').';'C) : ©, '&#'.ord('(').';'r) or '&#'.ord('(').';'R) : ®
Code##
Code syntax is useful when you need to keep original spacing and layout of text, especially for programming source code.
'&#'.ord('{').';'{import sys
if len(sys.argv) == 2:
print "Hello",sys.argv'&#'.ord('
').';'1}}
does:
import sys
if len(sys.argv) == 2:
print "Hello",sys.argv[1]
We also have a
plugin for syntax highlighting.
Horizontal line##
by ''''&#'.ord('-').';'-'&#'.ord('-').';'-'''
Suppressing wiki syntax##
By using '&#'.ord('^').';' character before syntax keyword or using '&#'.ord('{').';'{something}}. If you still don't know how, take a look on wiki code of this page, there are plenty of examples. If you want to insert '&#'.ord('^').';' character, you have to double it, i.e. '&#'.ord('^').';''&#'.ord('^').';'
HTML code##
Do you want to insert youtube video to your site? Or any other HTML code? Just insert it between '&#'.ord('{').';'html}some html code{/html}. This does not have to work if config value $NO_HTML is set to true. Note that it is serious security risk if you allow users to post HTML code in your wiki.
HTML entities###
HTML entities are automatically recognized and left without modification.
Newline##
Зверек joins adjacent newlines together, if you need more than one newline, use '&#'.ord('{').';'br}.
You can insert internal comments not intended to be displayed using HTML-like syntax <!'&#'.ord('-').';'- text not intended to be displayed '&#'.ord('-').';'->
{description:minimalist, file based, templatable wiki engine}
{keywords:wiki engine, wiki software, minimalist, minimalism}
But it was all right, everything was all right, the struggle was finished. He had won the victory over himself.
[1]
Случайный нод: lulz##