Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
wiki:syntax [2023/12/27 04:00] – admin | wiki:syntax [2024/02/28 00:50] (текущий) – внешнее изменение 127.0.0.1 | ||
---|---|---|---|
Строка 1: | Строка 1: | ||
- | ====== | + | ====== |
- | Инструкция по созданию страниц - [[wiki:Создание страниц|здесь]]. | + | [[doku> |
- | «Докувики» поддерживает простой язык разметки, | + | ===== Basic Text Formatting ===== |
- | ===== Основные конструкции форматирования ===== | + | DokuWiki supports **bold**, //italic//, __underlined__ and '' |
- | «Докувики» поддерживает выделение текста | + | DokuWiki supports |
+ | Of course you can **__//'' | ||
- | <code> | + | You can use <sub>subscript< |
- | «Докувики» поддерживает выделение текста **жирным шрифтом**, | + | |
- | __подчёркнутый текст__ и вывод текста '' | + | |
- | Все эти конструкции можно **__//'' | + | |
- | </ | + | |
- | Также можно использовать | + | You can use <sub>subscript</ |
- | <code> | + | You can mark something as <del>deleted</del> as well. |
- | Также можно использовать < | + | |
- | </ | + | |
- | Ещё можно | + | You can mark something as <del>deleted</ |
- | < | + | **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 |
- | < | + | You should use forced newlines only if really needed. |
- | что два обратных слэша действуют только в конце строки\\ | + | |
- | или если за ними стоит\\ пробел. Если его не поставить, | + | |
- | </ | + | |
- | Принудительные переносы следует использовать только в случае крайней необходимости. | + | ===== Links ===== |
- | ===== Ссылки ===== | + | DokuWiki supports multiple ways of creating links. |
- | Ссылки в «Докувики» бывают разные и создавать их можно тоже по-разному. | + | ==== External ==== |
- | ==== Внешние ==== | + | External links are recognized automagically: |
- | Внешние ссылки распознаются автоматически: http:// | + | DokuWiki supports multiple ways of creating links. External links are recognized |
- | просто | + | automagically: http:// |
- | [[http:// | + | link text as well: [[http:// |
- | тоже распознаются: < | + | |
- | < | + | ==== Internal ==== |
- | просто www.google.com --- также можно указывать текст ссылки: | + | |
- | [[http:// | + | |
- | тоже распознаются: | + | |
- | ==== Внутренние ==== | + | 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 |
- | Можно либо просто указать | + | |
- | дополнительно прописать | + | |
- | вики-статей автоматически | + | |
- | спецсимволы использовать нельзя. | + | |
- | < | + | [[doku>pagename|Wiki pagenames]] are converted to lowercase automatically, special characters are not allowed. |
- | Можно либо просто указать | + | |
- | дополнительно прописать [[ru:pagename|текст ссылки]]. Имена | + | |
- | вики-статей автоматически | + | |
- | спецсимволы использовать нельзя.</ | + | |
- | Можно использовать в ссылке | + | You can use [[some: |
- | < | + | You can use [[some: |
- | Ставить ссылки на определённый раздел тоже можно. Просто добавьте через решётку (#) имя раздела, | + | For details about namespaces see [[doku> |
- | < | + | 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#internal|this Section]]. |
- | Примечания: | + | This links to [[syntax# |
- | * Ссылки на [[ru:wiki: | + | Notes: |
- | * «Докувики» по умолчанию не использует [[wp> | + | |
- | * Если меняется название раздела, | + | |
- | * Ссылки на разделы делаются именно на [[# | + | |
- | ==== Интервики ==== | + | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. |
+ | * DokuWiki does not use [[wp> | ||
+ | * When a section' | ||
- | «Докувики» поддерживает [[ru: | + | ==== Interwiki ==== |
- | на другие вики. Например, | + | |
- | < | + | DokuWiki supports |
- | на другие вики. Например, | + | |
- | </ | + | |
- | ==== Сетевые ресурсы Windows ==== | + | DokuWiki supports [[doku> |
+ | For example this is a link to Wikipedia' | ||
- | Ссылки на сетевые ресурсы вида \\server\share тоже распознаются. Однако учтите, | + | ==== 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 [[wp>Intranet]]. |
- | Примечания: | + | Windows Shares like [[\\server\share|this]] are recognized, too. |
- | * Из соображений безопасности непосредственный просмотр сетевых ресурсов работает по умолчанию только в Internet Explorer (и только в «локальной зоне»). | + | Notes: |
- | * В браузерах Mozilla эту возможность можно включить с помощью опции [[http:// | + | |
- | * Подробней читайте здесь: [[bug> | + | |
- | ==== Картинки-ссылки | + | * 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[' | ||
+ | </ | ||
+ | |||
+ | ==== 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: | + | [[http:// |
- | Учтите: форматирование картинок --- это единственная синтаксическая конструкция, | + | Please note: The image formatting is the only formatting syntax accepted in link names. |
- | ==== Сноски ==== | + | The whole [[# |
- | С помощью двойных скобок можно добавить сноску((Сноска — помещаемые внизу страницы примечание, | + | ===== Footnotes ===== |
- | < | + | You can add footnotes |
- | помещаемые внизу страницы примечание, | + | |
- | ===== Разбивка на разделы ===== | + | You can add footnotes ((This is a footnote)) by using double parentheses. |
- | Для структурирования текста можно использовать до пяти уровней заголовков. Если в тексте больше трёх заголовков, | + | ===== 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 ''< | ||
- | ==== Заголовок | + | ==== Headline Level 3 ==== |
- | === Заголовок | + | === Headline Level 4 === |
- | == Заголовок | + | == Headline Level 5 == |
- | < | + | |
- | === Заголовок | + | === Headline Level 4 === |
- | == Заголовок | + | == Headline Level 5 == |
- | Четыре и более тире преобразуются в горизонтальную черту: | + | By using four or more dashes, you can make a horizontal line: |
---- | ---- | ||
- | ===== Картинки и другие файлы | + | ===== Media Files ===== |
- | См. также: «[[ru:images|Работа с изображениями и медиафайлами]]». | + | You can include external and internal |
- | С помощью фигурных скобок можно вставлять в текст внешние и внутренние [[ru:images|картинки]]. По желанию можно указать их размер. | + | Real size: |
- | Нормальный размер: {{wiki: | + | Resize to given width: {{wiki: |
- | Отмасштабированная до заданной ширины: {{wiki: | + | Resize to given width and height((when the aspect ratio of the given width and height doesn' |
- | Отмасштабированная до заданных размеров: {{wiki:dokuwiki-128.png?200x50}} | + | Resized external image: {{https://www.php.net/ |
- | Отмасштабированная внешняя картинка: {{http://de3.php.net/ | + | Real size: {{wiki: |
+ | Resize to given width: | ||
+ | Resize to given width and height: {{wiki: | ||
+ | Resized external image: {{https://www.php.net/ | ||
- | < | ||
- | Нормальный размер: | ||
- | Отмасштабированная до заданной ширины: | ||
- | Отмасштабированная до заданных размеров: | ||
- | Отмасштабированная внешняя картинка: | ||
- | </ | ||
- | Поставив слева или справа пробел, | + | By using left or right whitespaces you can choose the alignment. |
+ | |||
+ | {{ wiki:dokuwiki-128.png}} | ||
{{wiki: | {{wiki: | ||
- | {{ wiki: | + | |
{{ wiki: | {{ wiki: | ||
- | < | + | |
- | {{ 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. |
- | * Второй элемент списка | + | |
- | * Можно сделать вложенный список | + | |
- | * Ещё один элемент | + | |
- | - Тот же список, | + | By adding ''? |
- | - Ещё элемент | + | |
- | - Чем больше пробелов в начале, | + | |
- | - Всё просто | + | |
- | < | + | {{wiki: |
- | * Первый элемент маркированного списка | + | |
- | * Второй элемент списка | + | |
- | * Можно сделать вложенный список | + | |
- | * Ещё один элемент | + | |
- | | + | {{wiki: |
- | - Ещё элемент | + | |
- | - Чем больше пробелов в начале, | + | |
- | - Всё просто | + | |
- | </ | + | |
- | См. также [[ru: | + | ==== 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-O %%8-O%% | + | |
- | * :-( %%:-(%% | + | |
- | * :-) %%:-)%% | + | |
- | * =) %%=)%% | + | |
- | * :-/ %%:-/%% | + | |
- | * :-\ %%:-\%% | + | |
- | * :-? %%:-?%% | + | |
- | * :-D %%:-D%% | + | |
- | * :-P %%:-P%% | + | |
- | * :-O %%:-O%% | + | |
- | * :-X %%:-X%% | + | |
- | * :-| %%:-|%% | + | |
- | * ;-) %%;-)%% | + | |
- | * ^_^ %%^_^%% | + | |
- | * :?: %%:?:%% | + | |
- | * :!: %%:!:%% | + | |
- | * LOL %%LOL%% | + | |
- | * FIXME %%FIXME%% | + | |
- | * DELETEME %%DELETEME%% | + | |
- | ===== Типографские символы ===== | + | When you upload a '' |
- | «Докувики» может переделывать символы, | + | Additionally DokuWiki supports a " |
- | -> <- < | + | ===== Lists ===== |
- | " | + | |
+ | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' | ||
+ | |||
+ | * This is a list | ||
+ | * The second item | ||
+ | * You may have different levels | ||
+ | * Another item | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | - That's it | ||
< | < | ||
- | -> <- <-> => <= <=> >> << -- --- '640x480' | + | * This is a list |
- | " | + | * The second item |
+ | * You may have different levels | ||
+ | * Another item | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
</ | </ | ||
- | Примечание: | + | 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 | | + | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) |
- | ^ Заголовок 4 | Объединения нет | + | "He thought ' |
- | ^ Заголовок 5 | Ряд 2 Колонка 2 | Ряд 2 Колонка 3 | | + | </ |
- | Можно сделать вертикально объединённые ячейки добавлением трёх двоеточий '':::'' | + | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku> |
- | ^ Заголовок 1 ^ Заголовок 2 ^ Заголовок 3 ^ | + | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), ' |
- | | Ряд 1 Колонка 1 | эта ячейка объединена вертикально | + | |
- | | Ряд 2 Колонка 1 | ::: | Ряд 2 Колонка 3 | | + | |
- | | Ряд 3 Колонка 1 | ::: | Ряд 2 Колонка 3 | + | |
- | В этих ячейках не должно быть ничего, | + | ===== Quoting ===== |
- | ^ Заголовок 1 ^ Заголовок 2 ^ Заголовок 3 ^ | + | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: |
- | | Ряд 1 Колонка 1 | эта ячейка объединена вертикально | Ряд 1 Колонка 3 | | + | |
- | | Ряд 2 Колонка 1 | ::: | Ряд 2 Колонка 3 | | + | |
- | | Ряд 3 Колонка 1 | ::: | Ряд 2 Колонка 3 | | + | |
- | Текст клетки таблицы можно выравнивать. Просто добавьте минимум два пробела с противоположной стороны: | + | < |
+ | I think we should do it | ||
- | ^ | + | > No we shouldn' |
- | | вправо| | + | |
- | |влево | + | |
- | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | + | |
- | ^ | + | >> Well, I say we should |
- | | вправо| | + | |
- | |влево | + | |
- | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | + | |
- | Примечание: | + | > Really? |
- | ===== Скрыть часть текста ===== | + | >> Yes! |
- | Если вы хотите сделать дополнительный текст скрытым по умолчанию, | + | >>> |
+ | </ | ||
- | **Строковый** | + | I think we should do it |
- | Вот пример ++текста|, | + | > No we shouldn' |
- | продолжается в том же абзаце. | + | |
- | + | ||
- | Вот пример ++текста|, | + | |
- | продолжается в том же абзаце. | + | |
- | ===== Неформатируемые блоки ===== | + | >> Well, I say we should |
- | Неформатируемые блоки можно вставлять в документ, | + | > Really? |
- | <code>Это неформатированный текст, в котором сохранены все пробелы: | + | >> |
- | <file>В принципе то же самое, но этим выделением можно показать, | + | >>> Then lets do it! |
- | Чтобы парсер полностью проигнорировал некий текст (т. е. не форматировал его), либо заключите его в тэги '' | + | ===== Tables ===== |
- | Это просто текст, в котором есть адрес %%http:// | + | 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 3 Col 2 | Row 3 Col 3 | | ||
- | Чтобы увидеть, | + | Table rows have to start and end with a '' |
- | ===== Подсветка синтаксиса ===== | + | ^ 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 | | ||
- | «Докувики» может подсвечивать программный код, чтобы его было проще читать. Для этого используется библиотека [[http:// | + | 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! |
- | <code java> | + | Vertical tableheaders are possible, too. |
- | /** | + | |
- | * The HelloWorldApp class implements an application that | + | |
- | * simply displays "Hello World!" | + | |
- | */ | + | |
- | class HelloWorldApp { | + | |
- | public static void main(String[] args) { | + | |
- | System.out.println(" | + | |
- | } | + | |
- | } | + | |
- | </ | + | |
- | На данный момент распознаются следующие языки: 4cs, 6502acme, | + | | ^ 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 | | ||
- | < | + | You can have rowspans (vertically connected cells) by adding '' |
- | <file php myexample.php> | + | |
- | <?php echo "hello world!"; | + | |
- | </ | + | |
- | </ | + | |
- | <file php myexample.php> | + | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ |
- | <?php echo "hello world!"; | + | | 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 | | ||
- | Если вам не нужна подсветка, | + | Apart from the rowspan syntax those cells should not contain anything else. |
- | **Особенность: | + | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ |
- | <file php " | + | | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | |
- | <?php echo "hello world!"; | + | | Row 2 Col 1 | ::: | Row 2 Col 3 | |
- | </ | + | | Row 3 Col 1 | ::: | Row 2 Col 3 | |
- | ===== Вставка HTML и PHP ===== | + | 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. |
- | Чистый HTML- или PHP-код можно вставлять в документ с помощью тэгов '' | + | ^ Table with alignment |
+ | | | ||
+ | |left | | ||
+ | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
- | <code html> | + | This is how it looks in the source: |
- | < | + | |
- | Тут вставлен <font color=" | + | |
- | </ | + | |
- | < | + | ^ Table with alignment |
- | <p style=" | + | |
- | </ | + | |
- | </ | + | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | |
- | Получается: | + | Note: Vertical alignment is not supported. |
- | < | + | ===== No Formatting ===== |
- | Тут вставлен <font color=" | + | |
- | </ | + | |
- | <HTML> | + | If you need to display text exactly like it is typed (without any formatting), |
- | <p style=" | + | |
- | </HTML> | + | |
- | ---- | + | < |
+ | This is some text which contains addresses like this: http:// | ||
+ | </ | ||
+ | The same is true for %%// | ||
- | <code> | + | |
- | < | + | This is some text which contains addresses like this: http:// |
- | echo ' | + | </nowiki> |
- | echo phpversion(); | + | The same is true for %%// |
- | echo ' (прямая вставка в HTML).'; | + | |
- | </php> | + | |
- | < | + | ===== Code Blocks ===== |
- | echo '< | + | |
- | echo '< | + | |
- | echo '</ | + | |
- | </ | + | |
- | </ | + | |
- | Получается: | + | 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 '' |
- | < | + | This is text is indented by two spaces. |
- | echo ' | + | |
- | echo phpversion(); | + | |
- | echo ' (прямая вставка в HTML).'; | + | |
- | </ | + | |
- | <PHP> | + | <code> |
- | echo '< | + | This is preformatted code all spaces are preserved: like |
- | echo '< | + | </code> |
- | echo '</ | + | |
- | </PHP> | + | |
- | **Примечание: | + | < |
+ | This is pretty much the same, but you could use it to show that you quoted a file. | ||
+ | </ | ||
- | ===== RSS/ATOM Feed Aggregation ===== | + | Those blocks were created by this source: |
- | ===== Агрегация каналов RSS/ATOM ===== | + | This is text is indented by two spaces. |
- | Докувики может интегрировать данные из внешних XML-каналов. Для анализа XML-каналов, | + | < |
+ | This is preformatted code all spaces are preserved: like <-this | ||
+ | </code> | ||
- | ^ Параметр | + | < |
- | | any number | Отображается максимальное количество элиментов, по умолчанию 8 | | + | This is pretty much the same, but you could use it to show that you quoted a file. |
- | | reverse | + | </file> |
- | | author | + | |
- | | date | Показывать даты элиментов | | + | |
- | | description| Покажите описание элиментов. Если HTML отключен, | + | |
- | | nosort | + | |
- | | //n//[dhm] | Период обновления, | + | |
- | Период обновления по умолчанию равен 4 часам. Любое значение ниже 10 минут будет рассматриваться как 10 минут. Докувики обычно пытается предоставить кэшированную версию страницы, | + | ==== Syntax Highlighting ==== |
- | По умолчанию лента будет отсортирована по дате, сначала по самым новым элементам. Вы можете сначала отсортировать его по возрасту, используя параметр " | + | [[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(" | ||
+ | } | ||
+ | } | ||
+ | </ | ||
- | {{rss> | + | 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// |
- | {{rss>http:// | + | There are additional [[doku>syntax_highlighting|advanced options]] available for syntax highlighting, |
- | ===== Управляющие макросы ===== | + | |
- | Некоторый синтаксис влияет на то, как «Докувики» обрабатывает статьи без создания каких-либо результатов для себя. Доступны следующие макросы: | + | ==== Downloadable Code Blocks ==== |
- | ^ Макрос | + | When you use the '' |
- | | %%~~NOTOC~~%% | Если этот макрос присутствует в статье, | + | |
- | | %%~~NOCACHE~~%% | «Докувики» помещает всё выводимое в кэш по умолчанию. Иногда это нежелательно (например, | + | |
- | ===== Синтаксические плагины ===== | + | < |
+ | <file php myexample.php> | ||
+ | <?php echo "hello world!"; | ||
+ | </ | ||
+ | </ | ||
- | Синтаксис «Докувики» может быть расширен за счёт [[ru: | + | <file php myexample.php> |
+ | <?php echo "hello world!"; | ||
+ | </ | ||
- | ~~INFO:syntaxplugins~~ | + | If you don't want any highlighting but want a downloadable file, specify a dash ('' |
- | ===== Добавление схем на страницу | + | ===== RSS/ATOM Feed Aggregation |
+ | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// | ||
- | Для добавления и редактирования схем в нашей системе установлен специальный плагин Drawio. | + | ^ 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). | | ||
- | Для того, чтобы добавить схему на страницу необходимо в режиме редактирования на панели инструментов нажать на кнопку добавления схем и тогда в редакторе в выбранном месте появится специальная ссылка на файл: | + | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki: |
- | {{: | + | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' |
- | Если вы собираетесь создать новую схему, то название файла необходимо поменять (там где " | + | **Example: |
- | Далее, для того чтобы создать схему необходимо сохранить страницу (при этом вы попадете на саму страницу уже не в режиме редактирования) и кликнуть левой кнопкой мыши на изображении плагина, | + | {{rss> |
- | {{:wiki: | + | {{rss>http:// |
- | (Если после сохранения страницы, | ||
- | В результате клика на иконку плагина на странице откроется редактор схем, где вы сможете составить любую схему, после чего в правом верхнем углу нужно нажать кнопку " | + | ===== Control Macros ===== |
- | {{:wiki: | + | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: |
- | После этого схема будет подгружена на страницу: | + | ^ Macro ^ Description | |
+ | | %%~~NOTOC~~%% | ||
+ | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | ||
- | {{: | + | ===== Syntax Plugins ===== |
- | Чтобы ее отредактировать нужно так же нажать на нее левой кнопкой мыши. | + | DokuWiki' |
- | Краткая видео-инструкция по добавлению схем на страницу: | + | ~~INFO:syntaxplugins~~ |
- | {{ : |