footnote

Last modified by Lucas Charpentier on 2026/10/27 10:28

Audit

Macro ID
footnote
Source
XS
Type
Wrapper
Classification reason
The macro output is the note the user types, shown at the end of the page; it only generates the number and the links between the number and the note, so it is a wrapper.
Status
Reviewed
Criteria version
15.20
XWiki version
18.8.0
Audit date
2026-10-14
Auditor
Compared macros
comment 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://extensions.xwiki.org/xwiki/bin/view/Extension/Footnote%20Macro#HUsage
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-footnotes/src/main/java/org/xwiki/rendering/internal/macro/footnote/FootnoteMacro.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, D3comment, box
Other sources specific to this macro
CriterionResultNotes
D1 wordingOK
D2 summaryKOminor: "Generates a footnote to display at the end of the page." repeats the name and only adds where the note goes. It does not say what the reader sees where the macro is inserted, a superscript number linking to the note, nor that the notes are listed at the end of the page, or where a {{putFootnotes/}} macro is placed.
D3 categoryOK
D4 quick-actionKOQuick Actions finds the macro first for "footnote", for the French name "Note de bas de page", and second for the synonym "note". The synonyms "endnote", "citation" and "reference" give no result.
L1 consistencyOKcompared with comment and box. Like comment, the content is mandatory with no default, the Quick Action opens the Edit Macro dialog and the content is typed in its text area. Box has an optional content and is inserted directly, but an empty footnote gives no sensible result, so the mandatory content is by design.
L2 doc-parametersKOthe macro is documented only on the legacy extensions.xwiki.org page, with no page in the new documentation. That page describes the content as "text" in a "Parameters definition" list and does not say that it is mandatory.
L3 doc-exampleOK
I1 patternKOthe reference wrapper, warning, is inserted by its Quick Action without a dialog; the footnote Quick Action opens the Edit Macro dialog, see I3, the generic behavior of macros without a dedicated Quick Action. Inserting the macro also adds a {{putFootnotes/}} macro at the end of the page source, silently, with no notice in the editor or the Edit Macro dialog explaining why: typing " /footnote", Enter, "My note" and submitting in a page holding "A sentence" saves A sentence {{footnote}}My note{{/footnote}} followed by a {{putFootnotes/}} paragraph.
I2 zero-configOKthe dialog cannot be submitted with the default values, since the content is mandatory and empty: it stays open, with no message, the generic behavior of the dialog. {{footnote/}} renders with no error, as a number and an empty note.
I3 instantKOinserting from the Quick Actions menu with "/footnote" and Enter opens the Edit Macro dialog with an empty Content text area; the macro is only inserted after typing a text and submitting.
I4 cursorKOafter submitting the dialog, the macro widget is selected and the cursor is not in its content. Text typed right away goes before the footnote number, not after it: inserting a footnote at the end of "A sentence" then typing "XYZ" gives A sentence XYZ{{footnote}}My note{{/footnote}} .
I5 focusN/A
E1 wysiwygOKthe editor shows the footnote number and the list of notes at the end of the page, like view mode.
E2 errorsN/Athe macro has no parameter and accepts any text as content, so there is no invalid value to test.
E3 nestingOKthe footnote renders in a list item, a table cell and a box, and a list, a table and a box render inside its content, the box as an inline box. Its content is edited through the dialog everywhere, as at the top level, see E6.
E4 inline-supportOK
E5 emptyKOminor: the empty macro keeps a visible footnote number, but it is a click target of about 6 by 20 pixels, below the 24 pixels of WCAG 2.5.8. Its content is edited through the dialog, counted under E6.
E6 inplaceKOthe content is wiki syntax, rendered with its formatting, like Text{{footnote}}**bold** [[link>>https://xwiki.org]]{{/footnote}}. , but it is declared as a plain string, so it is never edited in place: changing a footnote needs opening the Edit Macro dialog, where it is a plain text area of wiki syntax.

Parameters

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

C4: a plain text area in the Edit Macro dialog, counted under E6.

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 summaryXWIKI-25493
D4D4 quick-actionXWIKI-25444
L2L2 doc-parametersXINFRA-525
I1I1 patternXWIKI-25563
I3I3 instantXWIKI-25563
I4I4 cursorXWIKI-25569
E5E5 emptyXWIKI-25574
E6E6 inplaceXRENDERING-830
Success

Every KO is covered by a ticket.

Tickets

TicketOriginKOs coveredKOs partly covered
XWIKI-25444NewD4
XWIKI-25493NewD2
XINFRA-525NewL2
XWIKI-25563NewI1 I3
XRENDERING-830NewE6
XWIKI-25569NewI4
XWIKI-25574NewE5

Known issues of this macro

IssueTitleStatusCriteria
XRENDERING-784Allow macros to indicate their preferred modeOpenE4

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

Get Connected