Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия Следующая версия Следующая версия справа и слева | ||
wiki:syntax [2021/01/29 04:44] 62.210.188.222 старая версия восстановлена (2020/11/20 00:08) |
wiki:syntax [2021/06/19 23:55] 62.210.149.60 старая версия восстановлена (2014/11/30 20:26) |
||
---|---|---|---|
Строка 1: | Строка 1: | ||
- | ====== | + | ====== |
- | «Докувики» поддерживает простой язык разметки, который по возможности сохраняет файлы данных как можно более читабельными. Здесь перечислены все возможные синтаксические конструкции, | + | [[doku> |
- | ===== Основные конструкции форматирования | + | ===== Basic Text Formatting |
- | «Докувики» поддерживает выделение текста | + | DokuWiki supports |
- | < | + | DokuWiki supports |
- | «Докувики» поддерживает выделение текста | + | Of course you can **__//'' |
- | __подчёркнутый текст__ и вывод текста | + | |
- | Все эти конструкции можно | + | |
- | </ | + | |
- | Также можно использовать | + | You can use <sub>subscript</ |
- | < | + | You can use <sub>subscript</ |
- | Также можно использовать | + | |
- | </ | + | |
- | Ещё можно | + | You can mark something as <del>deleted</ |
- | < | + | 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 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 |
- | Внешние ссылки распознаются автоматически: http:// | + | External links are recognized automagically: http:// |
- | просто | + | |
- | [[http:// | + | |
- | тоже распознаются: < | + | |
- | < | + | DokuWiki supports multiple ways of creating links. External links are recognized |
- | просто | + | automagically: http:// |
- | [[http:// | + | link text as well: [[http:// |
- | тоже распознаются: < | + | |
- | ==== Внутренние | + | ==== Internal |
- | Внутренние ссылки создаются посредством квадратных скобок. | + | Internal links are created by using square brackets. You can either just give a [[pagename]] |
- | Можно либо просто указать | + | |
- | дополнительно прописать | + | |
- | вики-статей автоматически | + | |
- | спецсимволы использовать нельзя. | + | |
- | < | + | Internal links are created by using square brackets. You can either just give |
- | Можно либо просто указать | + | |
- | дополнительно прописать | + | |
- | вики-статей автоматически | + | |
- | спецсимволы использовать нельзя.</ | + | |
- | Можно использовать в ссылке | + | [[doku>pagename|Wiki pagenames]] are converted to lowercase automatically, |
- | < | + | 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# |
- | | + | |
- | * «Докувики» по умолчанию не использует [[wp> | + | |
- | * Если меняется название раздела, | + | |
- | * Ссылки на разделы делаются именно на [[#Разбивка на разделы|разделы]]. | + | |
- | ==== Интервики ==== | + | Notes: |
- | «Докувики» поддерживает | + | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. |
- | на другие вики. Например, | + | * DokuWiki does not use [[wp>CamelCase]] to automatically create links by default, but this behavior can be enabled in the [[doku> |
+ | * When a section' | ||
- | < | + | ==== Interwiki ==== |
- | на другие вики. Например, | + | |
- | </ | + | |
- | ==== Сетевые ресурсы Windows ==== | + | DokuWiki supports [[doku> |
- | Ссылки на сетевые ресурсы вида \\server\share тоже распознаются. Однако учтите, | + | DokuWiki supports [[doku> |
+ | For example this is a link to Wikipedia' | ||
- | < | + | ==== 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> |
- | | + | |
- | * В браузерах Mozilla эту возможность можно включить с помощью опции | + | |
- | * Подробней читайте здесь: [[bug> | + | |
- | ==== Картинки-ссылки ==== | + | Notes: |
- | Совместив синтаксис ссылки и [[# | + | * 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:// | ||
- | < | + | LANG.nosmblinks = ''; |
- | [[http:// | + | ==== Image Links ==== |
- | Учтите: форматирование картинок --- это единственная синтаксическая конструкция, | + | You can also use an image to link to another internal or external page by combining the syntax for links and [[# |
- | ==== Сноски ==== | + | [[http:// |
- | С помощью двойных скобок можно добавить сноску((Сноска — помещаемые внизу страницы примечание, | + | [[http:// |
- | < | + | Please note: The image formatting is the only formatting syntax accepted in link names. |
- | помещаемые внизу страницы примечание, | + | |
- | ===== Разбивка на разделы ===== | + | The whole [[# |
- | Для структурирования текста можно использовать до пяти уровней заголовков. Если в тексте больше трёх заголовков, | + | ===== Footnotes ===== |
- | ==== Заголовок 3-го уровня ==== | + | You can add footnotes ((This is a footnote)) by using double parentheses. |
- | === Заголовок 4-го уровня === | + | |
- | == Заголовок 5-го уровня == | + | |
- | < | + | You can add footnotes ((This is a footnote)) by using double parentheses. |
- | === Заголовок 4-го уровня === | + | |
- | == Заголовок 5-го уровня ==</ | + | |
- | Четыре и более тире преобразуются в горизонтальную черту: | + | ===== 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 |
- | ===== Картинки и другие файлы | + | ==== Headline Level 3 ==== |
+ | === Headline Level 4 === | ||
+ | == Headline Level 5 == | ||
- | См. также: «[[doku> | + | ==== Headline Level 3 ==== |
+ | === Headline Level 4 === | ||
+ | == Headline Level 5 == | ||
- | С помощью фигурных скобок можно вставлять в текст внешние и внутренние [[doku> | + | By using four or more dashes, you can make a horizontal line: |
- | Нормальный размер: | + | ---- |
- | Отмасштабированная до заданной ширины: | + | ===== Media Files ===== |
- | Отмасштабированная до заданных размеров: | + | You can include external and internal [[doku> |
- | Отмасштабированная внешняя картинка: {{http://de3.php.net/ | + | Real size: {{wiki:dokuwiki-128.png}} |
- | < | + | Resize to given width: {{wiki: |
- | Нормальный размер: | + | |
- | Отмасштабированная до заданной ширины: | + | |
- | Отмасштабированная до заданных размеров: | + | |
- | Отмасштабированная внешняя картинка: | + | |
- | </ | + | |
- | Поставив слева или справа пробел, можно задать выравнивание картинки: | + | Resize to given width and height((when the aspect ratio of the given width and height doesn' |
- | {{wiki:dokuwiki-128.png }} | + | Resized external image: |
- | {{ wiki:dokuwiki-128.png}} | + | |
- | {{ wiki: | + | |
- | < | + | Real size: |
- | {{ wiki: | + | |
- | {{ wiki: | + | |
- | </code> | + | |
- | И, конечно, | ||
- | {{ wiki: | + | By using left or right whitespaces you can choose the alignment. |
- | < | + | {{ wiki: |
- | Если задать имя файла (внутреннее или внешнее), | + | {{wiki: |
- | Узнать, | + | {{ wiki: |
- | ==== Галерея картинок ==== | + | {{ wiki: |
+ | {{wiki: | ||
+ | {{ wiki: | ||
- | A basic gallery | + | Of course, you can add a title (displayed as a tooltip by most browsers), too. |
- | | + | {{ wiki:dokuwiki-128.png |This is the caption}} |
- | All image files in the selected namespace will be added to the image gallery. Don't forget | + | {{ wiki: |
- | Instead of using a whole namespace of images, you can also specify a single | + | For linking an image to another page see [[#Image Links]] above. |
- | {{gallery>: | + | ==== Supported Media Formats ==== |
- | The created gallery | + | DokuWiki |
- | {{gallery> | + | | Image | '' |
- | {{gallery> | + | | Video | '' |
- | | + | | Audio | '' |
+ | | Flash | '' | ||
- | Instead of a namespace, you can also give an HTTP(s) URL to any [[wp> | + | If you specify a filename that is not a supported media format, then it will be displayed as a link instead. |
- | {{gallery> | + | ==== Fallback Formats ==== |
- | Note: since the question mark is used to separate the parameters (see next section) the URL can not contain any question mark. To use such a feed URL with the gallery plugin, just use one of the many short URL services like [[http:// | + | Unfortunately |
- | E.g. instead of '' | + | For example consider this embedded mp4 video: |
- | Additionally, | + | {{video.mp4|A funny video}} |
- | ===== Списки ===== | + | 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 | ||
+ | |||
+ | - The same list but ordered | ||
+ | - Another item | ||
+ | - Just use indention for deeper levels | ||
+ | - That's it | ||
< | < | ||
- | * Первый элемент маркированного списка | + | * 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 |
</ | </ | ||
- | См. также | + | Also take a look at the [[doku> |
+ | |||
+ | ===== Text Conversions ===== | ||
+ | |||
+ | DokuWiki can convert certain pre-defined characters or strings into images or other text or HTML. | ||
+ | |||
+ | The text to image conversion is mainly done for smileys. And the text to HTML conversion is used for typography replacements, | ||
- | ===== Смайлики ===== | + | ==== Text to Image Conversions |
- | «Докувики» переделывает наиболее употребляемые смайлики в их графические эквиваленты. Дополнительные смайлики можно положить в директорию '' | + | DokuWiki converts commonly used [[wp> |
- | * 8-) %%8-)%% | + | * 8-) %% 8-) %% |
- | * 8-O %%8-O%% | + | * 8-O %% 8-O %% |
- | * :-( %%:-(%% | + | * :-( %% :-( %% |
- | * :-) %%:-)%% | + | * :-) %% :-) %% |
- | * =) %%=)%% | + | * =) %% =) |
- | * :-/ %%:-/%% | + | * :-/ %% :-/ %% |
- | * :-\ %%:-\%% | + | * :-\ %% :-\ %% |
- | * :-? %%:-?%% | + | * :-? %% :-? %% |
- | * :-D %%:-D%% | + | * :-D %% :-D %% |
- | * :-P %%:-P%% | + | * :-P %% :-P %% |
- | * :-O %%:-O%% | + | * :-O %% :-O %% |
- | * :-X %%:-X%% | + | * :-X %% :-X %% |
- | * :-| %%:-|%% | + | * :-| %% :-| %% |
- | * ;-) %%;-)%% | + | * ;-) %% ;-) %% |
- | * ^_^ %%^_^%% | + | * ^_^ %% ^_^ %% |
- | * :?: %%:?:%% | + | * :?: %% :?: %% |
- | * :!: %%:!:%% | + | * :!: %% :!: %% |
- | * LOL %%LOL%% | + | * LOL %% LOL %% |
- | * FIXME %%FIXME%% | + | * FIXME %% FIXME %% |
- | * DELETEME %%DELETEME%% | + | * DELETEME %% DELETEME %% |
- | ===== Типографские символы ===== | + | ==== Text to HTML Conversions |
- | «Докувики» может переделывать символы, | + | Typography: [[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. |
- | -> <- <-> => <= <=> >> << -- --- '640x480' | + | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) |
- | " | + | "He thought ' |
< | < | ||
- | -> <- <-> => <= <=> >> << -- --- '640x480' | + | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) |
- | " | + | "He thought ' |
</ | </ | ||
- | Примечание: | + | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku> |
- | ===== Таблицы ===== | + | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), ' |
- | «Докувики» поддерживает упрощённый синтаксис создания таблиц. | + | ===== 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 Колонка 2 | Ряд 1 Колонка 3 | | + | |
- | | Ряд 2 Колонка 1 | Объединение колонок (обратите внимание на двойную вертикальную черту) | + | |
- | | Ряд 3 Колонка 1 | Ряд 2 Колонка 2 | Ряд 2 Колонка 3 | | + | |
- | Нормальные ряды должны начинаться и заканчиваться вертикальной чертой --- %%|%%, а заголовки «крышечкой» — %%^%%. | + | I think we should do it |
+ | |||
+ | > No we shouldn' | ||
+ | |||
+ | >> Well, I say we should | ||
+ | |||
+ | > Really? | ||
+ | |||
+ | >> Yes! | ||
+ | |||
+ | >>> | ||
- | ^ Заголовок 1 ^ Заголовок 2 ^ Заголовок 3 ^ | + | I think we should do it |
- | | Ряд 1 Колонка 1 | Ряд 1 Колонка 2 | Ряд 1 Колонка 3 | | + | |
- | | Ряд 2 Колонка 1 | Объединение колонок (обратите внимание на двойную вертикальную черту) | + | |
- | | Ряд 3 Колонка 1 | Ряд 2 Колонка 2 | Ряд 2 Колонка 3 | | + | |
- | Чтобы объединить две соседние клетки в ряду, просто оставьте соседнюю клетку полностью пустой, | + | > No we shouldn' |
- | Вертикальные заголовки тоже можно сделать: | + | >> Well, I say we should |
- | | ^ Заголовок 1 ^ Заголовок 2 ^ | + | > Really? |
- | ^ Заголовок 3 | Ряд 1 Колонка 2 | Ряд 1 Колонка 3 | | + | |
- | ^ Заголовок 4 | Объединения нет | + | |
- | ^ Заголовок 5 | Ряд 2 Колонка 2 | Ряд 2 Колонка 3 | | + | |
- | Как легко увидеть, | + | >> Yes! |
- | | ^ Заголовок 1 ^ Заголовок 2 ^ | + | >>> |
- | ^ Заголовок 3 | Ряд 1 Колонка 2 | Ряд 1 Колонка 3 | | + | |
- | ^ Заголовок 4 | Объединения нет | + | |
- | ^ Заголовок 5 | Ряд 2 Колонка 2 | Ряд 2 Колонка 3 | | + | |
- | Можно сделать вертикально объединённые ячейки добавлением трёх двоеточий '':::'' | + | ===== Tables ===== |
- | ^ Заголовок 1 ^ Заголовок 2 ^ Заголовок 3 ^ | + | DokuWiki supports a simple syntax to create tables. |
- | | Ряд 1 Колонка 1 | эта ячейка объединена вертикально | Ряд 1 Колонка 3 | | + | |
- | | Ряд 2 Колонка 1 | ::: | Ряд 2 Колонка 3 | | + | |
- | | Ряд 3 Колонка 1 | ::: | Ряд 2 Колонка 3 | | + | |
- | В этих ячейках не должно быть ничего, | + | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ |
+ | | 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 | | ||
- | | + | Table rows have to start and end with a '' |
- | | Ряд 1 Колонка 1 | эта ячейка объединена вертикально | Ряд 1 Колонка 3 | | + | |
- | | Ряд 2 Колонка 1 | ::: | Ряд 2 Колонка 3 | | + | |
- | | Ряд 3 Колонка 1 | ::: | Ряд 2 Колонка 3 | | + | |
- | Текст клетки таблицы можно выравнивать. Просто добавьте минимум два пробела с противоположной стороны: | + | ^ 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 | | ||
- | ^ Таблица с выравниванием | + | To connect cells horizontally, |
- | | | + | |
- | |влево | + | Vertical tableheaders are possible, too. |
+ | |||
+ | | | ||
+ | ^ 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 | ||
+ | ^ Heading 4 | ||
+ | ^ Heading 5 | ||
+ | |||
+ | You can have rowspans (vertically connected cells) by adding '':::'' | ||
+ | |||
+ | ^ 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 | | ||
+ | |||
+ | Apart from the rowspan syntax those cells should not contain anything else. | ||
+ | |||
+ | ^ 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. | ||
+ | |||
+ | ^ Table with alignment | ||
+ | | | ||
+ | |left | | ||
| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
- | | + | This is how it looks in the source: |
- | | | + | |
- | |влево | + | |
+ | | right| | ||
+ | |left | | ||
| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
- | Примечание: вертикальное выравнивание не поддерживается. | + | Note: Vertical alignment is not supported. |
- | ===== Неформатируемые блоки | + | ===== No Formatting |
- | Неформатируемые блоки можно вставлять в документ, | + | If you need to display text exactly like it is typed (without any formatting), enclose the area either with '' |
- | <code>Это неформатированный текст, в котором сохранены все пробелы: вот | + | <nowiki> |
+ | This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, | ||
+ | </nowiki> | ||
+ | The same is true for %%// | ||
- | <file>В принципе то же самое, но этим выделением можно показать, | + | |
+ | This is some text which contains addresses like this: http:// | ||
+ | | ||
+ | The same is true for %%// | ||
- | Чтобы парсер полностью проигнорировал некий текст (т. е. не форматировал его), либо заключите его в тэги '' | + | ===== Code Blocks ===== |
- | Это просто текст, в котором есть адрес | + | 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. |
- | и %%**форматирование**%% --- но ничего не происходит.</ | + | |
- | Чтобы увидеть, как используются эти блоки, смотрите код статьи. | + | < |
+ | This is preformatted code all spaces are preserved: like <-this | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | This is pretty much the same, but you could use it to show that you quoted a file. | ||
+ | </ | ||
+ | |||
+ | Those blocks were created by this source: | ||
+ | |||
+ | This is text is indented by two spaces. | ||
+ | |||
+ | < | ||
+ | This is preformatted code all spaces are preserved: like <-this | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | This is pretty much the same, but you could use it to show that you quoted a file. | ||
+ | </ | ||
- | ===== Подсветка синтаксиса ===== | + | ==== Syntax Highlighting |
- | «Докувики» может подсвечивать программный код, чтобы его было проще читать. Для этого используется библиотека | + | [[wiki: |
<code java> | <code java> | ||
- | /** | + | /** |
* The HelloWorldApp class implements an application that | * The HelloWorldApp class implements an application that | ||
* simply displays "Hello World!" | * simply displays "Hello World!" | ||
Строка 368: | Строка 404: | ||
</ | </ | ||
- | На данный момент распознаются следующие языки: 4cs;, **a**bap, actionscript-french, | + | The following language strings are currently recognized: //4cs, 6502acme, 6502kickass, |
- | ==== Скачиваемые блоки кода | + | ==== Downloadable Code Blocks |
- | Используя тэги | + | When you use the '' |
< | < | ||
Строка 384: | Строка 420: | ||
</ | </ | ||
- | Если вам не нужна подсветка, | + | If you don't want any highlighting but want a downloadable file, specify a dash ('' |
- | **Особенность: | ||
- | <file php " | ||
- | <?php echo "hello world!"; | ||
- | </ | ||
+ | ===== Embedding HTML and PHP ===== | ||
- | ===== Управляющие макросы ===== | + | You can embed raw HTML or PHP code into your documents by using the '' |
- | Некоторый синтаксис влияет на то, как «Докувики» обрабатывает статьи без создания каких-либо результатов для себя. Доступны следующие макросы: | + | HTML example: |
- | ^ Макрос | + | < |
- | | %%~~NOTOC~~%% | + | < |
- | | %%~~NOCACHE~~%% | «Докувики» помещает всё выводимое в кэш по умолчанию. Иногда это нежелательно (например, | + | This is some <span style=" |
+ | </ | ||
+ | < | ||
+ | <p style=" | ||
+ | </ | ||
+ | </code> | ||
- | ===== Синтаксические плагины ===== | + | < |
+ | This is some <span style=" | ||
+ | </ | ||
+ | < | ||
+ | <p style=" | ||
+ | </ | ||
- | Синтаксис «Докувики» может быть расширен за счёт [[doku> | + | PHP example: |
- | ~~INFO:syntaxplugins~~ | + | < |
+ | < | ||
+ | echo 'The PHP version: '; | ||
+ | echo phpversion(); | ||
+ | echo ' (generated inline HTML)'; | ||
+ | </ | ||
+ | < | ||
+ | echo '< | ||
+ | echo '< | ||
+ | echo '</ | ||
+ | </ | ||
+ | </ | ||
- | ===== NSPages | + | < |
+ | echo 'The PHP version: '; | ||
+ | echo phpversion(); | ||
+ | echo ' (inline HTML)'; | ||
+ | </ | ||
+ | < | ||
+ | echo '< | ||
+ | echo '< | ||
+ | echo '</ | ||
+ | </ | ||
+ | |||
+ | **Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed. | ||
+ | |||
+ | ===== RSS/ATOM Feed Aggregation | ||
+ | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// | ||
+ | |||
+ | ^ 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. If [[doku> | ||
+ | | //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: | ||
+ | |||
+ | **Example: | ||
+ | |||
+ | {{rss> | ||
+ | |||
+ | {{rss> | ||
+ | |||
+ | |||
+ | ===== Control Macros ===== | ||
+ | |||
+ | 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: | ||
- | **NSPages** -- плагин для создания удобного сортированного списка страниц в [[doku> |