Библиотека
Здесь показаны различия между выбранной ревизией и текущей версией данной страницы.
| wiki:syntax 2007/02/14 18:33 | wiki:syntax 2007/02/14 20:35 текущий | ||
|---|---|---|---|
| Строка 1: | Строка 1: | ||
| - | ====== Синтаксис форматирования ====== | + | ====== Formatting Syntax ====== |
| - | [[wiki:DokuWiki]] поддерживает простой язык форматирования, который делает статьи читабельными, насколько это возможно. | + | [[wiki:DokuWiki]] supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing the //Edit this page// button at the top or bottom of the page. If you want to try something, just use the [[playground|playground]] page. The simpler markup is easily accessible via [[doku>wiki:quickbuttons|quickbuttons]], too. |
| - | *Эта страница содержит весь синтаксис, который вы можете использовать для оформления статей. | + | |
| - | *Более простое решение для оформления доступно через [[doku>wiki:quickbuttons|quickbuttons]]. | + | |
| - | *Для комфортного форматирования текста в Wiki используйте расширение [[extensions:catalogue:fxediting:wikicode|WikiCode]]. | + | |
| - | Вы можете посмотреть исходный текст страницы нажав кнопку //Показать исходный текст// сверху или снизу страницы. Редатировать статью можно нажав кнопку //Редактировать//. Если вы хотите проверить что-то, используйте страницу [[playground]]. | + | |
| - | ===== Базовое форматирование текста ===== | + | ===== Basic text formatting ===== |
| - | DokuWiki поддерживает **жирный**, //курсив//, __подчёркнутый__ и ''моноширинный'' текст. Конечно, вы можете это **__//''комбинировать''//__**. | + | DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts. Of course you can **__//''combine''//__** all these. |
| - | DokuWiki поддерживает **жирный**, //курсив//, __подчёркнутый__ и ''моноширинный'' текст. | + | DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts. |
| - | Конечно, вы можете это **__//''комбинировать''//__**. | + | Of course you can **__//''combine''//__** all these. |
| - | Вы можете также использовать <sub>подстрочный</sub> и <sup>надстрочный</sup> текст. | + | You can use <sub>subscript</sub> and <sup>superscript</sup>, too. |
| - | Вы можете также использовать <sub>подстрочный</sub> и <sup>надстрочный</sup> текст. | + | You can use <sub>subscript</sub> and <sup>superscript</sup>, too. |
| - | Ещё вы можете пометить что-то как <del>зачёркнутое</del>. | + | You can mark something as <del>deleted</del> as well. |
| - | Ещё вы можете пометить что-то как <del>зачёркнутое</del>. | + | 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. |
| - | ===== Ссылки ===== | + | ===== Links ===== |
| - | DokuWiki поддерживает несколько способов создания ссылок. | + | DokuWiki supports multiple ways of creating links. |
| - | ==== Внешние ==== | + | ==== External ==== |
| - | Внешние ссылки определяются автоматически: http://www.google.com или просто www.google.com - Вы можете также делать из текста ссылки: [[http://www.google.com|Это ссылка ведёт на google]]. Адреса электронной почты тоже определяются: <andi@splitbrain.org>. | + | External links are recognized automagically: http://www.google.com or simply www.google.com - You can set Linknames, too: [[http://www.google.com|This Link points to google]]. Email addresses like this one: <andi@splitbrain.org> are recognized, too. |
| - | Внешние ссылки определяются автоматически: http://www.google.com или | + | DokuWiki supports multiple ways of creating links. External links are recognized |
| - | просто www.google.com - Вы можете также делать из текста ссылки: | + | automagically: http://www.google.com or simply www.google.com - You can set |
| - | [[http://www.google.com|Это ссылка ведёт на google]]. Адреса | + | Linknames, too: [[http://www.google.com|This Link points to google]]. Email |
| - | электронной почты тоже определяются: <andi@splitbrain.org>. | + | addresses like this one: <andi@splitbrain.org> are recognized, too. |
| - | ==== Внутренние ==== | + | ==== Internal ==== |
| - | Внутренние ссылки создаются с помощью квадратных скобок. Вы можете просто просто использовать [[doku>wiki:pagename]] или использовать дополнительный [[doku>wiki:pagename|Текст ссылки]]. Названия страниц Wiki конвертируются в нижний регистр автоматически, спецсимволы не разрешены. | + | Internal links are created by using square brackets. You can either just give a [[doku>wiki:pagename]] or use an additional [[doku>wiki:pagename|Title Text]]. Wiki pagenames are converted to lowercase automatically, special characters are not allowed. |
| - | Внутренние ссылки создаются с помощью квадратных скобок. Вы можете просто | + | Internal links are created by using square brackets. You can either just give |
| - | просто использовать [[doku>wiki:pagename]] или использовать дополнительный | + | a [[pagename]] or use an additional [[pagename|Title Text]]. Wiki pagenames |
| - | [[doku>wiki:pagename|Текст ссылки]]. Названия страниц Wiki конвертируются в | + | are converted to lowercase automatically, special chars are not allowed. |
| - | нижний регистр автоматически, спецсимволы не разрешены. | + | |
| - | Вы можете использовать [[wiki:namespaces]] с помощью ссылки на страницу с двоеточиями. //В MozillaWiki такие ссылки лучше не использовать, т.к. в этом случае возможны только английские названия ссылок.// | + | You can use [[wiki:namespaces]] by using a colon in the pagename. |
| - | Вы можете использовать [[wiki:namespaces]] с помощью ссылки на страницу с двоеточиями. | + | You can use [[wiki:namespaces]] by using a colon in the pagename. |
| - | Информацию про namespaces вы можете найти на [[doku>wiki:namespaces]]. | + | For details about namespaces see [[doku>wiki:namespaces]]. |
| - | Ссылки на отдельную секцию страницы также возможны. Всего лишь добавьте название секции после символа # известного из HTML. Это ссылка на [[syntaxru#5|эту секцию]]. | + | Linking to a specific section is possible, too. Just add the sectionname behind a hash character as known from HTML. This links to [[syntax#internal|this Section]]. |
| - | Это ссылка на [[syntaxru#5|эту секцию]]. | + | This links to [[syntax#internal|this Section]]. |
| - | Секции, названия которых состоят из не-ASCII символов последовательно нумеруются начиная с 1. Если название секции состоит из ASCII символов (не содержит киррилицу), то ссылка выглядит так: | + | Notes: |
| - | + | ||
| - | [[syntaxru#name_of_section|....]] | + | |
| - | Пробелы в названии секции заменяются на знак подчёркивания. | + | * Links to [[wiki:syntax|existing pages]] are shown in a different style from [[wiki:nonexisting]] ones. |
| - | + | * DokuWiki does not use [[wp>CamelCase]] to automatically create links by default, but this behaviour can be enabled in the [[doku>config]] file. Hint: If DokuWiki is a link, then it's enabled. | |
| - | Примечания: | + | * When a section's heading is changed, it's bookmark changes, too. So don't rely on section linking too much. |
| - | + | ||
| - | * Ссылки на [[wiki:syntax|существующие страницы]] отображаются в стиле отличном от [[wiki:nonexisting|несуществующих]]. | + | |
| - | * DokuWiki не использует [[wp>CamelCase]] для автоматического создания ссылок по умолчанию, но это настраивается в файле [[doku>config]]. Хинт: Если DokuWiki - ссылка, значит [[wp>CamelCase]] включён. | + | |
| - | * Когда название секции меняется, ссылка на неё тоже меняется. Так что не злоупотребляйте ссылками на секции. | + | |
| ==== Interwiki ==== | ==== Interwiki ==== | ||
| - | DokuWiki поддерживает ссылки на [[doku>wiki:interwiki]]. Это быстрые ссылки на другие Wiki. Для примера вот ссылка на страницу Wikipedia о Wiki: [[wp>Wiki]]. | + | DokuWiki supports [[doku>wiki:interwiki|Interwiki]] links. These are quick links to other Wikis. For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]]. |
| - | DokuWiki поддерживает ссылки на [[doku>wiki:interwiki]]. Это быстрые ссылки | + | DokuWiki supports [[doku>wiki:interwiki|Interwiki]] links. These are quick links to other Wikis. |
| - | на другие Wiki. Для примера вот линк на страницу Wikipedia о Wiki: [wp>Wiki]]. | + | For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]]. |
| ==== Windows Shares ==== | ==== Windows Shares ==== | ||
| - | Windows shares, например [[servershare|это]] тоже поддерживаются. Пожалуйста, учтите, что это имеет смысл только в однородной группе пользователей, например в корпоративном [[wp>Intranet]]. | + | Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in a homogenous user group like a corporate [[wp>Intranet]]. |
| - | Windows shares, например [[servershare|это]] тоже поддерживаются. | + | Windows Shares like [[\\server\share|this]] are recognized, too. |
| - | Примечания: | + | Notes: |
| - | * По причинам безопасности прямой просмотр windows shares возможен по умолчанию только в Microsoft Internet Explorer'e (и только в "local zone" (местная интрасеть, локальная зона)). | + | * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone"). |
| - | * В Mozilla и Firefox это можно включить через параметр [[http://www.mozilla.org/quality/networking/docs/netprefs.html#file|security.checkloaduri]], но делать это не рекомендуется | + | * For Mozilla and Firefox it can be enabled through the config option [[http://www.mozilla.org/quality/networking/docs/netprefs.html#file|security.checkloaduri]] but this is not recommended |
| - | * Смотрите [[bug>151]] для большей информации | + | * See [[bug>151]] for more info |
| - | ==== Ссылки на изображениях ==== | + | ==== Image Links ==== |
| - | Вы можете использовать изображение как ссылку на другую внутреннюю или внешнюю страницу комбинируя синтаксис ссылки и изображения (смотри ниже), например так: | + | You can also use an image to link to another internal or external page by combining the syntax for links and [[#images_and_other_files|images]] (see below) like this: |
| - | [[http://www.php.net|{{wiki:php-powered.png}}]] | + | [[http://www.php.net|{{wiki:dokuwiki-128.png}}]] |
| - | [[http://www.php.net|{{wiki:php-powered.png}}]] | + | [[http://www.php.net|{{wiki:dokuwiki-128.png}}]] |
| - | Пожалуйста, учтите: Форматирование изображений - единственный синтаксис форматирования, разрешённый в ссылках. | + | Please note: The image formatting is the only formatting syntax accepted in link names. |
| - | + | The whole [[#images_and_other_files|image]] and [[#links|link]] syntax is supported (including image resizing, internal and external images and URLs and interwiki links). | |
| + | ===== Footnotes ===== | ||
| - | ===== Сноски ===== | + | You can add footnotes ((This is a footnote)) by using double parenthesises. |
| - | Вы можете добавлять сноски ((Это сноска)) используя двойные круглые скобки. | + | You can add footnotes ((This is a footnote)) by using double parenthesises. |
| - | Вы можете добавлять сноски ((Это сноска)) используя двойные круглые скобки. | + | ===== Sectioning ===== |
| - | ===== Структурирование ===== | + | 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 -- this can be disabled by including the string ''<nowiki>~~NOTOC~~</nowiki>'' in the document. |
| - | Вы можете использовать пять разных типов заголовков для структурирования документа. Если вам требуется более трёх заголовков, таблица содержимого генерируется автоматически -- это можно отключить, включив строку ''<nowiki>~~NOTOC~~</nowiki>'' в документ. | + | ==== Headline Level 3 ==== |
| + | === Headline Level 4 === | ||
| + | == Headline Level 5 == | ||
| - | ==== Заголовок 3 ==== | + | ==== Headline Level 3 ==== |
| - | === Заголовок 4 === | + | === Headline Level 4 === |
| - | == Заголовок 5 == | + | == Headline Level 5 == |
| - | ==== Заголовок 3 ==== | + | By using four or more dashes, you can make a horizontal line: |
| - | === Заголовок 4 === | + | |
| - | == Заголовок 5 == | + | |
| - | + | ||
| - | Используя четыре или более дефиса, вы можете создать горизонтальную линию: | + | |
| ---- | ---- | ||
| - | ===== Изображения и другие файлы ===== | + | ===== Images and other files ===== |
| - | Вы можете включить внешние и внутренние изображения с помощью фигурных скобок. Дополнительно вы можете задать их размер. | + | You can include external and internal [[doku>images]] with curly brackets. Optionally you can specify the size of them. |
| - | Реальный размер: {{wiki:php-powered.png}} | + | Real size: {{wiki:dokuwiki-128.png}} |
| - | Изменение размера до заданной ширины: {{wiki:php-powered.png?100}} | + | Resize to given width: {{wiki:dokuwiki-128.png?50}} |
| - | Изменение размера до заданной ширины и высоты: {{wiki:php-powered.png?100x100}} | + | Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}} |
| - | Внешнее изображение с изменённым размером: {{http://de3.php.net/images/php.gif?100x100}} | + | Resized external image: {{http://de3.php.net/images/php.gif?200x50}} |
| - | Реальный размер: {{wiki:php-powered.png}} | + | Real size: {{wiki:dokuwiki-128.png}} |
| - | Изменение размера до заданной ширины: {{wiki:php-powered.png?100}} | + | Resize to given width: {{wiki:dokuwiki-128.png?50}} |
| - | Изменение размера до заданной ширины и высоты: {{wiki:php-powered.png?100x100}} | + | Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}} |
| - | Внешнее изображение с изменённым размером: {{http://de3.php.net/images/php.gif?100x100}} | + | Resized external image: {{http://de3.php.net/images/php.gif?200x50}} |
| - | Используя пробелы справа и слева вы можете выровнять изображение на странице | ||
| - | {{ wiki:php-powered.png}} | + | By using left or right whitespaces you can choose the alignment |
| - | {{wiki:php-powered.png }} | + | {{ wiki:dokuwiki-128.png}} |
| - | {{ wiki:php-powered.png }} | + | {{wiki:dokuwiki-128.png }} |
| - | {{ wiki:php-powered.png}} | + | {{ wiki:dokuwiki-128.png }} |
| - | {{wiki:php-powered.png }} | + | |
| - | {{ wiki:php-powered.png }} | + | |
| - | Вы можете задать заголовок к изображению (отображается большинством браузеров как всплывающая подсазка). | + | {{ wiki:dokuwiki-128.png}} |
| + | {{wiki:dokuwiki-128.png }} | ||
| + | {{ wiki:dokuwiki-128.png }} | ||
| - | {{ wiki:php-powered.png |Это заголовок}} | + | Of course, you can add a title (displayed as a tooltip by most browsers), too. |
| - | {{ wiki:php-powered.png |Это заголовок}} | + | {{ wiki:dokuwiki-128.png |This is the caption}} |
| - | Если вы укажете имя файла, который не является изображением (''gif,jpeg,png''), он отобразится как ссылка. | + | {{ wiki:dokuwiki-128.png |This is the caption}} |
| - | ===== Списки ===== | + | If you specify a filename (external or internal) that is not an image (''gif,jpeg,png''), then it will be displayed as a link instead. |
| - | Dokuwiki поддерживает упорядоченные и неупорядоченные списки. Чтобы создать список, предварите свой текст двумя пробелами и используйте ''*'' для неупорядоченного или ''-'' для упорядоченного. | + | For linking an image to another page see [[Image Links]] above. |
| - | * Это список | + | ===== Lists ===== |
| - | * Это второй пункт | + | |
| - | * Список может быть многоуровневым | + | |
| - | * Ещё пункт | + | |
| - | - Такой же список, но упорядоченный | + | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a ''*'' for unordered lists or a ''-'' for ordered ones. |
| - | - Ещё пункт | + | |
| - | - Используйте отступ для более глубоких уровней | + | * This is a list |
| - | - Вот так | + | * The second item |
| + | * You may have different levels | ||
| + | * Another item | ||
| + | |||
| + | - The same list but ordered | ||
| + | - Another item | ||
| + | - Just use indention for deeper levels | ||
| + | - That's it | ||
| <code> | <code> | ||
| - | * Это список | + | * This is a list |
| - | * Это второй пункт | + | * The second item |
| - | * Список может быть многоуровневым | + | * You may have different levels |
| - | * Ещё пункт | + | * Another item |
| - | - Такой же список, но упорядоченный | + | - The same list but ordered |
| - | - Ещё пункт | + | - Another item |
| - | - Используйте отступ для более глубоких уровней | + | - Just use indention for deeper levels |
| - | - Вот так | + | - That's it |
| </code> | </code> | ||
| - | ===== Эмотиконы ===== | + | ===== Smileys ===== |
| - | DokuWiki конвертирует часто используемые [[wp>emoticon]]ы в графическую форму. Дополнительные смайлики могут быть помещены в директорию ''smiley'' и настроены в файле ''conf/smileys.conf''. Вот обзор смайликов включённых в DokuWiki. | + | DokuWiki converts commonly used [[wp>emoticon]]s to their graphical equivalents. More smileys can be placed in the ''smiley'' directory and configured in the ''conf/smileys.conf'' file. Here is an overview of Smileys included in DokuWiki. |
| - | * :) %% :) %% | + | * 8-) %% 8-) %% |
| - | * =) %% =) %% | + | * 8-O %% 8-O %% |
| - | * :| %% :| %% | + | * :-( %% :-( %% |
| - | * =| %% =| %% | + | * :-) %% :-) %% |
| - | * :( %% :( %% | + | * =) %% =) %% |
| - | * =( %% =( %% | + | * :-/ %% :-/ %% |
| - | * :D %% :D %% | + | * :-\ %% :-\ %% |
| - | * =D %% =D %% | + | * :-? %% :-? %% |
| - | * :o %% :o %% | + | * :-D %% :-D %% |
| - | * :O %% :O %% | + | * :-P %% :-P %% |
| - | * ;) %% ;) %% | + | * :-O %% :-O %% |
| - | * :/ %% :/ %% | + | * :-X %% :-X %% |
| - | * :P %% :P %% | + | * :-| %% :-| %% |
| - | * :lol: %% :lol: %% | + | * ;-) %% ;-) %% |
| - | * :mad: %% :mad: %% | + | * ^_^ %% ^_^ %% |
| - | * :rolleyes: %% :rolleyes: %% | + | * :?: %% :?: %% |
| - | * :cool: %% :cool: %% | + | * :!: %% :!: %% |
| + | * LOL %% LOL %% | ||
| + | * FIXME %% FIXME %% | ||
| + | * DELETEME %% DELETEME %% | ||
| - | ===== Типография ===== | + | ===== Typography ===== |
| - | [[DokuWiki]] может конвертировать простые текстовые символы в их типографически корректные сущности. Это примеры опознаваемых символов. | + | [[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. |
| -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
| - | "Он подумал 'Это мужской мир'..." | + | "He thought 'It's a man's world'..." |
| <code> | <code> | ||
| -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
| - | "Он подумал 'Это мужской мир'..." | + | "He thought 'It's a man's world'..." |
| </code> | </code> | ||
| - | Пожалуйста, учтите: Эта замена может быть отключена в файле конфигурации. | + | Please note: These conversions can be turned off in the config file. |
| - | ===== Таблицы ===== | + | ===== Quoting ===== |
| - | DokuWiki поддерживает синтаксис для создания таблиц. | + | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: |
| - | ^ Заголовок 1 ^ Заголовок 2 ^ Заголовок 3 ^ | + | I think we should do it |
| - | | Строка 1 Столбец 1 | Строка 1 Столбец 2 | Строка 1 Столбец 3 | | + | |
| - | | Строка 2 Столбец 1 | двойной столбец || | + | > No we shouldn't |
| - | | Строка 3 Столбец 1 | Строка 2 Столбец 2 | Строка 2 Столбец 3 | | + | |
| + | >> Well, I say we should | ||
| + | |||
| + | > Really? | ||
| + | |||
| + | >> Yes! | ||
| + | |||
| + | >>> Then lets do it! | ||
| - | Строки таблицы должны начинаться и заканчиваться символом ''|'' для обычных строк и ''^'' для заголовков. | + | I think we should do it |
| - | ^ Заголовок 1 ^ Заголовок 2 ^ Заголовок 3 ^ | + | > No we shouldn't |
| - | | Строка 1 Столбец 1| Строка 1 Столбец 2| Строка 1 Столбец 3| | + | |
| - | | Строка 2 Столбец 1| Объединение столбцов || | + | |
| - | | Строка 3 Столбец 1| Строка 2 Столбец 2| Строка 2 Столбец 3| | + | |
| - | Чтобы объединить горизонтальные ячейки, просто оставьте следующую ячейку пустой как показано выше. Убедитесь, что везде используете равное количество разделителей ячеек! | + | >> Well, I say we should |
| - | Вертикальные заголовки тоже возможны. | + | > Really? |
| - | | ^ Заголовок 1 ^ Заголовок 2 ^ | + | >> Yes! |
| - | ^ Заголовок 3 | Строка 1 Столбец 2 | Строка 1 Столбец 3 | | + | |
| - | ^ Заголовок 4 | Нет объединения столбцов | | | + | |
| - | ^ Заголовок 5 | Строка 2 Столбец 2 | Строка 2 Столбец 3 | | + | |
| - | Как вы видите, здесь есть разделитель ячеек перед ячейкой, что определяется форматированием: | + | >>> Then lets do it! |
| - | | ^ Заголовок 1 ^ Заголовок 2 ^ | + | ===== Tables ===== |
| - | ^ Заголовок 3 | Строка 1 Столбец 2 | Строка 1 Столбец 3 | | + | |
| - | ^ Заголовок 4 | Нет объединения столбцов | | | + | |
| - | ^ Заголовок 5 | Строка 2 Столбец 2 | Строка 2 Столбец 3 | | + | |
| - | Примечание: Объединение вертикальных ячеек невозможно. | + | DokuWiki supports a simple syntax to create tables. |
| - | Вы можете выровнять содержимое таблицы. Добавьте как минимум два пробела на противоположном конце текста: Добавьте минимум два пробела слева для выравнивания по правому краю, минимум два пробела справа для выравнивания по левому краю и минимум по два пробела с обеих сторон для центрирования текста. | + | ^ 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 2 Col 2 | Row 2 Col 3 | | ||
| - | ^ Таблица с выравниванием ^^^ | + | Table rows have to start and end with a ''|'' for normal rows or a ''^'' for headers. |
| - | | справа| по центр |слева | | + | |
| - | |слева | справа| по центру | | + | ^ 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 2 Col 2 | Row 2 Col 3 | | ||
| + | |||
| + | To connect cells horizontally, just make the next cell completely empty as shown above. Be sure to have always the same amount of cell separators! | ||
| + | |||
| + | Vertical tableheaders are possible, too. | ||
| + | |||
| + | | ^ 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: | ||
| + | |||
| + | | ^ 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 | | ||
| + | |||
| + | Note: Vertical spans (rowspan) are not possible. | ||
| + | |||
| + | 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. | ||
| + | |||
| + | ^ Table with alignment ^^^ | ||
| + | | right| center |left | | ||
| + | |left | right| center | | ||
| | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
| - | Вот как это выглядит в исходнике: | + | This is how it looks in the source: |
| - | ^ Таблица с выравниванием ^^^ | + | ^ Table with alignment ^^^ |
| - | | справа| по центру |слева | | + | | right| center |left | |
| - | |слева | справа| по центру | | + | |left | right| center | |
| - | | xxxxxxxxxxxxxx | xxxxxxxxxxxxxxxxx | xxxxxxxxxxxxxxx | | + | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | |
| - | ===== Неформатированые блоки ===== | + | ===== Nonparsed Blocks ===== |
| - | Вы можете включить неформатированые блоки в ваш документ предваряя их как минимум двумя пробелами (как в предыдущих примерах) или используя тэги ''code'' и ''file''. | + | You can include non parsed blocks into your documents by either indenting them by at least two spaces (like used for the previous examples) or by using the tags ''code'' or ''file''. |
| <code> | <code> | ||
| - | Это преформатированый код, все пробелы сохранены <-здесь | + | This is preformatted code all spaces are preserved: like <-this |
| </code> | </code> | ||
| <file> | <file> | ||
| - | Это почти то же самое, но вы можете показать, что цитируете файл. | + | This is pretty much the same, but you could use it to show that you quoted a file. |
| </file> | </file> | ||
| - | Чтобы указать Wiki игнорировать всю область полностью (т.е. не форматировать её), окружите область тэгами ''nowiki'' или даже проще, двойными знаками процента ''<nowiki>%%</nowiki>''. | + | To let the parser ignore an area completely (ie. do no formatting on it), enclose the area either with ''nowiki'' tags or even simpler, with double percent signs ''<nowiki>%%</nowiki>''. |
| <nowiki> | <nowiki> | ||
| - | Это текст, в котором есть адрес: http://www.splitbrain.org и **форматирование**, но с ним ничего не произошло. | + | This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it. |
| </nowiki> | </nowiki> | ||
| - | Смотрите исходный код страницы, чтобы увидеть, как использовать эти блоки | + | See the source of this page to see how to use these blocks. |
| - | ===== Подсветка синтаксиса ===== | + | ===== Syntax Highlighting ===== |
| - | [[DokuWiki]] может "подсвечивать" исходные коды, что делает их более удобными для чтения. [[DokuWiki]] использует для этого [[http://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- то есть, поддерживается подсветка любого языка, поддерживаемого GeSHi. Для подсветки синтаксиса используется тег ''code'' с указанием строки, идентифицирующей язык. Например: ''<nowiki><code java></nowiki>''. | + | [[DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- so any language supported by GeSHi is supported. The syntax is the same like in the code block in the previous section, but this time the name of the used language is inserted inside the tag. Eg. ''<nowiki><code php|title></nowiki>''. |
| - | <code java> | + | <code php|Example Code> |
| /** | /** | ||
| * The HelloWorldApp class implements an application that | * The HelloWorldApp class implements an application that | ||
| Строка 315: | Строка 337: | ||
| </code> | </code> | ||
| - | В настоящее время поддерживаются следующие строки, идентифицирующие языки: //actionscript, ada, apache, asm, asp, bash, caddcl, cadlisp, c, c_mac, cpp, csharp, css, delphi, html4strict, java, javascript, lisp, lua, nsis, objc, oobas, pascal, perl, php-brief, php, python, qbasic, smarty, sql, vb, vbnet, visualfoxpro, xml// | + | The following language strings are currently recognized: //actionscript, actionscript-french, ada, apache, applescript, asm, asp, bash, caddcl, cadlisp, c, c_mac, cpp, csharp, css, delphi, diff, d, div, dos, eiffel, freebasic, gml, html4strict, ini, inno, java, javascript, lisp, lua, matlab, mpasm, nsis, objc, ocaml, ocaml-brief, oobas, oracle8, pascal, perl, php-brief, php, python, qbasic, scheme, sdlbasic, smarty, sql, ruby, vb, vbnet, vhdl, visualfoxpro, xml// |
| - | ===== Внедрение HTML и PHP ===== | + | ===== Embedding HTML and PHP ===== |
| - | Вы можете внедрять код HTML или PHP в Ваши документы, используя теги ''html'' или ''php'' примерно так: | + | You can embed raw HTML or PHP code into your documents by using the ''html'' or ''php'' tags like this: |
| <code> | <code> | ||
| <html> | <html> | ||
| Строка 342: | Строка 364: | ||
| </php> | </php> | ||
| - | **Обратите внимание**: Внедрение HTML и PHP запрещено конфигурацией по умолчанию. Если внедрение кода HTML и PHP запрещено, код просто отображается вместо выполнения. | + | **Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed. |
| + | |||
| + | ===== Syntax Plugins ===== | ||
| + | |||
| + | DokuWiki's syntax can be extended by [[doku>wiki:plugins|Plugins]]. How the installed plugins are used is described on their appropriate description pages. The following syntax plugins are available in this particular DokuWiki installation: | ||
| + | Test2 | ||
| + | ~~INFO:syntaxplugins~~ | ||
| + | |||
| + | {{changelog}} | ||