wiki:syntax
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
wiki:syntax [2025/02/02 18:38] – vladpolskiy | wiki:syntax [2025/08/24 17:58] (текущий) – внешнее изменение 127.0.0.1 | ||
---|---|---|---|
Строка 1: | Строка 1: | ||
- | ====== | + | ====== |
- | «Докувики» поддерживает простой язык разметки, который по возможности сохраняет файлы данных как можно более читабельными. Здесь перечислены все возможные синтаксические конструкции, | + | [[doku> |
- | * [[manual|Руководство пользователя «Докувики»]] | + | |
+ | ===== Basic Text Formatting ===== | ||
- | < | + | DokuWiki supports **bold**, //italic//, __underlined__ and '' |
- | <!-- LikeBtn.com BEGIN --> | + | |
- | <span class=" | + | |
- | < | + | |
- | <!-- LikeBtn.com END --> | + | |
- | </ | + | |
- | ===== Основные конструкции форматирования ===== | + | |
+ | DokuWiki supports **bold**, //italic//, __underlined__ and '' | ||
+ | Of course you can **__//'' | ||
+ | You can use < | ||
- | «Докувики» поддерживает выделение текста **жирным шрифтом**, | + | You can use < |
- | <code> | + | You can mark something as <del>deleted</del> as well. |
- | «Докувики» поддерживает выделение текста **жирным шрифтом**, | + | |
- | __подчёркнутый текст__ и вывод текста '' | + | |
- | Все эти конструкции можно **__//'' | + | |
- | </code> | + | |
- | Также можно использовать | + | You can mark something as <del>deleted</del> as well. |
- | < | + | **Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line. |
- | Также можно использовать < | + | |
- | </ | + | |
- | Ещё можно < | + | This is some text with some linebreaks\\ Note that the |
+ | two backslashes are only recognized at the end of a line\\ | ||
+ | or followed by\\ a whitespace \\this happens without it. | ||
- | < | + | This is some text with some linebreaks\\ Note that the |
- | Ещё можно < | + | two backslashes are only recognized at the end of a line\\ |
- | </ | + | or followed by\\ a whitespace \\this happens without it. |
- | =====Выделение цветом (маркер)===== | + | You should use forced newlines only if really needed. |
- | < | + | |
- | Текст можно выделять цветом. | + | |
- | <wrap hi> | + | |
- | <wrap lo> | + | |
- | </ | + | |
- | Текст можно выделять цветом. | + | ===== Links ===== |
- | <wrap hi> | + | |
- | <wrap lo> | + | |
- | :!: Цветной текст при установленном плагине [[wiki: | + | DokuWiki supports multiple ways of creating links. |
- | <code php plugin Color> | + | |
- | <color green> | + | |
- | <color blue/ | + | |
- | <color # | + | |
- | <color /# | + | |
- | <color rgb(80%, | + | |
- | <color hsl(120, | + | |
- | </ | + | |
- | <code php plugin Typography> | + | ==== External ==== |
- | <fc # | + | |
- | <fc red> | + | |
- | <fc green> | + | |
- | <fc # | + | |
- | <fc # | + | |
- | <fc # | + | |
- | <fc rgb(80%, | + | |
- | <fc hsl(120, | + | |
- | </ | + | |
- | и вы увидите что-то вроде этого: | + | |
- | <fc # | + | External links are recognized automagically: |
- | <fc red> | + | |
- | <fc green>text</fc> | + | |
- | <fc # | + | |
- | <fc #800000>Maroon</ | + | |
- | <fc # | + | |
- | <fc rgb(80%,0%, | + | |
- | <fc hsl(120, | + | |
- | **Абзацы** отбиваются пустой строкой. Если нужно **принудительно вставить перенос строки**, | + | DokuWiki supports multiple ways of creating links. External links are recognized |
+ | automagically: | ||
+ | link text as well: [[http:// | ||
+ | addresses like this one: < | ||
- | Просто текст с разрывом строк\\ Обратите внимание, | + | ==== Internal ==== |
- | что два обратных слэша действуют только в конце строки\\ | + | |
- | или если за ними стоит\\ пробел. Если его не поставить, | + | |
- | < | + | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. |
- | что два обратных слэша действуют только в конце строки\\ | + | |
- | или если за ними стоит\\ пробел. Если его не поставить, | + | |
- | </ | + | |
- | Принудительные переносы следует использовать только в случае крайней необходимости. | + | Internal links are created by using square brackets. You can either just give |
+ | a [[pagename]] or use an additional [[pagename|link text]]. | ||
- | ===== Ссылки ===== | + | [[doku> |
+ | You can use [[some: | ||
- | ==== Внешние ==== | + | You can use [[some:namespaces]] by using a colon in the pagename. |
- | {{: | + | |
- | < | + | |
- | просто www.google.com --- также можно указывать текст ссылки: | + | |
- | [[http:// | + | |
- | тоже распознаются: | + | |
- | В данном экземпляре wiki внешние ссылки распознаются автоматически, | + | |
- | просто www.google.com --- также можно указывать текст ссылки: | + | |
- | [[http:// | + | |
- | тоже распознаются: | + | |
- | ==== Внутренние ==== | + | |
- | Внутренние ссылки создаются посредством квадратных скобок. | + | For details about namespaces see [[doku> |
- | Можно либо просто указать | + | |
- | дополнительно прописать [[ru: | + | |
- | вики-статей автоматически | + | |
- | спецсимволы использовать нельзя. | + | |
- | < | + | Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to [[syntax# |
- | Можно либо просто указать | + | |
- | дополнительно прописать [[ru: | + | |
- | вики-статей автоматически | + | |
- | спецсимволы использовать нельзя.</ | + | |
- | Можно использовать в ссылке | + | This links to [[syntax# |
- | < | + | Notes: |
- | Ставить ссылки на определённый раздел тоже можно. Просто добавьте через решётку (#) имя раздела, так же, как это делается в HTML. Ссылка на [[# | + | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. |
+ | * DokuWiki does not use [[wp> | ||
+ | * When a section' | ||
- | < | + | ==== Interwiki ==== |
- | Примечания: | + | DokuWiki supports [[doku> |
- | | + | |
- | | + | |
- | * Если меняется название раздела, | + | |
- | * Ссылки на разделы делаются именно на [[# | + | |
- | ==== Интервики | + | ==== Windows Shares |
- | «Докувики» поддерживает | + | Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate |
- | на другие вики. Например, | + | |
- | [[tel> | + | |
- | [[mail> | + | |
- | [[address>Poliarniy]]\\ | + | |
- | [[xref> | + | |
- | < | + | Windows Shares like [[\\server\share|this]] are recognized, too. |
- | «Докувики» поддерживает | + | |
- | на другие вики. Например, | + | |
- | </ | + | |
- | Изменить или назначить свои можно: | + | Notes: |
- | - Добавив иконку png или svg в папку lib/ | + | |
- | - Добавив запись в conf/ | + | |
- | - пересохранив файл conf/ | + | |
+ | * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone" | ||
+ | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http:// | ||
+ | <?php | ||
+ | /** | ||
+ | * Customization of the english language file | ||
+ | * Copy only the strings that needs to be modified | ||
+ | */ | ||
+ | $lang[' | ||
+ | </ | ||
- | ==== Сетевые ресурсы Windows | + | ==== Image Links ==== |
- | Ссылки на сетевые ресурсы вида \\server\share тоже распознаются. Однако учтите, | + | You can also use an image to link to another internal or external page by combining the syntax for links and [[# |
- | < | + | [[http:// |
- | Примечания: | + | [[http:// |
- | * Из соображений безопасности непосредственный просмотр сетевых ресурсов работает по умолчанию только в Internet Explorer (и только в «локальной зоне»). | + | Please note: The image formatting is the only formatting syntax accepted in link names. |
- | * В браузерах Mozilla эту возможность можно включить с помощью опции [[http:// | + | |
- | * Подробней читайте здесь: [[bug> | + | |
- | ==== Картинки-ссылки ==== | + | The whole [[# |
- | Совместив синтаксис ссылки и [[# | + | ===== Footnotes ===== |
- | < | + | You can add footnotes ((This is a footnote)) by using double parentheses. |
+ | You can add footnotes ((This is a footnote)) by using double parentheses. | ||
+ | ===== Sectioning ===== | ||
- | {{tablelayout? | + | You can use up to five different levels of headlines to structure your content. If you have more than three headlines, a table of contents is generated automatically |
- | ^ | + | |
- | |< | + | |
- | Учтите: | + | |
- | ====Отключить иконки ссылок==== | + | |
- | Отключить значки у ссылок можно в файле _links.css или design.css в каталоге используемого вами шаблона lib\tpl\имя_шаблона\css. | + | |
- | Для отключения отображения значков внешних ссылок достаточно закомментировать всю секцию external link | + | |
- | <code php> | + | ==== Headline Level 3 ==== |
- | /* external link */ | + | === Headline Level 4 === |
- | div.dokuwiki a.urlextern { | + | == Headline Level 5 == |
- | background: transparent url(images/ | + | |
- | padding: 1px 0px 1px 16px; | + | |
- | } | + | |
- | </ | + | |
- | ==== Сноски | + | |
- | С помощью двойных скобок можно добавить сноску((Сноска — помещаемые внизу страницы примечание, | + | ==== Headline Level 3 ==== |
+ | === Headline Level 4 === | ||
+ | == Headline Level 5 == | ||
- | < | + | By using four or more dashes, you can make a horizontal line: |
- | помещаемые внизу страницы примечание, ссылка, | + | |
- | ===== Разбивка на разделы ===== | + | ---- |
- | Для структурирования текста можно использовать до пяти уровней заголовков. Если в тексте больше трёх заголовков, | + | ===== Media Files ===== |
+ | You can include external and internal [[doku> | ||
- | ==== Заголовок 3 уровня ==== | + | Real size: {{wiki: |
- | === Заголовок 4 уровня === | + | |
- | == Заголовок 5 уровня == | + | |
- | < | + | Resize to given width: |
- | ==== Заголовок 3 уровня ==== | + | |
- | === Заголовок 4 уровня === | + | |
- | == Заголовок 5 уровня == | + | |
- | </ | + | |
- | Четыре и более тире преобразуются в горизонтальную черту: | + | Resize to given width and height((when the aspect ratio of the given width and height doesn' |
- | ---- | + | Resized external image: {{https:// |
- | < | + | |
- | ---- | + | |
- | </code> | + | |
- | ===== Картинки и другие файлы ===== | + | Real size: {{wiki: |
+ | Resize to given width: | ||
+ | Resize to given width and height: {{wiki: | ||
+ | Resized external image: {{https:// | ||
- | См. также: «[[ru: | ||
- | С помощью фигурных скобок можно вставлять в текст внешние и внутренние [[ru: | + | By using left or right whitespaces you can choose the alignment. |
+ | {{ wiki: | ||
- | | @lightgreen: | + | {{wiki:dokuwiki-128.png }} |
- | | @# | + | |
- | | @# | + | |
- | | @# | + | |
- | | @#add8e6: **— картинка слева** |{{: | + | |
- | | @orange: | + | |
- | | @lightgreen: | + | |
+ | {{ wiki: | ||
+ | {{ wiki: | ||
+ | {{wiki: | ||
+ | {{ wiki: | ||
- | Если задать имя файла (внутреннее или внешнее), который не является картинкой | + | Of course, you can add a title (displayed as a tooltip by most browsers), too. |
- | Узнать, | + | {{ wiki: |
- | ===== Списки ===== | + | {{ wiki: |
- | «Докувики» поддерживает нумерованные и маркированные списки. Чтобы создать элемент списка, | + | For linking an image to another page see [[#Image Links]] above. |
- | * Первый элемент маркированного списка | + | ==== Supported Media Formats ==== |
- | * Второй элемент списка | + | |
- | * Можно сделать вложенный список | + | |
- | * Ещё один элемент | + | |
- | - Тот же список, | + | DokuWiki can embed the following media formats directly. |
- | - Ещё элемент | + | |
- | - Чем больше пробелов в начале, | + | |
- | - Всё просто | + | |
- | < | + | | Image | '' |
- | * Первый элемент маркированного списка | + | | Video | '' |
- | * Второй элемент списка | + | | Audio | '' |
- | * Можно сделать вложенный список | + | | Flash | '' |
- | * Ещё один элемент | + | |
- | - Тот же список, только нумерованный | + | If you specify a filename that is not a supported media format, then it will be displayed as a link instead. |
- | - Ещё элемент | + | |
- | - Чем больше пробелов в начале, | + | |
- | - Всё просто | + | |
- | </ | + | |
- | См. также [[ru: | + | By adding ''? |
+ | {{wiki: | ||
- | ===== Цитирование ===== | + | {{wiki: |
- | Иногда нужно пометить некоторый текст в качестве ответа или комментария. Для этого можно использовать следующий синтаксис: | + | ==== Fallback Formats ==== |
- | Я думаю, мы должны это сделать. | + | Unfortunately not all browsers understand all video and audio formats. To mitigate the problem, you can upload your file in different formats for maximum browser compatibility. |
- | > Нет, мы не должны. | + | |
- | >> Ну, я говорю, что мы должны. | + | |
- | > Действительно? | + | |
- | >> Да! | + | |
- | >>> | + | |
- | Я думаю, мы должны это сделать. | + | For example consider this embedded mp4 video: |
- | > Нет, мы не должны. | + | |
- | >> Ну, я говорю, | + | |
- | > Действительно? | + | |
- | >> Да! | + | |
- | >>> | + | |
- | ===== Смайлики ===== | + | |
- | «Докувики» переделывает наиболее употребляемые смайлики в их графические эквиваленты. Дополнительные смайлики можно положить в директорию '' | + | |
- | * :?: %%:?:%% | + | |
- | * :!: %%:!:%% | + | |
- | Можно расширить возможности данного расширения, | + | |
- | * : | + | |
- | * 8-) {{: | + | |
- | * :&: это говорит о важности прочтения | + | |
- | {{:botoomst_3.png?|}} | + | |
- | :& | + | |
- | :& | + | |
- | :&gal: | + | |
+ | When you upload a '' | ||
- | ===== Иконки ===== | + | Additionally DokuWiki supports a " |
- | <code html icons code> | + | ===== Lists ===== |
- | {{: | + | |
- | {{: | + | |
- | {{: | + | |
- | </ | + | |
- | {{: | + | |
- | {{: | + | |
- | {{: | + | |
- | <code html icons text> | + | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' |
- | {{: | + | |
- | {{: | + | |
- | </ | + | |
- | ^ icons text {{: | + | * This is a list |
- | | {{: | + | |
- | | {{: | + | * You may have different levels |
- | | {{: | + | |
- | | {{: | + | |
- | | {{: | + | |
- | ===== Иконки Font Awesome ===== | + | |
- | <code html icons Font Awesome> | + | |
- | {{fa> | + | - Another item |
- | {{icon> | + | - Just use indention for deeper levels |
- | {{fa> | + | - That's it |
- | {{fugue> | + | |
- | {{flag> | + | |
- | {{silk> | + | |
- | {{flag> | + | |
- | [[: | + | |
- | [[https:// | + | |
- | {{flag> | + | |
- | </ | + | |
- | {{fa> | + | |
- | {{icon> | + | |
- | {{fa> | + | |
- | {{fugue> | + | |
- | {{silk> | + | |
- | [[: | + | |
- | [[https:// | + | |
- | * [[software: | + | < |
- | * [[software: | + | * This is a list |
- | * [[software: | + | * The second item |
- | {{flag> | + | * You may have different levels |
- | {{flag> | + | * Another item |
- | {{flag> | + | |
- | ===== Типографские символы ===== | + | |
- | «Докувики» может переделывать символы, | + | - The same list but ordered |
- | + | - Another item | |
- | -> <- <-> => <= <=> >> << -- --- ' | + | - Just use indention for deeper levels |
- | " | + | - That's it |
- | + | ||
- | < | + | |
- | -> <- <-> => <= <=> >> << -- --- '640x480' | + | |
- | " | + | |
</ | </ | ||
- | Примечание: | + | Also take a look at the [[doku>faq:lists|FAQ on list items]]. |
- | ===== Таблицы | + | ===== Text Conversions |
- | «Докувики» поддерживает упрощённый синтаксис создания таблиц. | + | DokuWiki can convert certain pre-defined characters or strings into images or other text or HTML. |
- | ^ Заголовок 1 ^ Заголовок 2 ^ Заголовок 3 ^ | + | The text to image conversion is mainly done for smileys. And the text to HTML conversion is used for typography replacements, |
- | | Ряд 1 Колонка 1 | Ряд 1 Колонка 2 | Ряд 1 Колонка 3 | | + | |
- | | Ряд 2 Колонка 1 | Объединение колонок (обратите внимание на двойную вертикальную черту) | + | |
- | | Ряд 3 Колонка 1 | Ряд 2 Колонка 2 | Ряд 2 Колонка 3 | | + | |
- | Обычные ряды должны начинаться и заканчиваться вертикальной чертой --- %%|%%, а заголовки «крышечкой» (циркумфлекс) — %%^%%. | + | ==== Text to Image Conversions ==== |
- | ^ Заголовок 1 ^ Заголовок 2 ^ Заголовок 3 ^ | + | DokuWiki converts commonly used [[wp> |
- | | Ряд 1 Колонка 1 | Ряд 1 Колонка 2 | Ряд 1 Колонка 3 | | + | |
- | | Ряд 2 Колонка 1 | Объединение колонок (обратите внимание на двойную вертикальную черту) | + | |
- | | Ряд 3 Колонка 1 | Ряд 2 Колонка 2 | Ряд 2 Колонка 3 | | + | |
- | Чтобы объединить две соседние клетки в ряду, просто оставьте соседнюю клетку полностью пустой, | + | * 8-) %% 8-) %% |
+ | * 8-O %% 8-O %% | ||
+ | * :-( %% :-( %% | ||
+ | * :-) %% :-) %% | ||
+ | * =) %% =) %% | ||
+ | * :-/ %% :-/ %% | ||
+ | * :-\ %% :-\ %% | ||
+ | * :-? %% :-? %% | ||
+ | * :-D %% :-D %% | ||
+ | * :-P %% :-P %% | ||
+ | * :-O %% :-O %% | ||
+ | * :-X %% :-X %% | ||
+ | * :-| %% :-| %% | ||
+ | * ;-) %% ;-) %% | ||
+ | * ^_^ %% ^_^ %% | ||
+ | * m( %% m( %% | ||
+ | * :?: %% :?: %% | ||
+ | * :!: %% :!: %% | ||
+ | * LOL %% LOL %% | ||
+ | * FIXME %% FIXME %% | ||
+ | * DELETEME %% DELETEME %% | ||
- | Вертикальные заголовки тоже можно сделать: | + | ==== Text to HTML Conversions ==== |
- | | ^ Заголовок 1 ^ Заголовок 2 ^ | + | Typography: [[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. |
- | ^ Заголовок 3 | Ряд 1 Колонка 2 | Ряд 1 Колонка 3 | | + | |
- | ^ Заголовок 4 | Объединения нет | + | |
- | ^ Заголовок 5 | Ряд 2 Колонка 2 | Ряд 2 Колонка 3 | | + | |
- | Как легко увидеть, | + | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) |
+ | "He thought ' | ||
- | | ^ Заголовок 1 ^ Заголовок 2 ^ | ||
- | ^ Заголовок 3 | Ряд 1 Колонка 2 | Ряд 1 Колонка 3 | | ||
- | ^ Заголовок 4 | Объединения нет | ||
- | ^ Заголовок 5 | Ряд 2 Колонка 2 | Ряд 2 Колонка 3 | | ||
- | |||
- | Можно сделать вертикально объединённые ячейки добавлением трёх двоеточий '':::'' | ||
- | |||
- | ^ Заголовок 1 ^ Заголовок 2 ^ Заголовок 3 ^ | ||
- | | Ряд 1 Колонка 1 | эта ячейка объединена вертикально | ||
- | | Ряд 2 Колонка 1 | ::: | Ряд 2 Колонка 3 | | ||
- | | Ряд 3 Колонка 1 | ::: | Ряд 2 Колонка 3 | | ||
- | |||
- | В этих ячейках не должно быть ничего, | ||
- | |||
- | ^ Заголовок 1 ^ Заголовок 2 ^ Заголовок 3 ^ | ||
- | | Ряд 1 Колонка 1 | эта ячейка объединена вертикально | Ряд 1 Колонка 3 | | ||
- | | Ряд 2 Колонка 1 | ::: | Ряд 2 Колонка 3 | | ||
- | | Ряд 3 Колонка 1 | ::: | Ряд 2 Колонка 3 | | ||
- | |||
- | Текст клетки таблицы можно выравнивать. Просто добавьте минимум два пробела с противоположной стороны: | ||
- | |||
- | ^ | ||
- | | вправо| | ||
- | |влево | ||
- | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
- | |||
- | ^ | ||
- | | вправо| | ||
- | |влево | ||
- | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
- | |||
- | Примечание: | ||
- | |||
- | :!: С установленным плагином tablelayout. | ||
- | |||
- | Следующий пример синтаксиса сделает первую фиксированной и покажет около 2 других строк в прокручиваемом контейнере ниже. Это сделает первый столбец шириной 100 пикселей, | ||
< | < | ||
- | {{tablelayout? | + | -> <- < |
- | ^ header 1 ^ header 2 ^ | + | "He thought ' |
- | | cell A1 | cell B1 | | + | |
- | | cell A2 | cell B2 | | + | |
- | | cell A3 | cell B3 | | + | |
</ | </ | ||
- | {{tablelayout? | ||
- | ^ header 1 ^ header 2 ^ | ||
- | | cell A1 | cell B1 | | ||
- | | cell A2 | cell B2 | | ||
- | | cell A3 | cell B3 | | ||
- | <code> | + | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku>entities|pattern file]]. |
- | {{tablelayout? | + | |
- | ^ header 1 ^ header 2 ^ | + | |
- | | cell A1 | cell B1 | | + | |
- | | cell A2 | cell B2 | | + | |
- | | cell A3 | cell B3 | | + | |
- | </ | + | |
- | {{tablelayout? | + | |
- | ^ header 1 ^ header 2 ^ | + | |
- | | cell A1 | cell B1 | | + | |
- | | cell A2 | cell B2 | | + | |
- | | cell A3 | cell B3 | | + | |
- | :!: С установленным плагином Cellbg. | + | |
- | Плагин фона ячейки. Позволяет определять ячейки фонового цвета, определяемые пользователем, | + | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), ' |
- | \\ | + | |
- | < | + | |
- | ^ Заголовок 1 ^ Заголовок 2 ^ Заголовок 3 ^ | + | |
- | | @lightgreen:**Диапазон** || | | + | |
- | | @# | + | |
- | | линия 2 | Да | @orange: Да | | + | |
- | | @: | + | |
- | </code> | + | |
- | ^ Заголовок 1 ^ Заголовок 2 ^ Заголовок 3 ^ | + | |
- | | @lightgreen:**Диапазон** || | | + | |
- | | @# | + | |
- | | линия 2 | Да | @orange: Да | | + | |
- | | @: | + | |
- | ===== Неформатируемые блоки | + | ===== Quoting |
- | Неформатируемые блоки можно вставлять в документ, | + | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: |
- | < | + | < |
+ | I think we should do it | ||
- | < | + | > No we shouldn' |
- | Чтобы парсер полностью проигнорировал некий текст (т. е. не форматировал его), либо заключите его в тэги '' | + | >> |
- | Это просто текст, в котором есть адрес %%http:// | + | > Really? |
- | и %%**форматирование**%% --- но ничего не происходит. | + | |
- | <code>Это просто текст, в котором есть адрес %%http:// | + | >> |
- | и %%**форматирование**%% --- но ничего не происходит.</ | + | |
- | Чтобы увидеть, | + | >>> |
- | + | ||
- | ===== Блоки и примечания ===== | + | |
- | + | ||
- | <WRAP round box 570px center> | + | |
- | //**__round box 570px center__**// | + | |
- | + | ||
- | * '' | + | |
- | * любой из классов '' | + | |
- | * для классов '' | + | |
- | * '' | + | |
- | </WRAP> | + | |
- | Дополнительные конфигурационные файлы находятся в / | + | |
- | <WRAP info left 100%> | + | |
- | // | + | |
- | Простой левосторонний блок на длину страницы | + | |
- | </ | + | |
- | + | ||
- | <WRAP tip 30% left> | + | |
- | Простой левосторонний блок на 30% | + | |
- | </ | + | |
- | + | ||
- | <WRAP important 60% left> | + | |
- | // | + | |
- | Простой левосторонний блок на 60% | + | |
- | </ | + | |
- | + | ||
- | <WRAP alert 220px left> | + | |
- | // | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | <WRAP center round alert 60%> | + | |
- | блок «Тревога» | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | <WRAP round help 220px left> | + | |
- | // | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | <WRAP download 220px left> | + | |
- | // | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | <WRAP todo 220px left> | + | |
- | // | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | <WRAP clear></ | + | |
- | + | ||
- | **Оповещения об опасности: | + | |
- | + | ||
- | <WRAP danger 27% left> | + | |
- | // | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | <WRAP warning 27% left> | + | |
- | // | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | <WRAP caution 27% left> | + | |
- | // | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | <WRAP round notice 27% left> | + | |
- | // | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | <WRAP round safety 27% left> | + | |
- | // | + | |
- | < | + | |
- | </ | + | |
- | + | ||
- | <WRAP clear></ | + | |
- | + | ||
- | Также блоки и примечания можно использовать внутри текстов со спанами, | + | |
- | + | ||
- | < | + | |
- | + | ||
- | [[wiki: | + | |
- | + | ||
- | === Блоки модифицированного плагина Note === | + | |
- | <note green> | + | |
- | {{flag> | + | |
- | {{flag> | + | |
- | <note yellow>:& | + | |
- | <note purple> | + | |
- | <note black> | + | |
- | [[wiki: | + | |
- | + | ||
- | ===== Подсветка синтаксиса ===== | + | |
- | + | ||
- | «Докувики» может | + | |
- | + | ||
- | <code java> | + | |
- | /** | + | |
- | * The HelloWorldApp class implements an application that | + | |
- | * simply displays "Hello World!" | + | |
- | */ | + | |
- | class HelloWorldApp { | + | |
- | public static void main(String[] args) { | + | |
- | System.out.println(" | + | |
- | } | + | |
- | } | + | |
</ | </ | ||
- | < | + | I think we should do it |
- | < | + | |
- | ~~COL:7~~ | + | |
- | , 4cs | + | |
- | , **a**bap | + | |
- | , actionscript-french | + | |
- | , actionscript | + | |
- | , actionscript3 | + | |
- | , ada | + | |
- | , apache | + | |
- | , applescript | + | |
- | , asm | + | |
- | , asp | + | |
- | , autoconf | + | |
- | , autohotkey | + | |
- | , autoit | + | |
- | , avisynth | + | |
- | , awk | + | |
- | , **b**ash | + | |
- | , basic4gl | + | |
- | , bf | + | |
- | , bibtex | + | |
- | , blitzbasic | + | |
- | , bnf | + | |
- | , boo | + | |
- | , **c** | + | |
- | , c_mac | + | |
- | , caddcl | + | |
- | , cadlisp | + | |
- | , cfdg | + | |
- | , cfm | + | |
- | , chaiscript | + | |
- | , cil | + | |
- | , clojure | + | |
- | , cmake | + | |
- | , cobol | + | |
- | , cpp | + | |
- | , cpp-qt | + | |
- | , csharp | + | |
- | , css | + | |
- | , cuesheet | + | |
- | , **d** | + | |
- | , dcs | + | |
- | , delphi | + | |
- | , diff | + | |
- | , div | + | |
- | , dos | + | |
- | , dot | + | |
- | , **e**cmascript | + | |
- | , eiffel | + | |
- | + | ||
- | , erlang | + | |
- | , **f**o | + | |
- | , fortran | + | |
- | , freebasic | + | |
- | , fsharp | + | |
- | , **g**ambas | + | |
- | , genero | + | |
- | , genie | + | |
- | , gdb | + | |
- | , glsl | + | |
- | , gml | + | |
- | , gnuplot | + | |
- | , groovy | + | |
- | , gettext | + | |
- | , gwbasic | + | |
- | , **h**askell | + | |
- | , hicest | + | |
- | , hq9plus | + | |
- | , html | + | |
- | , **i**con | + | |
- | , idl | + | |
- | , ini | + | |
- | , inno | + | |
- | , intercal | + | |
- | , io | + | |
- | , **j** | + | |
- | , java5 | + | |
- | , java | + | |
- | , javascript | + | |
- | , jquery | + | |
- | , **k**ixtart | + | |
- | , klonec | + | |
- | , klonecpp | + | |
- | , **l**atex | + | |
- | , lisp | + | |
- | , locobasic | + | |
- | , logtalk | + | |
- | , lolcode | + | |
- | , lotusformulas | + | |
- | , lotusscript | + | |
- | , lscript | + | |
- | , lsl2 | + | |
- | , lua | + | |
- | , **m**68k | + | |
- | , magiksf | + | |
- | , make | + | |
- | , mapbasic | + | |
- | , matlab | + | |
- | , mirc | + | |
- | , modula2 | + | |
- | , modula3 | + | |
- | , mmix | + | |
- | , mpasm | + | |
- | , mxml | + | |
- | , mysql | + | |
- | , **n**ewlisp | + | |
- | , nsis | + | |
- | , **o**beron2 | + | |
- | , objc | + | |
- | , ocaml-brief | + | |
- | , ocaml | + | |
- | , oobas | + | |
- | , oracle8 | + | |
- | , oracle11 | + | |
- | , oxygene | + | |
- | , oz | + | |
- | , **p**ascal | + | |
- | , pcre | + | |
- | , perl | + | |
- | , perl6 | + | |
- | , per | + | |
- | , pf | + | |
- | , php-brief | + | |
- | , php | + | |
- | , pike | + | |
- | , pic16 | + | |
- | , pixelbender | + | |
- | , plsql | + | |
- | , postgresql | + | |
- | , povray | + | |
- | , powerbuilder | + | |
- | , powershell | + | |
- | , progress | + | |
- | , prolog | + | |
- | , properties | + | |
- | , providex | + | |
- | , purebasic | + | |
- | , python | + | |
- | , **q** | + | |
- | , qbasic | + | |
- | , **r**ails | + | |
- | , rebol | + | |
- | , reg | + | |
- | , robots | + | |
- | , rpmspec | + | |
- | , rsplus | + | |
- | , ruby | + | |
- | , **s**as | + | |
- | , scala | + | |
- | , scheme | + | |
- | , scilab | + | |
- | , sdlbasic | + | |
- | , smalltalk | + | |
- | , smarty | + | |
- | , sql | + | |
- | , systemverilog | + | |
- | , **t**cl | + | |
- | , teraterm | + | |
- | , text | + | |
- | , thinbasic | + | |
- | , tsql | + | |
- | , typoscript | + | |
- | , **u**nicon | + | |
- | , **v**ala | + | |
- | , vbnet | + | |
- | , vb | + | |
- | , verilog | + | |
- | , vhdl | + | |
- | , vim | + | |
- | , visualfoxpro | + | |
- | , visualprolog | + | |
- | , **w**hitespace | + | |
- | , winbatch | + | |
- | , whois | + | |
- | , **x**basic | + | |
- | , xml | + | |
- | , xorg_conf | + | |
- | , xpp | + | |
- | , **z**80 | + | |
- | </ | + | |
- | ==== Скачиваемые блоки кода ==== | + | |
- | Используя тэги '' | + | > No we shouldn't |
- | <code> | + | >> |
- | <file php myexample.php> | + | |
- | <?php echo "hello world!"; | + | |
- | </ | + | |
- | </code> | + | |
- | <file php myexample.php> | + | > Really? |
- | <?php echo "hello world!"; | + | |
- | </ | + | |
- | Если вам не нужна подсветка, | + | >> Yes! |
- | **Особенность: | + | >>> |
- | <file php " | + | |
- | <?php echo "hello world!"; | + | |
- | </ | + | |
- | <code JavaScript [enable_line_numbers=" | + | |
- | var de = function() { | + | |
- | return (typeof(window.de) == ' | + | |
- | }(); | + | |
- | </code> | + | |
- | <file php " | + | ===== Tables ===== |
- | var de = function() { | + | |
- | return (typeof(window.de) | + | |
- | }(); | + | |
- | <?php echo "hello world!"; | + | |
- | </ | + | |
- | <code JavaScript [enable_line_numbers=" | + | |
- | var de = function() { | + | |
- | return (typeof(window.de) | + | |
- | }(); | + | |
- | </ | + | |
- | < | + | DokuWiki supports a simple syntax to create tables. |
- | <code php Lexer.php [enable_line_numbers=" | + | |
- | void main () { | + | |
- | printf (" | + | |
- | exit(0); | + | |
- | } | + | |
- | </ | + | |
- | </ | + | |
- | <code php Lexer.php [enable_line_numbers=" | + | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ |
- | void main () { | + | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | |
- | | + | | Row 2 Col 1 | some colspan |
- | | + | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | |
- | } | + | |
- | </ | + | |
- | <code JavaScript [enable_line_numbers=" | + | Table rows have to start and end with a '' |
- | var de = function() { | + | |
- | return (typeof(window.de) == 'object') ? window.de : {}; | + | |
- | }(); | + | |
- | </ | + | |
- | ===== Вставка HTML и PHP ===== | + | |
- | Чистый HTML- или PHP-код можно вставлять в документ с помощью тэгов '' | + | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ |
+ | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | ||
+ | | Row 2 Col 1 | some colspan (note the double pipe) || | ||
+ | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | ||
- | <code html> | + | To connect cells horizontally, |
- | < | + | |
- | Тут вставлен <font color=" | + | |
- | </ | + | |
- | < | + | Vertical tableheaders are possible, too. |
- | <p style=" | + | |
- | </ | + | |
- | </ | + | |
- | Получается: | + | | ^ Heading 1 ^ Heading 2 ^ |
+ | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | ||
+ | ^ Heading 4 | no colspan this time | | | ||
+ | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | ||
- | < | + | As you can see, it's the cell separator before a cell which decides about the formatting: |
- | Тут вставлен <font color=" | + | |
- | </ | + | |
- | < | + | | ^ Heading 1 ^ Heading 2 ^ |
- | <p style=" | + | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | |
- | </ | + | ^ Heading 4 | no colspan this time | | |
+ | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | ||
- | ---- | + | You can have rowspans (vertically connected cells) by adding '' |
- | < | + | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ |
- | <php> | + | | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | |
- | echo ' | + | | Row 2 Col 1 | ::: | Row 2 Col 3 | |
- | echo phpversion(); | + | | Row 3 Col 1 | ::: | Row 2 Col 3 | |
- | echo ' (прямая вставка в HTML).'; | + | |
- | </ | + | |
- | < | + | Apart from the rowspan syntax those cells should not contain anything else. |
- | echo '< | + | |
- | echo '< | + | |
- | echo '</ | + | |
- | </ | + | |
- | </ | + | |
- | Получается: | + | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ |
+ | | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | | ||
+ | | Row 2 Col 1 | ::: | Row 2 Col 3 | | ||
+ | | Row 3 Col 1 | ::: | Row 2 Col 3 | | ||
- | < | + | You can align the table contents, too. Just add at least two whitespaces at the opposite end of your text: Add two spaces on the left to align right, two spaces on the right to align left and two spaces at least at both ends for centered text. |
- | echo ' | + | |
- | echo phpversion(); | + | |
- | echo ' (прямая вставка в HTML).'; | + | |
- | </ | + | |
- | <PHP> | + | ^ Table with alignment |
- | echo '< | + | | |
- | echo '< | + | |left | |
- | echo '</ | + | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | |
- | </ | + | |
- | **Примечание:** по умолчанию вставка HTML и PHP запрещена. Когда она запрещена, | + | This is how it looks in the source: |
- | ===== Вставка видео ===== | + | ^ Table with alignment |
- | < | + | |
- | {{video.mp4|}} block | + | |left | right| |
- | {{video.mp4 | + | | xxxxxxxxxxxx |
- | {{ video.mp4 | + | |
- | {{ video.mp4|}} right | + | |
- | {{video.mp4? | + | |
- | {{video.mp4? | + | |
- | {{video.mp4? | + | |
- | </ | + | |
- | {{: | + | |
- | {{: | + | |
- | {{: | + | |
- | < | + | Note: Vertical alignment is not supported. |
- | <iframe width=" | + | |
- | </ | + | |
- | < | + | ===== No Formatting |
- | <iframe src=" | + | |
- | </ | + | |
- | ===== Вставка HTML страниц ===== | + | |
- | :!: при установленном плагине **htmlok** | + | |
- | <code html HTTP> | + | If you need to display text exactly like it is typed (without any formatting), |
- | <html> | + | |
- | <iframe height=" | + | |
- | </iframe> | + | |
- | </ | + | |
- | </code> | + | |
- | <html> | + | <nowiki> |
- | <iframe height=" | + | This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, |
- | </iframe> | + | </nowiki> |
- | </html> | + | The same is true for %%//__this__ text// with a smiley ;-)%%. |
- | <code html ROOT> | + | |
- | < | + | This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, |
- | <iframe height=" | + | </nowiki> |
- | </iframe> | + | The same is true for %%//__this__ text// with a smiley ;-)%%. |
- | </html> | + | |
- | </code> | + | |
- | < | + | ===== Code Blocks |
- | <iframe height=" | + | |
- | </ | + | |
- | </ | + | |
- | < | + | You can include code blocks into your documents by either indenting them by at least two spaces (like used for the previous examples) or by using the tags '' |
- | <html> | + | |
- | <iframe height=" | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | < | + | This is text is indented by two spaces. |
- | <iframe height=" | + | |
- | </ | + | |
- | </ | + | |
- | |||
- | <code html HTML+CSS> | ||
- | < | ||
- | <iframe height=" | ||
- | </ | ||
- | </ | ||
- | </ | ||
- | |||
- | < | ||
- | <iframe height=" | ||
- | </ | ||
- | </ | ||
- | |||
- | <code html HTML+CSS+JavaScript> | ||
- | < | ||
- | <iframe height=" | ||
- | </ | ||
- | </ | ||
- | </ | ||
- | |||
- | < | ||
- | <iframe height=" | ||
- | </ | ||
- | </ | ||
- | ===== Диаграммы ===== | ||
- | :!: При установленном плагине diagram | ||
- | \\ | ||
< | < | ||
- | <diagram> | + | This is preformatted code all spaces are preserved: like |
- | | | | Dad |y| Mom | | |Dad=Папа|Mom=Мама | + | |
- | | |,|-|-|-|+|-|-|-|.| | | + | |
- | | Sys | | Me | | Bro |Sys=Сестра|Bro=Брат | + | |
- | | |, | + | |
- | | AAA |-| BBB |AAA=<fc # | + | |
- | | |:| | | | | | | + | |
- | | |L|~|~| CCC |CCC=2< | + | |
- | </ | + | |
</ | </ | ||
- | <diagram> | + | <file> |
- | | | | Dad |y| Mom | | |Dad=Папа|Mom=Мама | + | This is pretty much the same, but you could use it to show that you quoted a file. |
- | | |,|-|-|-|+|-|-|-|.| | | + | </file> |
- | | Sys | | Me | | Bro |Sys=Сестра|Bro=Брат | + | |
- | | |, | + | |
- | | AAA |-| BBB |AAA=<fc # | + | |
- | | |:| | | | | | | + | |
- | | |L|~|~| CCC |CCC=2< | + | |
- | </diagram> | + | |
- | < | + | Those blocks were created by this source: |
- | < | + | |
- | | AAA | | | | |F|~|~|~|7| |AAA{border-color:blue; | + | |
- | | |!| | | | | CCC | | DDD |CCC{border-color:# | + | |
- | | BBB | | | | | | | | | | |BBB{border-color: | + | |
- | </ | + | |
- | </ | + | |
- | \\ | + | |
- | < | + | |
- | | AAA | | | | |F|~|~|~|7| |AAA{border-color: | + | |
- | | |!| | | | | CCC | | DDD |CCC{border-color:# | + | |
- | | BBB | | | | | | | | | | |BBB{border-color: | + | |
- | </ | + | |
- | Диаграмма без рамки с картинками | + | This is text is indented by two spaces. |
- | < | + | |
- | < | + | |
- | |AAA||AAA{text-align: | + | |
- | |)|BBB|BBB{text-align: | + | |
- | |)|CCC|CCC{text-align: | + | |
- | |)|DDD|DDD{text-align: | + | |
- | |)|EEE|EEE{text-align: | + | |
- | |)|FFF|FFF{text-align: | + | |
- | |)|GGG|GGG{text-align: | + | |
- | |)|KKK|KKK{text-align: | + | |
- | |)|LLL|LLL{text-align: | + | |
- | |)|MMM|MMM{text-align: | + | |
- | |`|NNN|NNN{text-align: | + | |
- | </ | + | |
- | </ | + | |
- | < | + | |
- | |AAA||AAA{text-align: | + | |
- | |)|BBB|BBB{text-align: | + | |
- | |)|CCC|CCC{text-align: | + | |
- | |)|DDD|DDD{text-align: | + | |
- | |)|EEE|EEE{text-align: | + | |
- | |)|FFF|FFF{text-align: | + | |
- | |)|GGG|GGG{text-align: | + | |
- | |)|KKK|KKK{text-align: | + | |
- | |)|LLL|LLL{text-align: | + | |
- | |)|MMM|MMM{text-align: | + | |
- | |`|NNN|NNN{text-align: | + | |
- | </ | + | |
- | ===== Звезды ===== | + | |
- | :!: При установленном плагине Stars2 | + | |
- | \\ | + | |
- | < | + | |
- | {{stars> | + | |
- | {{stars> | + | |
- | {{stars> | + | |
- | {{stars> | + | |
- | {{stars> | + | |
- | {{stars> | + | |
- | {{stars> | + | |
- | {{stars> | + | |
- | {{stars> | + | |
- | {{stars> | + | |
- | {{stars> | + | |
- | </ | + | |
- | {{stars> | + | |
- | {{stars> | + | |
- | ===== Скрытый текст ===== | + | < |
+ | This is preformatted code all spaces are preserved: like <-this | ||
+ | </ | ||
- | :!: При установленном плагине Details Tag | + | < |
- | \\ | + | |
+ | </ | ||
- | <code php> | + | ==== Syntax Highlighting ==== |
- | < | + | |
- | < | + | |
- | Скрытый текст | + | |
- | </ | + | |
- | </ | + | |
- | <details> | + | [[wiki: |
- | <summary>«Подробности»</summary> | + | |
- | Скрытый текст | + | |
- | </details> | + | |
- | < | + | < |
- | <details open> | + | /** |
- | < | + | * The HelloWorldApp class implements an application that |
- | Скрытый текст | + | * simply displays "Hello World!" |
- | </details> | + | */ |
+ | class HelloWorldApp { | ||
+ | | ||
+ | System.out.println(" | ||
+ | } | ||
+ | } | ||
</ | </ | ||
- | <details open> | + | The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 actionscript ada aimms algol68 apache applescript apt_sources arm asm asp asymptote autoconf autohotkey autoit avisynth awk bascomavr bash basic4gl batch bf biblatex bibtex blitzbasic bnf boo caddcl cadlisp ceylon cfdg cfm chaiscript chapel cil c_loadrunner clojure c_mac cmake cobol coffeescript c cpp cpp-qt cpp-winapi csharp css cuesheet c_winapi dart dcl dcpu16 dcs delphi diff div dos dot d ecmascript eiffel email epc e erlang euphoria ezt f1 falcon fo fortran freebasic freeswitch fsharp gambas gdb genero genie gettext glsl gml gnuplot go groovy gwbasic haskell haxe hicest hq9plus html html4strict html5 icon idl ini inno intercal io ispfpanel java5 java javascript jcl j jquery julia kixtart klonec klonecpp kotlin latex lb ldif lisp llvm locobasic logtalk lolcode lotusformulas lotusscript lscript lsl2 lua m68k magiksf make mapbasic mathematica matlab mercury metapost mirc mk-61 mmix modula2 modula3 mpasm mxml mysql nagios netrexx newlisp nginx nimrod nsis oberon2 objc objeck ocaml-brief ocaml octave oobas oorexx oracle11 oracle8 oxygene oz parasail parigp pascal pcre perl6 perl per pf phix php-brief php pic16 pike pixelbender pli plsql postgresql postscript povray powerbuilder powershell proftpd progress prolog properties providex purebasic pycon pys60 python qbasic qml q racket rails rbs rebol reg rexx robots roff rpmspec rsplus ruby rust sas sass scala scheme scilab scl sdlbasic smalltalk smarty spark sparql sql sshconfig standardml stonescript swift systemverilog tclegg tcl teraterm texgraph text thinbasic tsql twig typoscript unicon upc urbi uscript vala vbnet vb vbscript vedit verilog vhdl vim visualfoxpro visualprolog whitespace whois winbatch wolfram xbasic xml xojo xorg_conf xpp yaml z80 zxbasic// |
- | < | + | |
- | Скрытый текст | + | |
- | </details> | + | |
- | :!: При установленном плагине StepByStep | + | There are additional [[doku> |
- | \\ | + | |
- | Вот еще информация | + | ==== Downloadable Code Blocks ==== |
- | о последней книге, которую я прочитал. | + | |
- | #: Step 1 | open | Это история о... | + | When you use the '' |
- | ...здесь можно писать много | + | |
- | о содержании | + | |
- | + | ||
- | Lorem ipsum dolor сидеть amet... | + | |
- | + | ||
- | ##: Следующий раздел содержит спойлеры... | + | |
- | Duis autem vel eum iriure... | + | |
- | :## | + | |
- | + | ||
- | Ut wisi enim ad minim veniam, ... | + | |
- | :# | + | |
- | + | ||
- | Мне это очень понравилось! | + | |
- | + | ||
- | #: open | Джордж Оруэлл: | + | |
- | \\ | + | |
- | ^Название: | + | |
- | ^Автор: | + | |
- | :# | + | |
- | + | ||
- | Начало: | + | |
- | #: Новость ||open | + | |
- | Содержание content | + | |
- | Конец | + | |
- | :# | + | |
- | + | ||
- | https:// | + | |
- | ===== Ширина столбцов таблицы ===== | + | |
- | + | ||
- | :!: При установленном плагине Tablelayout | + | |
- | \\ | + | |
< | < | ||
- | {{tablelayout?colwidth="100px,200px"& | + | <file php myexample.php> |
- | ^ header 1 ^ header 2 ^ | + | <?php echo "hello world!"; ?> |
- | | cell A1 | cell B1 | | + | </ |
- | | cell A2 | cell B2 | | + | |
- | | cell A3 | cell B3 | | + | |
</ | </ | ||
- | {{tablelayout?colwidth="100px,200px"& | + | <file php myexample.php> |
- | ^ header 1 ^ header 2 ^ | + | <?php echo "hello world!"; ?> |
- | | cell A1 | cell B1 | | + | </ |
- | | cell A2 | cell B2 | | + | |
- | | cell A3 | cell B3 | | + | |
- | + | ||
+ | If you don't want any highlighting but want a downloadable file, specify a dash ('' | ||
===== RSS/ATOM Feed Aggregation ===== | ===== RSS/ATOM Feed Aggregation ===== | ||
+ | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// | ||
- | ===== Агрегация каналов RSS/ATOM ===== | + | ^ Parameter |
+ | | any number | will be used as maximum number items to show, defaults to 8 | | ||
+ | | reverse | ||
+ | | author | ||
+ | | date | show item dates | | ||
+ | | description| show the item description. All HTML tags will be stripped | | ||
+ | | nosort | ||
+ | | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | ||
- | Докувики может интегрировать данные из внешних XML-каналов. Для анализа XML-каналов, | + | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki:DokuWiki]] will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells [[wiki:DokuWiki]] to re-render the page if it is more than //refresh period// since the page was last rendered. |
- | ^ Параметр | + | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' |
- | | any number | Отображается максимальное количество элиментов, по умолчанию 8 | | + | |
- | | reverse | + | |
- | | author | + | |
- | | date | Показывать даты элиментов | | + | |
- | | description| Покажите описание элиментов. Если HTML отключен, все теги будут удалены | | + | |
- | | nosort | + | |
- | | //n//[dhm] | Период обновления, | + | |
- | Период обновления по умолчанию равен 4 часам. Любое значение ниже 10 минут будет рассматриваться как 10 минут. Докувики обычно пытается предоставить кэшированную версию страницы, | + | **Example:** |
- | + | ||
- | По умолчанию лента будет отсортирована по дате, сначала по самым новым элементам. Вы можете сначала отсортировать его по возрасту, | + | |
- | + | ||
- | **Пример:** | + | |
{{rss> | {{rss> | ||
{{rss> | {{rss> | ||
- | ===== Управляющие макросы ===== | ||
- | Некоторый синтаксис влияет на то, как «Докувики» обрабатывает статьи без создания каких-либо результатов для себя. Доступны следующие макросы: | ||
- | ^ Макрос | + | ===== Control Macros ===== |
- | | %%~~NOTOC~~%% | + | |
- | | %%~~NOCACHE~~%% | «Докувики» помещает всё выводимое в кэш по умолчанию. Иногда это нежелательно (например, | + | |
- | \\ | + | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: |
- | < | + | |
- | < | + | |
- | Dokuwiki | + | |
- | Синтаксис форматирования | + | |
- | Форматирование текста в Dokuwiki | + | |
- | <meta name=" | + | |
- | {{description> | + | |
- | </ | + | |
- | < | + | |
- | {{description> | + | |
- | </ | + | |
- | ===== Синтаксические плагины ===== | + | |
- | Синтаксис «Докувики» может быть расширен за счёт | + | ^ Macro ^ Description | |
+ | | %%~~NOTOC~~%% | ||
+ | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | ||
+ | |||
+ | ===== Syntax Plugins ===== | ||
+ | |||
+ | DokuWiki' | ||
~~INFO: | ~~INFO: | ||
+ |
wiki/syntax.1738510724.txt.gz · Последнее изменение: — vladpolskiy