info

Last modified by Lucas Charpentier on 2026/10/13 16:37

Audit

Macro ID
info
Source
XS
Type
Wrapper
Classification reason

Status
In progress
Criteria version
15.17
XWiki version
18.8.0
Audit date

Auditor
Compared macros
warning box

Sources

Where to gather the information the criteria are checked against, see Gather the sources.

SourceWhat it givesUsed forWhere
DocumentationParameters, default values and examples, including the most common exampleL2, L3, and the criteria measured with the most common examplehttps://www.xwiki.org/xwiki/bin/view/documentation/xs/user/base/page/edit/info-macro/
Source codeHow the macro declares its parameters and content: types, groups, features, advanced and hidden flags, constraints, content type, inline supportC4, C5, C7, C8, C9, C13, E4, E6https://github.com/xwiki/xwiki-rendering/blob/xwiki-rendering-18.8.0/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/java/org/xwiki/rendering/internal/macro/message/InfoMessageMacro.java
Macro descriptorWhat the Edit Macro dialog is built from, on design.xwiki.orgD1, D2, C1 to C9, E4Descriptor, list of macros with their categories
TranslationsThe name, description and parameter names in each languageD1, D2, D4, C1l10n.xwiki.org
Uses in XWiki pagesHow XWiki itself uses the macro, a realistic example when the documentation has noneL3, C2, C3, C6, C8, C9Search the xwiki organization on GitHub
Compared macrosThe audits of the macros of the same typeL1, D3warning, box
Other sources specific to this macro
CriterionResultNotes
D1 wordingOK
D2 summaryKOthe description "Displays an info message note." repeats the name, and does not say that the message is shown in a highlighted box with an info icon.
D3 categoryOK
D4 quick-actionKOQuick Actions finds the macro for "info" and the French name "Message d'information", under the name "Info Box": the macro name "Info Message" and the German name "Informationshinweis" give no result. The synonyms "note", "information", "callout" and "tip" do not find it. In the Insert Macro dialog, "note" finds it in 3rd position.
L1 consistencyOKcompared with warning and box. warning behaves the same, it shares the same Java class. box differs by design: its content is optional and its Quick Action inserts an empty box.
L2 doc-parametersOK
L3 doc-exampleOK
I1 patternOK
I2 zero-configOK
I3 instantOK
I4 cursorKOminor: after insertion from Quick Actions, the cursor is at the start of the default text "Type your information message here.", which is real content and is not selected: typing adds to it, and the user has to delete it.
I5 focusN/A
E1 wysiwygOK
E2 errorsKOinvalid values are accepted silently, with no message. For example, {{info width="abc"}}This is an informational message{{/info}} renders with style="width:abc" and no error; {{info image="missing.png"}}This is an informational message{{/info}} renders a broken image, with no attachment missing.png on the page; {{info status="maybe"}}This is an informational message{{/info}} is read as false.
E3 nestingKOin a list item and in a table cell the info macro is inline, and its content cannot be edited in place: the content span is not editable. A list, a table and a box can be edited inside its content.
E4 inline-supportOK
E5 emptyOKthe emptied content stays a full-width area that one click puts the cursor in. CKEDITOR-267, content duplicated after deleting and undoing, is not part of the measure.
E6 inplaceKOthe content of a standalone info macro is edited in place, but the Edit Macro dialog still shows it as a wiki syntax text area, also when editing an existing one. The content of an inline info macro can only be edited through that text area.

Parameters

ParameterC1 clarityC2 mandatoryC3 defaultsC4 input-assistanceC5 groupsC6 orderC7 alternativesC8 advancedC9 technicalC13 constraintsNotes
$contentOKOKN/AOKN/AOKN/AN/AN/AN/A
cssClassKOOKOKOKOKOKN/AOKOKN/A

C1: shown as "CssClass" with the description "A CSS class to add to the box element", technical terms. The parameters inherited from box have no translation keys for the info macro, so the dialog shows the parameter ID in every language.

imageOKOKOKKOOKOKN/AOKOKN/A

C4: a free text field, with no image picker; a reference to a missing attachment is accepted.

statusOKOKOKOKOKOKN/AOKOKN/A
titleOKOKOKOKOKOKN/AOKOKN/A
widthOKOKOKOKOKOKN/AOKOKKO

C13: only accepts a CSS length "in px or %", but declares no format: "abc" is accepted and output as style="width:abc".

KOs and tickets

Every KO needs a ticket covering it, see Report the KOs. One ticket can cover several KOs. Known issues filed for this macro are suggested in italics: link them as existing tickets when they cover the KO.

KOCriterionExisting ticketsNew tickets
D2D2 summary
D4D4 quick-action
I4I4 cursor
E2E2 errors
E3E3 nestingKnown: XWIKI-23623
E6E6 inplace
C1:cssClassC1 clarity, cssClass
C4:imageC4 input-assistance, image
C13:widthC13 constraints, width
Warning

9 of the 9 KOs are not covered by a ticket yet.

Known issues of this macro

IssueTitleStatusCriteria
CKEDITOR-267Content gets duplicated for macros that can be inline edited, after deleting and undoing the deletion of contentOpenE5
XWIKI-19959Selecting some text and clicking Insert > Info Box Macro should put the selected content in the macro contentOpen
XWIKI-22028CKEditor / Xwiki 2.1 Syntax: Multi-paragraph Highlighting BoxesOpen
XWIKI-23623Table cell actions not available in WYSIWYG when inside macro with in-line editable contentOpenE3

69 more known issues affect every macro: see the Known issues.

Doc: https://extensions.xwiki.org/xwiki/bin/view/Extension/Info%20Macro#HUsage

Parameters:

  • Message parameters

Quick action? ✅

Open the dialog with: Double click on the macro body.

Just inserted screenshot:

1739463975528-894.png

Default dialog screenshot:

1739464000716-537.png

Extended dialog screenshot:

1739464011787-639.png

JIRA issues

Query used to look for existing issues:

None

Issues that already existed:

None

Issues created by this analysis:

None

Get Connected