Показаны различия между двумя версиями страницы.
| Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
|
beget:dokuwiki:syntax [2020/10/15 15:13] Николай Солошин |
beget:dokuwiki:syntax [2022/02/12 11:40] (текущий) |
||
|---|---|---|---|
| Строка 1: | Строка 1: | ||
| ====== Синтаксис форматирования ====== | ====== Синтаксис форматирования ====== | ||
| - | Шпаргалка по синтаксису. | + | Шпаргалка по синтаксису. |
| - | ===== Основные конструкции форматирования | + | ===== DokuWiki |
| - | «Докувики» поддерживает выделение текста **жирным шрифтом**, | + | [[https:// |
| - | < | + | ===== Cloud Plugin ===== |
| - | «Докувики» поддерживает выделение текста **жирным шрифтом**, | + | |
| - | __подчёркнутый текст__ и вывод текста '' | + | |
| - | Все эти конструкции можно **__//'' | + | |
| - | </ | + | |
| - | Также можно использовать < | + | This is a very simple plugin that shows a cloud of the most frequently used words in your wiki: |
| - | < | + | ~~CLOUD~~ |
| - | Также можно использовать < | + | |
| - | </ | + | |
| - | Ещё можно < | + | Optionally you can specify the number of words to display. Default is 50. Allowed are numbers between 1 and 999. Each of the words is linked to the search result page for it. The words are styled in a way that more frequent words are bigger and have a darker link color. |
| - | <code> | + | You can exclude words from the word cloud by adding them each on its own line to '' |
| - | Ещё можно < | + | |
| - | </code> | + | |
| - | **Абзацы** отбиваются пустой строкой. Если нужно **принудительно вставить перенос строки**, | + | This plugin can also make a "tag cloud" now! ([[plugin: |
| - | Просто текст с разрывом строк\\ Обратите внимание, | + | ~~TAGCLOUD~~ |
| - | что два обратных слэша действуют только в конце строки\\ | + | |
| - | или если за ними стоит\\ пробел. Если его не поставить, | + | |
| - | < | + | It also supports clouds for the most searched words in the wiki ([[plugin: |
| - | что два обратных слэша действуют только в конце строки\\ | + | |
| - | или если за ними стоит\\ пробел. Если его не поставить, | + | |
| - | </ | + | |
| - | Принудительные переносы следует использовать только в случае крайней необходимости. | + | ~~SEARCHCLOUD~~ |
| + | ~~SEARCHCLOUD: | ||
| - | ===== Ссылки ===== | + | Since release 2017-08-05 the number of occurrences can also be output by adding the '' |
| - | Ссылки в «Докувики» бывают разные и создавать их можно тоже по-разному. | + | ~~CLOUD[showCount]~~ |
| - | ==== Внешние | + | ===== Comment Syntax Plugin ===== |
| - | Внешние ссылки распознаются автоматически: | + | ==== 1. ' |
| - | просто www.google.com | + | ' |
| - | [[http:// | + | |
| - | тоже распознаются: < | + | |
| - | < | + | |
| - | просто www.google.com --- также можно указывать текст ссылки: | + | |
| - | [[http:// | + | |
| - | тоже распознаются: | + | |
| - | ==== Внутренние ==== | + | /* This is |
| + | a multi-line | ||
| + | comment */ | ||
| - | Внутренние ссылки создаются посредством квадратных скобок. | + | The **comment syntax** mode has priority to list block mode. You may comment-out some list item without breaking the whole list structure. |
| - | Можно либо просто указать [[ru: | + | |
| - | дополнительно прописать [[ru: | + | |
| - | вики-статей автоматически | + | |
| - | спецсимволы использовать нельзя. | + | |
| - | <code>Внутренние ссылки создаются посредством квадратных скобок. | + | <file> |
| - | Можно либо просто указать [[ru: | + | - item 1 /* A white space is necessary before comment-start markup */ |
| - | дополнительно прописать [[ru: | + | /*- item 2 will be eliminated from this list without breaking it */ |
| - | вики-статей автоматически | + | - item 3 /* will be numbered as 2 in the list */ |
| - | спецсимволы использовать нельзя.</code> | + | </file> |
| + | - item 1 | ||
| + | - item 3 | ||
| - | Можно использовать в ссылке [[ru: | + | Note that ' |
| + | /* There is an another comment /* in this comment */ (nested comment)*/ | ||
| - | <code>Можно использовать в ссылке [[ru: | + | ==== 2. one-line comment ==== |
| + | The " | ||
| + | <file> | ||
| + | * non-ordered list item // comment | ||
| + | </file> | ||
| - | Ставить ссылки на определённый раздел тоже можно. Просто добавьте через решётку (#) имя раздела, | + | * non-ordered list item |
| - | <code>Ссылка на [[# | + | <file> |
| + | - item 1 // A white space is necessary before One-line comment markup | ||
| + | //- item 2 will be eliminated from this list without breaking it | ||
| + | - item 3 // will be numbered as 2 in the list | ||
| + | </file> | ||
| + | - item 1 | ||
| + | - item 3 | ||
| - | Примечания: | + | :!: **Adverse effect:** The one-line comment syntax '' |
| + | < | ||
| + | This text //in italics. | ||
| + | is rendered as normal // due to broken double-slash pairs | ||
| + | </ | ||
| - | * Ссылки на [[ru: | + | This text is rendered as normal |
| - | * «Докувики» по умолчанию не использует [[wp> | + | |
| - | * Если меняется название раздела, | + | |
| - | * Ссылки на разделы делаются именно на [[# | + | |
| - | ==== Интервики | + | ==== 3. Control Macro like Comments |
| + | There are so-called [[beget: | ||
| - | «Докувики» поддерживает [[ru: | + | ~~ This is a comment without affecting other macros in the page. ~~ |
| - | на другие вики. Например, | + | |
| - | < | + | ==== CustomButtons Plugin ==== |
| - | на другие вики. Например, | + | |
| - | </ | + | |
| - | ==== Сетевые ресурсы Windows ==== | + | === Multiline Codes === |
| - | Ссылки на сетевые ресурсы вида | + | If you want to have a shortcut for a common used multiline template (eg. a table) you can use "\n" in the code field to denote the line change. |
| - | < | + | Example: |
| - | Примечания: | + | < |
| + | Label: 3x3 Table | ||
| + | Code: ^ header1 | ||
| + | </ | ||
| - | * Из соображений безопасности непосредственный просмотр сетевых ресурсов работает по умолчанию только в Internet Explorer (и только в «локальной зоне»). | + | ==== Discussion Plugin ==== |
| - | * В браузерах Mozilla эту возможность можно включить с помощью опции [[http:// | + | |
| - | * Подробней читайте здесь: [[bug> | + | |
| - | ==== Картинки-ссылки ==== | + | === Comments-section |
| - | Совместив синтаксис ссылки и [[# | + | This is the main part of the plugin. By including the '' |
| + | ~~DISCUSSION~~ | ||
| + | ~~DISCUSSION: | ||
| + | ~~DISCUSSION: | ||
| - | < | + | A custom title can be appended after the separator %%|%%. |
| + | ~~DISCUSSION|Custom Title String~~ | ||
| + | ~~DISCUSSION:closed|Custom Title String~~ | ||
| - | [[http:// | + | After each comment in the discussion section there may be up to three buttons (depending on your rights): |
| - | Учтите: форматирование картинок | + | * Reply: To reply to a comment (vs. commenting on the wiki page content), click the '' |
| + | * Edit: Registered users can edit their comments; admins can edit all comments. To remove a comment, just edit it, clear the text and save the empty comment | ||
| + | * Delete: Registered users and admin all comments.\\ // | ||
| + | * Hide / Show: Admins can deactivate and reactivate comments easily by this button. Hidden comments aren't shown to normal users and are displayed dimmed to admins. Registered users can only hide their own comments. | ||
| - | ==== Сноски ==== | + | Of course, the whole DokuWiki [[beget: |
| - | С помощью двойных скобок можно добавить сноску((Сноска — помещаемые внизу страницы примечание, | + | === Threads syntax === |
| - | < | + | This displays a list of all pages of the given namespace with a discussion section. The list is sorted by the most recent comment. |
| - | помещаемые внизу страницы примечание, | + | |
| - | ===== Разбивка на разделы ===== | + | {{threads> |
| - | Для структурирования текста можно использовать до пяти уровней заголовков. Если в тексте больше трёх заголовков, автоматически создаётся список содержимого. Его можно отключить, вставив в документ строку %%~~NOTOC~~%%. | + | ^ [namespace] | the namespace for which you want a discussion thread list; '':'' |
| + | ^ [count=n] | the number of discussions which should be displayed (valid values: n > 0) | optional | | ||
| + | ^ [flags] | pagelist flags delimited by ''&'', | ||
| + | ^ skipempty | Do not print discussions with no comments | optional | | ||
| - | ==== Заголовок 3 уровня ==== | + | Default a //new thread form// is shown below the list. See '' |
| - | === Заголовок 4 уровня === | + | |
| - | == Заголовок 5 уровня == | + | |
| - | < | + | ==== QnA Plugin |
| - | === Заголовок 4 уровня === | + | |
| - | == Заголовок 5 уровня ==</ | + | |
| - | Четыре и более тире преобразуются в горизонтальную черту: | + | The basic QnA block starts with a question and is followed by one or more optional answers. The questions are marked by triple question mark at the start of a line, the answers --- with triple exclamation mark: |
| - | ---- | + | < |
| + | ??? How do I format a question? | ||
| + | !!! Put triple question mark at the start of a line followed by the question title. | ||
| + | </ | ||
| - | ===== Картинки и другие файлы ===== | + | The first line of the question (must be on the same line as the ''???'' |
| - | См. также: «[[ru: | + | Normally question and answer blocks span until the start of the next block or to the next section. If you want to mix QnA syntax with plain text you can explicitly terminate the block by the question block marker without the question title: |
| - | С помощью фигурных скобок можно вставлять в текст внешние и внутренние [[ru: | + | < |
| + | ??? How do I terminate a QnA block? | ||
| + | What if I want to put some text after the block and that text doesn' | ||
| + | belong to the answer? | ||
| - | Нормальный размер: | + | !!! Put triple question mark at the start of a line. |
| + | ??? | ||
| - | Отмасштабированная до заданной ширины: | + | This text is not part of the answer. |
| - | + | </ | |
| - | Отмасштабированная до заданных размеров: | + | |
| - | Отмасштабированная внешняя картинка: | + | You can organize multiple questions into sections using slightly modified headline syntax: |
| < | < | ||
| - | Нормальный размер: | + | =?==== Level 1 headline ====== |
| - | Отмасштабированная до заданной ширины: | + | =?=== Level 2 headline ===== |
| - | Отмасштабированная до заданных размеров: | + | =?== Level 3 headline ==== |
| - | Отмасштабированная внешняя картинка: | + | =?= Level 4 headline === |
| </ | </ | ||
| - | Поставив слева или справа пробел, | + | The normal headlines are still respected and may be used together with customized ones. The only difference is that they are not shown in the QnA table of contents. |
| - | {{wiki: | + | The QnA TOC can be inserted with '' |
| - | {{ wiki: | + | |
| - | {{ wiki:dokuwiki-128.png }} | + | |
| - | < | + | < |
| - | {{ wiki:dokuwiki-128.png }} — посередине | + | ~~QNA faq:installation faq: |
| - | {{ wiki:dokuwiki-128.png}} — справа | + | |
| </ | </ | ||
| - | И, конечно, | + | When multiple page names are specified the plugin will combine information from all pages into a single TOC. |
| - | {{ wiki: | + | ==== Stars2 Plugin ==== |
| - | < | + | Stars can be created with two methods: |
| + | - With the Toolbarbutton Stars 1-5 | ||
| + | | ||
| - | Если задать имя файла (внутреннее или внешнее), | + | < |
| + | {{stars> | ||
| + | {{stars> | ||
| + | {{stars> | ||
| + | {{stars> | ||
| + | {{stars> | ||
| + | {{stars> | ||
| + | {{stars> | ||
| + | {{stars> | ||
| + | {{stars> | ||
| + | {{stars> | ||
| + | {{stars> | ||
| + | </ | ||
| - | Узнать, | + | ==== flowcharts Plugin ==== |
| - | ===== Списки ===== | + | **With the current version of the plugin it is crucial to remove the following lines from the DokuWiki file conf/ |
| - | + | ||
| - | «Докувики» поддерживает нумерованные и маркированные списки. Чтобы создать элемент списка, | + | |
| - | + | ||
| - | * Первый элемент маркированного списка | + | |
| - | * Второй элемент списка | + | |
| - | | + | |
| - | | + | |
| - | + | ||
| - | - Тот же список, | + | |
| - | - Ещё элемент | + | |
| - | - Чем больше пробелов в начале, | + | |
| - | - Всё просто | + | |
| < | < | ||
| - | * Первый элемент маркированного списка | + | < |
| - | * Второй элемент списка | + | -> → |
| - | | + | <- ← |
| - | * Ещё один элемент | + | --- — |
| - | + | -- – | |
| - | | + | |
| - | - Ещё элемент | + | |
| - | | + | |
| - | - Всё просто | + | |
| </ | </ | ||
| - | См. также | + | Otherwise, DokuWiki will render '' |
| - | ===== Смайлики ===== | + | Alternatively, |
| - | «Докувики» переделывает наиболее употребляемые смайлики в их графические эквиваленты. Дополнительные смайлики можно положить в директорию '' | + | < |
| - | * 8-) %%8-)%% | + | === Examples/Usage === |
| - | * 8-O %%8-O%% | + | |
| - | * :-( %%:-(%% | + | |
| - | * :-) %%:-)%% | + | |
| - | * =) %%=)%% | + | |
| - | * :-/ %%:-/%% | + | |
| - | * :-\ %%:-\%% | + | |
| - | * :-? %%:-?%% | + | |
| - | * :-D %%:-D%% | + | |
| - | * :-P %%:-P%% | + | |
| - | * :-O %%:-O%% | + | |
| - | * :-X %%:-X%% | + | |
| - | * :-| %%:-|%% | + | |
| - | * ;-) %%;-)%% | + | |
| - | * ^_^ %%^_^%% | + | |
| - | * :?: %%:?:%% | + | |
| - | * :!: %%:!:%% | + | |
| - | * LOL %%LOL%% | + | |
| - | * FIXME %%FIXME%% | + | |
| - | * DELETEME %%DELETEME%% | + | |
| - | ===== Типографские символы ===== | + | < |
| + | < | ||
| + | graph TD; | ||
| + | A-->B; | ||
| + | A-->C; | ||
| + | B-->D; | ||
| + | C-->D; | ||
| + | </ | ||
| + | </ | ||
| - | «Докувики» может переделывать символы, | + | Will be rendered to |
| - | -> <- <-> => <= <=> >> << -- --- ' | + | {{https:// |
| - | " | + | |
| + | A nice feature is that each element of a diagram can be made clickable by using | ||
| < | < | ||
| - | -> <- <-> => <= <=> >> << | + | <flow> |
| - | " | + | graph TD; |
| + | A-->B; | ||
| + | A-->C; | ||
| + | B-->D; | ||
| + | C-->D; | ||
| + | click A " | ||
| + | </ | ||
| </ | </ | ||
| - | Примечание: | + | Clicking on '' |
| - | ===== Таблицы ===== | + | === Syntax |
| - | «Докувики» поддерживает упрощённый синтаксис | + | [[https:// |
| - | ^ Заголовок 1 ^ Заголовок 2 ^ Заголовок 3 ^ | + | [[https:// |
| - | | Ряд 1 Колонка 1 | Ряд 1 Колонка 2 | Ряд 1 Колонка 3 | | + | |
| - | | Ряд 2 Колонка 1 | Объединение колонок (обратите внимание на двойную вертикальную черту) | + | |
| - | | Ряд 3 Колонка 1 | Ряд 2 Колонка 2 | Ряд 2 Колонка 3 | | + | |
| - | Обычные ряды должны начинаться и заканчиваться вертикальной чертой --- %%|%%, а заголовки «крышечкой» (циркумфлекс) — %%^%%. | + | For further details on the syntax, see [[https:// |
| - | ^ Заголовок 1 ^ Заголовок 2 ^ Заголовок 3 ^ | + | ==== Bookmark ==== |
| - | | Ряд 1 Колонка 1 | Ряд 1 Колонка 2 | Ряд 1 Колонка 3 | | + | |
| - | | Ряд 2 Колонка 1 | Объединение колонок (обратите внимание на двойную вертикальную черту) | + | |
| - | | Ряд 3 Колонка 1 | Ряд 2 Колонка 2 | Ряд 2 Колонка 3 | | + | |
| - | Чтобы объединить две соседние клетки в ряду, просто оставьте соседнюю клетку полностью пустой, | + | With this plugin you can insert a bookmark to your page. The format is |
| - | Вертикальные заголовки тоже можно сделать: | + | < |
| - | | ^ Заголовок 1 ^ Заголовок 2 ^ | + | This will insert code |
| - | ^ Заголовок 3 | Ряд 1 Колонка 2 | Ряд 1 Колонка 3 | | + | |
| - | ^ Заголовок 4 | Объединения нет | + | |
| - | ^ Заголовок 5 | Ряд 2 Колонка 2 | Ряд 2 Колонка 3 | | + | |
| - | Как легко увидеть, | + | < |
| + | <a name=' | ||
| + | </ | ||
| - | | ^ Заголовок 1 ^ Заголовок 2 ^ | + | To link to the bookmark from the same page (i.e. to use the bookmark as an anchor link within the page), use this syntax: |
| - | ^ Заголовок 3 | Ряд 1 Колонка 2 | Ряд 1 Колонка 3 | | + | |
| - | ^ Заголовок 4 | Объединения нет | + | |
| - | ^ Заголовок 5 | Ряд 2 Колонка 2 | Ряд 2 Колонка 3 | | + | |
| - | Можно сделать вертикально объединённые ячейки добавлением трёх двоеточий '' | + | < |
| + | [[namespace:page_name# | ||
| + | </ | ||
| - | ^ Заголовок 1 ^ Заголовок 2 ^ Заголовок 3 ^ | + | Where anchor_text is the text-link your visitors will see. |
| - | | Ряд 1 Колонка 1 | эта ячейка объединена вертикально | + | |
| - | | Ряд 2 Колонка 1 | ::: | Ряд 2 Колонка 3 | | + | |
| - | | Ряд 3 Колонка 1 | ::: | Ряд 2 Колонка 3 | | + | |
| - | В этих ячейках не должно быть ничего, | + | ==== Gallery ==== |
| - | ^ Заголовок 1 ^ Заголовок 2 ^ Заголовок 3 ^ | + | === Syntax === |
| - | | Ряд 1 Колонка 1 | эта ячейка объединена вертикально | Ряд 1 Колонка 3 | | + | |
| - | | Ряд 2 Колонка 1 | ::: | Ряд 2 Колонка 3 | | + | |
| - | | Ряд 3 Колонка 1 | ::: | Ряд 2 Колонка 3 | | + | |
| - | Текст клетки таблицы можно выравнивать. Просто добавьте минимум два пробела с противоположной стороны: слева — если надо выравнять вправо, | + | A basic gallery can be added by selecting a [[: |
| - | ^ | + | |
| - | | вправо| | + | |
| - | |влево | + | |
| - | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | + | |
| - | ^ | + | All image files in the selected namespace will be added to the image gallery. Don't forget the ":" |
| - | | вправо| | + | |
| - | |влево | + | |
| - | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | + | |
| - | Примечание: | + | Instead of using a whole namespace of images, you can also specify a single image -- this makes more sense when combined with the lightbox mode (see below). |
| - | ===== Неформатируемые блоки ===== | + | {{gallery>: |
| - | Неформатируемые блоки можно вставлять в документ, | + | The created gallery can be aligned by using white space (defaults to centered): |
| - | <code>Это неформатированный текст, в котором сохранены все пробелы: | + | {{gallery> namespace}} (right aligned) |
| + | {{gallery>namespace }} (left aligned) | ||
| + | {{gallery> | ||
| - | <file>В принципе то же самое, но этим выделением можно показать, | + | Instead of a namespace, you can also give an HTTP(s) URL to any [[wp>Media RSS]] or ATOM feed with enclosures (as produced by most photo sharing sites like Flickr). The images will then be pulled from that feed instead: |
| - | Чтобы парсер полностью проигнорировал некий текст (т. е. не форматировал его), либо заключите его в тэги '' | + | {{gallery>http://www.23hq.com/ |
| - | Это просто текст, в котором есть адрес %%http://www.splitbrain.org/ | + | 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://bit.ly]]. |
| - | и %%**форматирование**%% --- но ничего не происходит. | + | |
| - | < | + | E.g. instead of '' |
| - | и %%**форматирование**%% --- но ничего не происходит.</ | + | |
| - | Чтобы увидеть, как используются эти блоки, смотрите код страницы. | + | Additionally, to have thumbnail creation correctly working you need to set [[config: |
| - | ===== Подсветка синтаксиса ===== | + | == Parameters |
| - | «Докувики» может подсвечивать программный код, чтобы его было проще читать. Для этого используется библиотека [[http:// | + | A number of parameters can be set by appending them with ''?'' |
| - | <code java> | + | ^ Parameter |
| - | /** | + | | ''// |
| - | * The HelloWorldApp class implements an application that | + | | '' |
| - | * simply displays "Hello World!" | + | | ''//< |
| - | */ | + | | '' |
| - | class HelloWorldApp { | + | | '' |
| - | | + | | '' |
| - | | + | | '' |
| - | } | + | | '' |
| - | } | + | | '' |
| - | </ | + | | '' |
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | anything containing a '' | ||
| - | На данный момент распознаются следующие языки: 4cs, 6502acme, | + | == Example == |
| - | ==== Скачиваемые блоки кода ==== | + | {{gallery> |
| - | Используя тэги | + | This displays all images beginning with '' |
| - | < | + | == Example == |
| - | <file php myexample.php> | + | |
| - | <?php echo "hello world!"; | + | |
| - | </ | + | |
| - | </ | + | |
| - | <file php myexample.php> | + | {{gallery>?crop& |
| - | <?php echo "hello world!"; | + | |
| - | </ | + | |
| - | Если вам не нужна подсветка, | + | This displays all images in the current namespace using 2 parameters. Parameterlist begins with '' |
| - | **Особенность: | + | === About the Lightbox mode === |
| - | <file php " | + | |
| - | <?php echo "hello world!"; | + | |
| - | </ | + | |
| - | ===== Вставка HTML и PHP ===== | + | This mode will open the clicked picture inside the current browser window without leaving the current page. |
| - | Чистый HTML- или PHP-код можно вставлять в документ с помощью тэгов '' | + | You can close the picture view by clicking the X button in the upper right corner. You can move to the next or previous image by using the arrow buttons in the lower bar. You can also use the keyboard shortcuts listed below for navigation and closing. Mobile users can swipe to navigate and use the back button to close the gallery. |
| - | <code html> | + | The following keys can be used to navigate: |
| - | < | + | |
| - | Тут вставлен <font color=" | + | |
| - | </ | + | |
| - | < | + | ^ Key ^ Action ^ |
| - | <p style=" | + | | '' |
| - | </HTML> | + | | '' |
| - | </ | + | | '' |
| - | Получается: | + | ==== Footer ==== |
| - | < | + | === Footer template === |
| - | Тут вставлен <font color=" | + | |
| - | </ | + | |
| - | < | + | To add footer text to pages in a namespace, you need to create a file named '' |
| - | <p style=" | + | And to add footer text to pages in the namespace directory and its subdirectories create a file named '' |
| - | </ | + | |
| - | ---- | + | Files beginning with " |
| - | < | + | === Additional syntax === |
| - | < | + | |
| - | echo ' | + | |
| - | echo phpversion(); | + | |
| - | echo ' (прямая вставка в HTML).'; | + | |
| - | </ | + | |
| - | <PHP> | + | To avoid a certain page from the footer template (e.g. the start page) you can insert this special command |
| - | echo '< | + | |
| - | echo '< | + | to the content of this page. Please note that this command is only removed from the page text if there is a footer template exactly for the namespace of this page. |
| - | echo '</ | + | |
| - | </ | + | |
| - | </ | + | |
| - | Получается: | + | === Example === |
| - | < | + | {{https://raw.githubusercontent.com/Juergen-aus-Zuendorf/ |
| - | echo ' | + | |
| - | echo phpversion(); | + | |
| - | echo ' (прямая вставка в HTML).'; | + | |
| - | </php> | + | |
| - | < | + | The screenshot above shows this syntax: |
| - | echo '< | + | |
| - | echo '< | + | |
| - | echo '</ | + | |
| - | </ | + | |
| - | **Примечание:** по умолчанию вставка HTML и PHP запрещена. Когда она запрещена, | + | a) The content of the page " |
| - | ===== RSS/ATOM Feed Aggregation ===== | + | ==== HtmlMetaTags Plugin |
| - | [[wiki:dokuwiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// | + | < |
| + | {{htmlmetatags> | ||
| + | </code> | ||
| - | ^ Параметр | + | **Note:** Linebreaks can add inside the < |
| - | | 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. | + | </code> |
| - | | 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: | + | === Syntax === |
| - | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | + | With the string |
| - | **Example: | + | Also, the plugin is on page level. |
| - | {{rss> | + | Example to activate the plugin on your page write: |
| - | {{rss>http:// | + | < |
| + | {{htmlmetatags>metatag-mytag=(some usefull text)}} | ||
| + | </ | ||
| + | The meta tag: //mytag// is any word. This word is the name of the new meta tag, e.g. keyword. Followed on this name is to write '' | ||
| - | ===== Управляющие макросы ===== | + | You can write more than once meta tag on the page separate by space. |
| - | Некоторый синтаксис влияет на то, как «Докувики» обрабатывает статьи без создания каких-либо результатов для себя. Доступны следующие макросы: | + | < |
| + | {{htmlmetatags> | ||
| + | metatag-keywords=(apfel,bananne, | ||
| + | metatag-description=(Allgemeiner Obstbauer) | ||
| + | metatag-media-og: | ||
| + | metatag-og: | ||
| + | metatag-og:any=(anything else 2) | ||
| + | }} | ||
| - | ^ Макрос | + | </code> |
| - | | %%~~NOTOC~~%% | + | |
| - | | %%~~NOCACHE~~%% | «Докувики» помещает всё выводимое в кэш по умолчанию. Иногда это нежелательно (например, | + | |
| - | ===== Синтаксические плагины ===== | + | The **result** on web page is: |
| - | Синтаксис «Докувики» может быть расширен за счёт [[ru:plugins|плагинов]]. Как их устанавливать и использовать --- описывается на страницах плагинов. Следующие плагины доступны в инсталляции «Докувики» на этом сайте: | + | <code html> |
| + | <meta name=" | ||
| + | <meta name=" | ||
| + | <meta name=" | ||
| + | <meta property=" | ||
| + | <meta property=" | ||
| + | <meta property=" | ||
| + | </ | ||
| - | ~~INFO:syntaxplugins~~ | + | ~~DISCUSSION:off~~ |