wiki:syntax
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
wiki:syntax [2012/08/25 06:54] – [Internal] Щеглов С.В. | wiki:syntax [2025/07/04 04:56] (текущий) – внешнее изменение 127.0.0.1 | ||
---|---|---|---|
Строка 1: | Строка 1: | ||
- | ====== | + | ====== |
- | DokuWiki | + | [[doku>DokuWiki]] supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing "Edit this page". If you want to try something, just use the [[playground: |
- | ===== Основные конструкции форматирования | + | ===== Basic Text Formatting |
- | DokuWiki | + | DokuWiki |
- | < | + | |
- | DokuWiki | + | 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 | + | DokuWiki |
- | ==== Внешние | + | ==== External |
- | Внешние ссылки распознаются автоматически: http:// | + | External links are recognized automagically: http:// |
- | просто | + | |
- | [[http:// | + | |
- | тоже распознаются: | + | |
- | < | + | |
- | просто www.google.com --- также можно указывать текст ссылки: | + | |
- | [[http:// | + | |
- | тоже распознаются: < | + | |
- | ==== Внутренние ==== | + | DokuWiki supports multiple ways of creating links. External links are recognized |
+ | automagically: | ||
+ | link text as well: [[http:// | ||
+ | addresses like this one: < | ||
- | Внутренние ссылки создаются посредством квадратных скобок. | + | ==== Internal ==== |
- | Можно либо просто указать [[Имя страницы]], | + | |
- | [[Имя страницы|Текст ссылки]]. Имена Wiki-страниц автоматически | + | |
- | переводятся в нижний регистр, | + | |
- | < | + | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional |
- | Можно либо просто указать | + | |
- | [[Имя страницы|Текст ссылки]]. Имена Wiki-страниц автоматически | + | |
- | переводятся в нижний регистр, | + | |
- | Можно использовать в ссылке | + | Internal links are created by using square brackets. You can either just give |
+ | a [[pagename]] or use an additional [[pagename|link text]]. | ||
- | < | + | [[doku> |
- | Ставить ссылки на определённый раздел тоже можно. Просто добавьте через решётку имя раздела, | + | You can use [[some: |
- | < | + | You can use [[some: |
- | Примечания: | + | For details about namespaces see [[doku> |
- | * Ссылки на [[syntax|существующие страницы]] отображаются иначе, чем ссылки на [[несуществующие]] | + | 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# |
- | * Внутренние ссылки без указанного текста могут отображаться по разному в зависимости от настроек - в качестве текста может использоваться название страницы или заголовок первого уровня((именно такая настройка используется на этом сайте)). Так что лучше каждый раз указывать текст ссылки. | + | |
- | * DokuWiki по умолчанию не использует | + | |
- | * Если меняется название раздела, | + | |
+ | This links to [[syntax# | ||
+ | |||
+ | Notes: | ||
+ | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. | ||
+ | * DokuWiki does not use [[wp> | ||
+ | * When a section' | ||
==== Interwiki ==== | ==== Interwiki ==== | ||
Строка 101: | Строка 84: | ||
* For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone" | * 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:// | + | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http:// |
- | $lang[' | ||
==== Image Links ==== | ==== Image Links ==== | ||
Строка 149: | Строка 132: | ||
Resize to given width and height((when the aspect ratio of the given width and height doesn' | Resize to given width and height((when the aspect ratio of the given width and height doesn' | ||
- | Resized external image: | ||
Real size: {{wiki: | Real size: {{wiki: | ||
Строка 270: | Строка 252: | ||
>>> | >>> | ||
- | I think we should do it | ||
- | |||
- | > No we shouldn' | ||
- | |||
- | >> Well, I say we should | ||
- | |||
- | > Really? | ||
- | |||
- | >> Yes! | ||
- | |||
- | >>> | ||
===== Tables ===== | ===== Tables ===== | ||
Строка 386: | Строка 357: | ||
==== Syntax Highlighting ==== | ==== Syntax Highlighting ==== | ||
- | [[wiki: | + | [[wiki: |
<code java> | <code java> | ||
Строка 400: | Строка 371: | ||
</ | </ | ||
- | The following language strings are currently recognized: //4cs, abap, actionscript-french, | + | The following language strings are currently recognized: //4cs, 6502acme, 6502kickass, |
==== Downloadable Code Blocks ==== | ==== Downloadable Code Blocks ==== | ||
- | When you use the '' | + | When you use the '' |
< | < |
wiki/syntax.1345877693.txt.gz · Последнее изменение: — Щеглов С.В.