The XWiki Syntax 2.0 has proven to be quite useful and robust in general; however since its introduction a few shortcomings have been found. The corresponding improvements have been consolidated in XWiki Syntax 2.1. Some new features of this syntax are:
XWiki Syntax 2.1 corrects some errors or ambiguous syntax entered by the user as shown in the examples in the table below.
Paragraphs are text elements separated by 2 or more new lines.
| Feature | XWiki Syntax 2.1 | Result |
|---|
| Bulleted list |
* item 1
** item 2
*** item 3
* item 4
| |
| Numbered list |
1. item 1
11. item 2
111. item 3
1. item 4
| |
| Mixed list |
1. item 1
1*. item 2
1*. item 3
1. item 4
| |
| Square list |
(% style="list-style-type: square" %)
* item 1
* item 2
| |
| Disc list |
(% style="list-style-type: disc" %)
* item 1
* item 2
| |
| Lowercase Alphabetical list |
(% style="list-style-type: lower-alpha" %)
* item 1
* item 2
| |
| Uppercase Alphabetical list |
(% style="list-style-type: upper-alpha" %)
* item 1
* item 2
| |
| Lowercase Roman list |
(% style="list-style-type: lower-roman" %)
* item 1
* item 2
| |
| Uppercase Roman list |
(% style="list-style-type: upper-roman" %)
* item 1
* item 2
| |
| Lowercase Greek list |
(% style="list-style-type: lower-greek" %)
* item 1
* item 2
| |
| Uppercase Greek list |
(% style="list-style-type: upper-greek" %)
* item 1
* item 2
| |
| Hiragana list |
(% style="list-style-type: hiragana" %)
* item 1
* item 2
| |
| Hiragana Iroha list |
(% style="list-style-type: hiragana-iroha" %)
* item 1
* item 2
| |
| Katakana list |
(% style="list-style-type: katakana" %)
* item 1
* item 2
| |
| Katakana Iroha list |
(% style="list-style-type: katakana-iroha" %)
* item 1
* item 2
| |
| Armenian list |
(% style="list-style-type: armenian" %)
* item 1
* item 2
| |
| Hebrew list |
(% style="list-style-type: hebrew" %)
* item 1
* item 2
| |
| Georgian list |
(% style="list-style-type: georgian" %)
* item 1
* item 2
| |
| CJK ideographic list |
(% style="list-style-type: cjk-ideographic" %)
* item 1
* item 2
| |
A new line is a carriage return. A line break is a forced new line that can appear anywhere in the text.
| Feature | XWiki Syntax 2.1 | Result |
|---|
| Absolute link to page PageB located in PageA | [[PageA.PageB]] | PageB |
| Relative link to page PageA from the current page | [[PageA]] or [[.PageA]] | PageA |
| Relative link to page PageB in PageA from the current page | [[.PageA.PageB]] | PageB |
| Link with a label | [[label>>PageA]] InformationXWiki Syntax is supported inside link labels. | label |
| Link with wiki syntax in the label | [[**bold label**>>PageA]] | bold label |
| Link on an image | [[image:PageA@img.png>>PageA]] |  |
| Absolute link to page PageB located in PageA in wiki WikiA | [[WikiA:PageA.PageB]] | PageB |
| Link that opens in a new window | [[PageA||target="_blank"]] | PageA |
| Implicit link to a URL | This is a URL: https://xwiki.org | This is a URL: https://xwiki.org |
| Explicit link to a URL | [[https://xwiki.org]] | https://xwiki.org |
| Explicit link to a URL with a label | [[XWiki>>https://xwiki.org]] | XWiki |
| Link to an email address | [[john@smith.net>>mailto:john@smith.net]] | john@smith.net |
| Link to an attachment on the current page | [[attach:img.png]] | img.png |
| Link to an attachment in a different page | [[attach:PageA.PageB@img.png]] | img.png |
| Link to an Anchor in a page | [[PageA.PageB||anchor="anchor"]] | PageB |
| Link to a Heading in a page | [[PageA.PageB||anchor="HMyheading"]] InformationWhen you add a Heading, an anchor named "H" followed by the heading title with only alpha characters is created. For example, for a Heading named "My heading", the generated anchor will be "HMyheading". | PageB |
| Link to an anchor in the current page | [[label>>||anchor="anchor"]] | label |
| Link to a page with a query string | [[PageA.PageB||queryString="param1=value1¶m2=value2"]] | PageB |
| Link to the current page with a query string | [[label>>||queryString="param1=value1¶m2=value2"]] | label |
Allows to easily create content in table format. Parameters for table, row or cell are also supported in XWiki Syntax 2.1.
Allow to enter content that will not be formatted (in other words the XWiki Syntax will not be taken into account).
Allows to quote some text.
Groups can be used to insert another document inline directly into the current document. This allows for example to insert complex elements or style inside a list item, inside a table cell or a paragraph. Groups are delimited by the following syntactic elements: (((...))). One Group can contain another Group and there is no limit of imbrication.
Позволяет экранировать XWiki-разметку.
With XWiki Syntax 2.1 it's possible to pass parameters to the different syntax elements and also to blocks of text. This is used for example to style them. You can set any parameter key/value pair you want. The XHTML renderer will pass these parameters as XHTML attributes to the underlying XHTML representation of the different syntax elements.
There is only one kind of macro in XWiki Syntax 2.1, which is called by the syntax: {{macroname param1="value1" ... paramN="valueN"}}...{{/macroname}}. For macros without content there's a short notation: {{macroname param1="value1" ... paramN="valueN"/}}
| ID | Название | Категории | Описание | Видимость |
|---|
| activity | Активность | Notifications | Макрос Активность предоставляет информацию о последней активности пользователей XWiki. Перечисляет события создания, редактирования и удаления страниц, а также добавления комментариев, вложений и аннотаций. | Глобально |
| async | Асинхронный макрос | Содержимое | Выполнить асинхронно и / или кэшировать содержимое макроса. | Глобально |
| attachmentSelector | Выбор вложенных файлов | Разработка | Элемент управления свойствами объекта текущей страницы, в которой содержатся имена вложенных файлов текущей (или целевой) страницы. Позволяет загружать новые вложения и удалять существующие с целевой страницы. Если целевая страница не указана, то используется текущая. Свойства объекта сохраняются только для текущей страницы. | Глобально |
| box | окно | Форматирование | Показать блок вокруг. | Глобально |
| button | Кнопка | | | Глобально |
| cache | Кэш | Разработка | Кэширует контент. | Глобально |
| chart | График | Содержимое | Показывает график полученный из различных источников данных | Глобально |
| children | Дочерние | Навигация | Отображает дерево дочерних страниц текущей страницы | Глобально |
| code | Код | Форматирование | Подсвеченные части кода различных языков программирования | Глобально |
| comment | Комментарий | Разработка | Позволяет вставлять комментарии в контент. Этот макрос ничего не выводит в текст страницы. | Глобально |
| container | Контейнер | Макет | Макрос для объединения нескольких групп и добавления декораций, как на выходе. | Глобально |
| content | Содержимое | Содержимое | Позволяет создавать контент в любой вики-разметке | Глобально |
| context | Контекст | Разработка | Исполняет содержимое в контексте переданных документов | Глобально |
| dashboard | Панель управления | Макет | Макрос для заполнения главной панели гаджетами. | Глобально |
| display | Показать страницу | Содержимое | Показать другие страницы в текущей. | Глобально |
| displayIcon | Icon | Содержимое | Display an icon. | Глобально |
| documents | Страницы | Содержимое | Показывает список страниц в таблице Livetable | Глобально |
| documentTree | Дерево страниц | Навигация | Отображает дерево страниц XWiki. | Глобально |
| error | Сообщение об ошибке | Форматирование | Показать сообщение об ошибке. | Глобально |
| example | Example | Форматирование | Shows an example and its source code. | Глобально |
| footnote | Сноска | Содержимое | Генерирует сноску внизу страницы. | Глобально |
| gallery | Галерея | Макет | Показать изображения, найденные в указанном контенте в режиме слайд-шоу. | Глобально |
| groovy | Groovy | Разработка | Выполнить groovy-скрипт. | Глобально |
| html | HTML | Разработка | Вставить HTML или XHTML-код на страницу. | Глобально |
| iconPicker | Выбор значков | Разработка | Выберите значок в наборе значков XWiki. | Глобально |
| id | ID | Навигация | Позволяет положить ссылку/расположение на страницу. Например, в HTML это называется якорями. Это позволяет указать расположение, например, в ссылках. | Глобально |
| include | Включить | Содержимое | Включить другие страницы в текущую. | Глобально |
| info | Информационное сообщение | Форматирование | Показать информационное сообщение. | Глобально |
| liveData | Живые данные | Содержимое | Отображает динамические списки данных. | Глобально |
| mention | Упоминание Пользователя | Notifications | Вставьте упоминание пользователя. | Глобально |
| menu | Меню | Навигация | Отображает меню, созданное с использованием простого синтаксиса вики (вложенные списки и ссылки). | Глобально |
| missingLicenseMessage | Missing License Message | Внутренний | Display an error message when the extension does not have a valid license. | Глобально |
| notifications | Уведомления | Notifications | Отображать уведомления о событиях, произошедших в вики. | Глобально |
| notificationsApplicationsPreferences | Настройки Приложений Уведомлений | Notifications | Отображение предпочтений текущего пользователя в отношении приложений уведомлений. | Глобально |
| notificationsAutoWatchPreferences | Настройки уведомлений Автонаблюдения | Notifications | Отображение предпочтений текущего пользователя в отношении Автонаблюдения за страницами. | Глобально |
| notificationsCustomFiltersPreferences | Notifications Custom Filters Preferences | Notifications | Display the preferences of the given user about custom notification filters. | Глобально |
| notificationsEmailPreferences | Notifications Email Preferences | Notifications | Display the preferences of the current user about notification emails. | Глобально |
| notificationsFiltersPreferences | Notifications Filters Preferences (deprecated) | Notifications | Display the preferences of the current user about notification filters. This macro is now deprecated in favor of Custom Notifications Filters Preferences or System Notifications Filters Preferences. | Глобально |
| notificationsSystemFiltersPreferences | Notifications System Filters Preferences | Notifications | Display the preferences of the given user about system notification filters. | Глобально |
| office | Просмотрщик документов Office | Содержимое | Просмотреть вложения Office(doc, ppt, xls, odt, odp, ods и т.д.) внутри wiki-страниц, без скачивания и импортирования. | Глобально |
| putFootnotes | Вставить сноски | Содержимое | Отображать все сноски на странице. Если они отсутствуют, по умолчанию все сноски отображаются в конце страницы. | Глобально |
| python | Python | Разработка | Выполнить python-скрипт. | Глобально |
| redmine | Redmine Ticket | | Listet Tickets vom Redmine Ticketsystem in einer Tabelle auf. | Глобально |
| script | Скрипт | Разработка | Исполнить скрипт в соответствующем интерпретаторе языка. | Глобально |
| success | Сообщение об успешном событии | Форматирование | Выводит сообщение об успешном завершении. | Глобально |
| tagcloud | Облако тегов | Содержимое | Отображать облако тегов для этой вики или указанного раздела, если имеется. | Глобально |
| template | Шаблон | Разработка | Вставить шаблон. | Глобально |
| toc | Содержание | Навигация | Генерирует "Содержание". | Глобально |
| translation | Перевод | Содержимое | Отобразить перевод сообщения. | Глобально |
| tree | Дерево | Навигация | Отображает древовидную иерархию, определенную содержимым макроса или параметром источника. | Глобально |
| uiextension | Расширение UI | Разработка | Вставить расширение UI. | Глобально |
| uiextensions | Расширения UI | Разработка | Вставить UI расширения. | Глобально |
| useravatar | Аватар пользователя | Содержимое | Разрешить показывать аватар для определенного пользователя. | Глобально |
| velocity | Velocity | Разработка | Исполняет Velocity-скрипт. | Глобально |
| warning | Предупреждение | Форматирование | Показывает предупреждение. | Глобально |
| wikimacrocontent | WikiMacro Content | Разработка | Display editable content of a wikimacro. | Глобально |
| wikimacroparameter | WikiMacro Parameter | Разработка | Display editable parameter of a wikimacro. | Глобально |