wiki:syntax
Различия
Показаны различия между двумя версиями страницы.
Следующая версия | Предыдущая версия | ||
wiki:syntax [2022/09/03 20:15] – создано - внешнее изменение 127.0.0.1 | wiki:syntax [2022/12/27 12:37] (текущий) – Andrew C. | ||
---|---|---|---|
Строка 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 | + | ==== Внешние |
- | External links are recognized automagically: http:// | + | Внешние ссылки распознаются автоматически: http:// |
+ | просто | ||
+ | [[http:// | ||
+ | тоже распознаются: < | ||
- | DokuWiki supports multiple ways of creating links. External links are recognized | + | < |
- | automagically: http:// | + | просто |
- | link text as well: [[http:// | + | [[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> | + | Можно использовать в ссылке |
- | 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 ==== | + | < |
+ | на другие вики. Например, | ||
+ | </ | ||
- | DokuWiki supports [[doku> | + | ==== Сетевые ресурсы Windows ==== |
- | DokuWiki supports [[doku> | + | Ссылки на сетевые ресурсы вида \\server\share тоже распознаются. Однако учтите, |
- | 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> | + | Примечания: |
- | | + | * Из соображений безопасности непосредственный просмотр сетевых ресурсов работает по умолчанию только в Internet Explorer (и только в «локальной зоне»). |
- | + | * В браузерах | |
- | Notes: | + | * Подробней читайте здесь: |
- | + | ||
- | | + | |
- | * For Mozilla | + | |
- | <?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:// | + | [[http://www.php.net/|{{wiki: |
- | 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 ===== | + | ===== Картинки и другие файлы |
- | You can include external and internal | + | См. также: «[[ru:images|Работа с изображениями и медиафайлами]]». |
- | Real size: | + | С помощью фигурных скобок можно вставлять в текст внешние и внутренние [[ru:images|картинки]]. По желанию можно указать их размер. |
- | Resize to given width: {{wiki: | + | Нормальный размер: {{wiki: |
- | Resize to given width and height((when the aspect ratio of the given width and height doesn' | + | Отмасштабированная до заданной ширины: {{wiki: |
- | Resized external image: {{https://secure.php.net/ | + | Отмасштабированная до заданных размеров: {{wiki:dokuwiki-128.png?200x50}} |
- | Real size: {{wiki: | + | Отмасштабированная внешняя картинка: {{http://de3.php.net/ |
- | Resize to given width: | + | |
- | Resize to given width and height: {{wiki: | + | |
- | Resized external image: {{https://secure.php.net/ | + | |
+ | < | ||
+ | Нормальный размер: | ||
+ | Отмасштабированная до заданной ширины: | ||
+ | Отмасштабированная до заданных размеров: | ||
+ | Отмасштабированная внешняя картинка: | ||
+ | </ | ||
- | By using left or right whitespaces you can choose the alignment. | + | Поставив слева или справа пробел, |
+ | {{wiki: | ||
{{ 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: | + | |
- | + | ||
- | ==== 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: | + | {{ wiki:dokuwiki-128.png |Логотип «Докувики»}} |
- | | + | < |
- | 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>faq: | + | См. также |
- | ===== 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, | + | * 8-) %%8-)%% |
+ | * 8-O %%8-O%% | ||
+ | * :-( %%:-(%% | ||
+ | * :-) %%:-)%% | ||
+ | * =) %%=)%% | ||
+ | * :-/ %%:-/%% | ||
+ | * :-\ %%:-\%% | ||
+ | * :-? %%:-?%% | ||
+ | * :-D %%:-D%% | ||
+ | * :-P %%:-P%% | ||
+ | * :-O %%:-O%% | ||
+ | * :-X %%:-X%% | ||
+ | * :-| %%:-|%% | ||
+ | * ;-) %%;-)%% | ||
+ | * ^_^ %%^_^%% | ||
+ | * :?: %%:?:%% | ||
+ | * :!: %%:!:%% | ||
+ | * LOL %%LOL%% | ||
+ | * FIXME %%FIXME%% | ||
+ | * DELETEME %%DELETEME%% | ||
- | ==== Text to Image Conversions | + | ===== Типографские символы ===== |
- | DokuWiki converts commonly used [[wp> | + | «Докувики» может переделывать символы, |
- | * 8-) %% 8-) %% | + | -> <- <-> => <= <=> >> << -- --- '640x480' |
- | * 8-O %% 8-O %% | + | " |
- | * :-( %% :-( %% | + | |
- | * :-) %% :-) %% | + | |
- | * =) %% =) %% | + | |
- | * :-/ %% :-/ %% | + | |
- | * :-\ %% :-\ %% | + | |
- | * :-? %% :-? %% | + | |
- | * :-D %% :-D %% | + | |
- | * :-P %% :-P %% | + | |
- | * :-O %% :-O %% | + | |
- | * :-X %% :-X %% | + | |
- | * :-| %% :-| %% | + | |
- | * ;-) %% ;-) %% | + | |
- | * ^_^ %% ^_^ %% | + | |
- | * m( %% m( %% | + | |
- | * :?: %% :?: %% | + | |
- | * :!: %% :!: %% | + | |
- | * LOL %% LOL %% | + | |
- | * FIXME %% FIXME %% | + | |
- | * 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 (c) (tm) (r) | + | |
- | "He thought ' | + | |
< | < | ||
- | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | + | -> <- <-> => <= <=> >> << -- --- '640x480' |
- | "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 ===== | + | |
- | + | ||
- | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: | + | |
- | + | ||
- | < | + | |
- | I think we should do it | + | |
- | + | ||
- | > No we shouldn' | + | |
- | + | ||
- | >> Well, I say we should | + | |
- | + | ||
- | > Really? | + | |
- | + | ||
- | >> Yes! | + | |
- | + | ||
- | >>> | + | |
- | </ | + | |
- | + | ||
- | I think we should do it | + | |
- | + | ||
- | > No we shouldn' | + | |
- | + | ||
- | >> Well, I say we should | + | |
- | + | ||
- | > Really? | + | |
- | + | ||
- | >> Yes! | + | |
- | + | ||
- | >>> | + | |
- | ===== Tables | + | ===== Таблицы |
- | DokuWiki supports a simple syntax to create tables. | + | «Докувики» поддерживает упрощённый синтаксис создания таблиц. |
- | ^ Heading | + | ^ Заголовок |
- | | Row 1 Col 1 | Row 1 Col 2 | + | | Ряд |
- | | Row 2 Col 1 | some colspan | + | | Ряд |
- | | Row 3 Col 1 | Row 3 Col 2 | + | | Ряд |
- | Table rows have to start and end with a '' | + | Обычные ряды должны начинаться и заканчиваться вертикальной чертой --- %%|%%, а заголовки «крышечкой» (циркумфлекс) — %%^%%. |
- | ^ Heading | + | ^ Заголовок |
- | | Row 1 Col 1 | Row 1 Col 2 | + | | Ряд |
- | | Row 2 Col 1 | some colspan | + | | Ряд |
- | | Row 3 Col 1 | Row 3 Col 2 | + | | Ряд |
- | 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 | + | | ^ Заголовок |
- | ^ Heading | + | ^ Заголовок |
- | ^ Heading | + | ^ Заголовок |
- | ^ Heading | + | ^ Заголовок |
- | As you can see, it's the cell separator before a cell which decides about the formatting: | + | Как легко увидеть, разделитель, |
- | | ^ Heading | + | | ^ Заголовок |
- | ^ Heading | + | ^ Заголовок |
- | ^ Heading | + | ^ Заголовок |
- | ^ Heading | + | ^ Заголовок |
- | You can have rowspans (vertically connected cells) by adding | + | Можно сделать вертикально объединённые ячейки добавлением трёх двоеточий |
- | ^ Heading | + | ^ Заголовок |
- | | Row 1 Col 1 | this cell spans vertically | + | | Ряд |
- | | 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 | + | ^ Заголовок |
- | | Row 1 Col 1 | this cell spans vertically | + | | Ряд |
- | | 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 | + | ^ Таблица с выравниванием |
- | | right| | + | | |
- | |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 '' | + | Неформатируемые блоки можно вставлять в документ, |
- | <nowiki> | + | <code>Это неформатированный текст, в котором сохранены все пробелы: вот |
- | This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, | + | |
- | </nowiki> | + | |
- | The same is true for %%// | + | |
- | < | + | < |
- | 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. | + | Это просто текст, в котором есть адрес %%http:// |
+ | и %%**форматирование**%% --- но ничего не происходит. | ||
- | | + | < |
- | 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!" | ||
Строка 418: | Строка 342: | ||
</ | </ | ||
- | 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 | + | На данный момент распознаются следующие языки: 4cs, |
- | There are additional [[doku> | + | ==== Скачиваемые блоки кода ==== |
- | ==== Downloadable Code Blocks ==== | + | Используя тэги |
- | + | ||
- | When you use the '' | + | |
< | < | ||
Строка 436: | Строка 358: | ||
</ | </ | ||
- | If you don't want any highlighting but want a downloadable file, specify a dash ('' | + | Если вам не нужна подсветка, но нужен загружаемый файл, поставьте прочерк (дефис) |
+ | **Особенность: | ||
+ | <file php " | ||
+ | <?php echo "hello world!"; | ||
+ | </ | ||
- | ===== Embedding | + | ===== Вставка |
- | You can embed raw HTML or PHP code into your documents by using the '' | + | Чистый |
- | HTML example: | + | < |
- | + | ||
- | < | + | |
< | < | ||
- | This is some <span style="color:red;font-size:150%;">inline | + | Тут вставлен |
</ | </ | ||
+ | |||
< | < | ||
- | <p style=" | + | <p style=" |
</ | </ | ||
</ | </ | ||
+ | |||
+ | Получается: | ||
< | < | ||
- | This is some <span style="color:red;font-size:150%;">inline | + | Тут вставлен |
</ | </ | ||
+ | |||
< | < | ||
- | <p style=" | + | <p style=" |
</ | </ | ||
- | PHP example: | + | ---- |
< | < | ||
<php> | <php> | ||
- | echo 'The PHP version: '; | + | echo 'Версия |
echo phpversion(); | echo phpversion(); | ||
- | echo ' (generated inline | + | echo ' (прямая вставка в HTML).'; |
</ | </ | ||
+ | |||
<PHP> | <PHP> | ||
- | echo '< | + | echo '< |
echo '< | echo '< | ||
echo '</ | echo '</ | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | Получается: | ||
<php> | <php> | ||
- | echo 'The PHP version: '; | + | echo 'Версия |
echo phpversion(); | echo phpversion(); | ||
- | echo ' (inline | + | echo ' (прямая вставка в HTML).'; |
</ | </ | ||
+ | |||
<PHP> | <PHP> | ||
- | echo '< | + | echo '< |
echo '< | 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 ===== | ===== RSS/ATOM Feed Aggregation ===== | ||
+ | |||
[[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// | [[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 | | | any number | will be used as maximum number items to show, defaults to 8 | | ||
| reverse | | reverse | ||
Строка 512: | Строка 445: | ||
- | ===== 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~~%% | + | | %%~~NOTOC~~%% |
- | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted | + | | %%~~NOCACHE~~%% | «Докувики» помещает всё выводимое в кэш по умолчанию. Иногда это нежелательно |
- | ===== Syntax Plugins | + | ===== Синтаксические плагины |
- | DokuWiki' | + | Синтаксис «Докувики» может быть расширен за счёт |
~~INFO: | ~~INFO: | ||
- |
wiki/syntax.1662225322.txt.gz · Последнее изменение: 2022/09/03 20:15 — 127.0.0.1