Guide de syntaxe XWiki

Modifié par Admin le 24/03/2023 - 15:51

Syntaxe XWiki 2.1: Macros

2.0 Macros

En syntaxe XWiki 2.0, il y a aussi deux types de macros:

  • Les macros Velocity appelées en utilisant la syntaxe #macroname(param1 ... paramN) dans la Macro Velocity
  • Les macros XWiki appelées en utilisant la syntaxe{{macroname param1="value1" ... paramN="valueN"}}

Pour accéder à la liste de toutes les macros disponibles, allez à la page de référence des macros.

FonctionnalitéSyntaxe XWiki 2.1Résultat
Macro
{{code language="java"}}
System.out.println("Hello World!");
{{/code}}
System.out.println("Hello World!");

Les macros Radeox ne peuvent pas être utilisées en syntaxe XWiki 2.0. C'est la raison pour laquelle elles ont été ré-écrites comme des macros XWiki. 

Pour accéder à la liste de toutes les macros disponibles, allez sur Extensions wiki.

Macros dans ce wiki

IdNomCatégoriesDescriptionVisiblité
activityActivitéNotificationsLa macro Activity affiche l'activité récente des utilisateurs dans le wiki, elle fournit des information concernant les pages (création, édition, suppression) ainsi que sur les annotations, les commentaires et les pièces jointes.Wiki courant
anchorLegacy Confluence bridge for AnchorObsolèteLegacy Confluence bridge for AnchorWiki courant
asyncmacro asyncContenuExécution asynchrone et/ou mise en cache du contenu de la macro.Globale
attachmentGalleryPickerSélecteur de pièces jointesDéveloppementGrille de sélection des pièces jointes.Globale
attachmentSelectorSélecteur de pièce jointeDéveloppementUn contrôle à utiliser pour les propriétés de l'objet du document actuel qui sont censées contenir le nom d'une pièce jointe à partir du document courant (ou cible). Autorise le chargement de nouvelles pièces jointes, et la suppression des pièces jointes à partir du document cible. Si aucun document cible n'est spécifié, le document actuel sera utilisé. Les propriétés de l'objet ne sont enregistrées que dans le document actuel.Wiki courant
awmkanbanKanban board for AppWithinMinutesDisplay XWiki Documents from an AWM as a Kanban board (see https://en.wikipedia.org/wiki/Kanban_board).Globale
boxBoîteFormatAffiche une boîte autour du contenu entré.Globale
buttonButton MacroInsert a noticeable, clickable button on your XWiki page to highlight links and create call to actions!Globale
cacheCacheDéveloppementContenu des caches.Globale
chartGraphiqueContenuAffiche un graphique généré à partir d'une source de donnéesGlobale
childrenChildrenNavigationDisplays a tree of children pages of the current pageWiki courant
codeCodeFormatPermet d'afficher des lignes de code dans un langage informatique donnéGlobale
columnConfluence bridge for ColumnObsolèteConfluence bridge for the Column macro.Globale
commentCommentaireDéveloppementPermet d'ajouter des commentaires dans le contenu source. Cette macro ne produit rien.Globale
confluence_attachmentsConfluence bridge for AttachmentsConfluenceConfluence bridge for the Attachment macroWiki courant
confluence_childrenConfluence bridge for ChildrenConfluenceConfluence bridge for the Children macro using the XWiki document tree macro.Globale
confluence_columnConfluence bridge for ColumnConfluenceConfluence bridge for the Column macro.Wiki courant
confluence_contentbylabelConfluence bridge for Content by labelConfluence Bridge for the Content by label macro
confluence_detailsConfluence bridge for DetailsConfluence Bridge for the Details (Page Properties) macro. It allows defining property key-value pairs in a table contained in the macro. Globale
confluence_detailssummaryConfluence bridge for Details SummaryConfluence bridge for the Details Summary (Page Properties Report) macro to display properties attached to a page using the Details macro.Globale
confluence_drawioConfluence bridge for DrawioConfluenceConfluence Bridge for the Drawio macro. By default it displays the PNG file used by the Drawio macro to preview the diagram. The user has the option to convert the diagram into an XWiki Diagram for being able to modify it.Globale
confluence_galleryConfluence bridge for GalleryConfluenceConfluence Bridge for the Gallery macro.Globale
confluence_gliffyConfluence bridge for GliffyConfluenceConfluence Bridge for the Gliffy macro. By default it displays the PNG file used by the Gliffy macro to preview the diagram. The user has the option to convert the diagram into an XWiki Diagram for being able to modify it.Globale
confluence_layoutConfluence bridge for LayoutConfluenceConfluence bridge macro for the Layout macro to define a layout, containing layout sections (using the confluence_layout-section macro).Globale
confluence_layout-cellConfluence bridge for Layout CellConfluenceConfluence bridge for the Layout Cell macro. It is used for defining a part a layout section, used inside the confluence_layout-section macro.Globale
confluence_layout-sectionConfluence bridge for Layout SectionConfluenceConfluence bridge for the Layout Section macro. It is used to define a section of a layout, used inside the layout macro and containing layout cells.Wiki courant
confluence_mathblockConfluence bridge for MathblockConfluenceConfluence bridge for the Mathblock macro (LaTeX math block expressions).Globale
confluence_mathblock-refConfluence bridge for Mathblock ReferenceConfluenceConfluence bridge macro for the Mathblock Reference macroGlobale
confluence_mathinlineConfluence bridge for MathinlineConfluenceConfluence bridge macro for the Mathinline macro (LaTeX math inline expressions).Globale
confluence_mockupConfluence bridge for MockupConfluenceConfluence Bridge for the Balsamiq Mockup macro. It only displays the image preview of the mockup. Globale
confluence_multimediaConfluence bridge for MultimediaConfluenceConfluence Bridge for the Multimedia macro.Globale
confluence_noteConfluence bridge for NoteConfluenceConfluence bridge for the Note macro to the XWiki Success macroGlobale
confluence_outgoing-linksConfluence Outgoing LinksContenuConfluence bridge macro for outgoing-links.Globale
confluence_pagetreeConfluence bridge for Page TreeConfluenceConfluence Bridge for the Confluence Page Tree macro to the XWiki documentTree macro.Globale
confluence_paste-code-macroConfluence bridge for Paste Code MacroConfluenceConfluence bridge for the Confluence Paste Code macro to the XWiki Code macroGlobale
confluence_sectionConfluence bridge for SectionConfluenceConfluence bridge for the Section macro
confluence_timeConfluence bridge for TimeConfluenceConfluence bridge for the Time macroGlobale
confluence_tipConfluence bridge for TipConfluenceConfluence bridge for the Tip macro to the XWiki Success macroGlobale
confluence_wireframeConfluence bridge for Balsamiq WireframeConfluenceConfluence Bridge for the Balsamiq Wireframe macro. It only displays the image preview of the wireframe.Globale
containerConteneurMise en pageMacro permettant de réunir plusieurs groupes et d'ajouter des décorations comme la mise en page.Globale
contentContenuContenuAutorise tous les types de langages wiki dans le contenuGlobale
content-report-tableContent Report Table MacroProvides a content report in table format, based on labels.Globale
contextContexteDéveloppementExecute le contenu dans le contexte du document passé en paramètreGlobale
contributorsContributorsContributors Confluence Bridge macro to show the contributors of a given document.Globale
dashboardTableau de bordMise en pageMacro permettant de définir un tableau de bord à remplir avec des gadgets.Globale
dateDateUse the date macro to set and format due dates within task macros and more!Globale
diagramDiagrammeContenuAffiche un diagramme.Wiki courant
displayAffichageContenuAffiche d'autres pages dans la page courante.Globale
displayIconIconContenuDisplay an icon.Globale
documentsDocumentsContenuAffiche la liste des documents dans un tableau dynamiqueWiki courant
documentTreeArborescenceNavigationAffiche l'arborescence des pages XWiki.Wiki courant
drawioLegacy unprefixed Confluence bridge for DrawioObsolèteLegacy Unprefixed Confluence Bridge for the Drawio macro. By default it displays the PNG file used by the Drawio macro to preview the diagram. The user has the option to convert the diagram into an XWiki Diagram for being able to modify it.Globale
errorMessage d'erreurFormatPermet d'afficher un message d'erreur.Globale
exampleExampleFormatShows an example and its source code.Globale
excerptExcerptBridge for the Confluence Excerpt macro. It marks part of the page's content for use by other macros.Globale
excerpt-includeExcerpt includeContenuIncludes excerpts from other documents into the current page. The included pages need to contain the simple `excerpt` macro.Globale
expandExpandAdd the Expand macro to your page to provide content in an expandable / collapsible section.

This is one of Confluence's most popular macros. It's great for: visually reducing the amount of information on a page, breaking process information down into clickable steps, hiding background or obsolete information, while still keeping it on the page for future reference.

The macro is collapsed by default, people need to click each one to expand it. There's no way to expand all macros on a page at once, however all Expand macros are automatically expanded when you print or export the page to PDF.
Wiki courant
footnoteNote de bas de pageContenuGénère une note qui sera affichée en bas de page.Globale
galleryGalerieMise en pageAffiche les images trouvées dans le contenu fourni en mode présentation / galerie.Globale
gliffyLegacy unprefixed Confluence bridge for GliffyObsolèteLegacy Unprefixed Confluence Bridge for the Gliffy macro. By default it displays the PNG file used by the Gliffy macro to preview the diagram. The user has the option to convert the diagram into an XWiki Diagram for being able to modify it.Globale
groovyGroovyDéveloppementExécute un script Groovy.Globale
htmlHTMLDéveloppementPermet d'insérer du code HTML ou XHTML dans la page.Globale
iconPickerSélecteur d'icônesDéveloppementSélectionnez une icône dans le set d'icônes XWiki.Wiki courant
idAncreNavigationPermet d'insérer une ancre au sein d'une page. Elle permettra de créer un lien vers cet endroit précis de la page.Globale
includeInclureContenuPermet d'inclure une autre page dans la page courante.Globale
infoMessage d'informationFormatPermet d'afficher un message d'information.Globale
jobJobDéveloppementExecute the macro content asynchronously and display progress.Globale
jobprogressJob ProgressInterneProvide a UI to follow asynchronous job progressionWiki courant
jwplayerJW PlayerContenuJW Player est un lecteur multimédia open source intégrable dans les sites web, supportant un grand nombre de formats audio et vidéo. Le lecteur est facile à configurer, personnaliser et est extensible.Wiki courant
kanbanKanbanKanban macro allowing to display and edit a kanbanWiki courant
kanbanboardKanban board - Task ManagerDisplay the tasks as a Kanban board (see https://en.wikipedia.org/wiki/Kanban_board).Wiki courant
layoutLegacy unprefixed Confluence bridge for LayoutObsolèteLegacy Unprefixed Confluence bridge macro for the Layout macro to define a layout, containing layout sections (using the confluence_layout-section macro).Globale
layout-cellLegacy unprefixed Confluence bridge for Layout CellObsolèteLegacy Unprefixed Confluence bridge for the Layout Cell macro. It is used for defining a part a layout section, used inside the confluence_layout-section macro.Globale
layout-sectionLegacy unprefixed Confluence bridge for Layout SectionObsolèteLegacy Unprefixed Confluence bridge for the Layout Section macro. It is used to define a section of a layout, used inside the layout macro and containing layout cells.Globale
liveDataLive DataContenuAffiche des listes dynamiques de données.Globale
locationSearchRecherche par emplacementRecherche à l'emplacement donné.Wiki courant
mathblockLegacy unprefixed Confluence bridge for MathblockObsolèteLegacy Unprefixed Confluence bridge for the Mathblock macro (LaTeX math block expressions).Globale
mathblock-refLegacy unprefixed Confluence bridge for Mathblock ReferenceObsolèteLegacy Unprefixed Confluence bridge macro for the Mathblock Reference macroGlobale
mathinlineLegacy unprefixed Confluence bridge for MathinlineObsolèteLegacy Unprefixed Confluence bridge macro for the Mathinline macro (LaTeX math inline expressions).Globale
mathjaxMathJaxcontentWiki courant
mentionMention UtilisateurNotificationsInsert une mention utilisateur.Wiki courant
menuMenuNavigationAffiche un menu créé en utilisant une syntaxe wiki simple (listes imbriquées et liens).Globale
messageSenderEmetteur du messageSocialUn contrôle qui permet aux utilisateurs d'entrer des messages qui sont gérés par le module de MessageStream.Wiki courant
missingLicenseMessageMissing License MessageDisplay an error message when the extension does not have a valid license.Globale
mockupLegacy unprefixed Confluence bridge for MockupObsolèteLegacy Unprefixed Confluence Bridge for the Balsamiq Mockup macro. It only displays the image preview of the mockup. Globale
msStreamMicrosoft StreamEmbed a Microsoft Stream video in a page by simply passing the URL and any customization parameters.Globale
multimediaLegacy unprefixed Confluence bridge for MultimediaObsolèteLegacy Unprefixed Confluence Bridge for the Multimedia macro.Globale
net-presago-stream-macroLegacy Confluence bridge for Microsoft StreamObsolèteLegacy Confluence bridge for Microsoft Stream.
noteLegacy unprefixed Confluence bridge for NoteObsolèteLegacy Unprefixed Confluence bridge for the Note macro to the XWiki Success macroGlobale
notificationsNotificationsNotificationsAffiche des notifications liées à l'activité du wiki.Wiki courant
notificationsApplicationsPreferencesPréférences de notificationNotificationsAffiche les préférences de notification de l'utilisateur courant.Wiki courant
notificationsAutoWatchPreferencesPréférences pour les notifications d'abonnement automatiqueNotificationsAffiche les préférences de l'utilisateur pour les notifications d'abonnement automatique aux pages.Wiki courant
notificationsCustomFiltersPreferencesNotifications Custom Filters PreferencesNotificationsDisplay the preferences of the given user about custom notification filters.Wiki courant
notificationsEmailPreferencesNotifications Email PreferencesNotificationsDisplay the preferences of the current user about notification emails.Wiki courant
notificationsFiltersPreferencesNotifications Filters Preferences (deprecated)NotificationsDisplay 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.
Wiki courant
notificationsSystemFiltersPreferencesNotifications System Filters PreferencesNotificationsDisplay the preferences of the given user about system notification filters.Wiki courant
officeLiseuse de Document OfficeContenuVoir les pièces jointes office (doc, ppt, xls, odt, odp, ods etc.) au sein des pages wiki sans besoin de les télécharger ou de les importer.Globale
pagetreeLegacy unprefixed Confluence bridge for Page TreeObsolèteLegacy Unprefixed Confluence Bridge for the Confluence Page Tree macro to the XWiki documentTree macro.Globale
panelPanel MacroPanel macro to display XWiki content inside a panel.Wiki courant
paste-code-macroLegacy unprefixed Confluence bridge for Paste Code MacroObsolèteLegacy Unprefixed Confluence bridge for the Confluence Paste Code macro to the XWiki Code macroGlobale
pdftocPDF Table of ContentsInterneGenerates the table of contents for the PDF export.Globale
pdfviewerPDF ViewerContenuPDF Viewer basé sur Mozilla pdf.jsGlobale
profile-pictureProfile PictureConfluence Profile Picture macroGlobale
putFootnotesAfficher les notes de bas de pageContenuPermet d'afficher les notes de bas de page présentes jusqu'à ce point dans le document. Le cas échéant, les notes de bas de page seront affichées en bas de la page.Globale
pythonPythonDéveloppementExécute un script Python.Globale
recently-updatedRecently UpdatedAdd the Recently Updated macro to a page to show a list of pages, blogs, files, and comments that have been created or edited recently. This is great for project landing, information pages, or team space home pages. It's very flexible, you can limit the list to specific people, spaces, types of content, and more.Wiki courant
scriptScriptDéveloppementExécute un script dans le langage indiqué.Globale
sectionConfluence bridge for SectionObsolèteConfluence bridge for the Section macro.Globale
spaceindexIndex des espacesObsolèteListe les documents d'un espace.Wiki courant
statusStatusInsert a colored label in the text to highlight the status of an item.Wiki courant
successMessage en cas de succèsFormatAffiche un message en cas de succès.Globale
tagcloudNuage de tagContenuAffiche le nuage de tags du wiki courant ou de l'espace spécifié.Wiki courant
tagListTag listShow a list of all the macros in your instance.Globale
taskTaskCreate a task that you can assign an user to using the mention macro and use the date macro to set a deadline.Globale
task-reportTask report macroCreate a custom report of the tasks within the wiki.Wiki courant
taskcardTask cardDisplay a task and its information as a card.Wiki courant
tasksTasksDisplay one or more tasks identified by their IDs.Globale
tasks-report-macroConfluence Tasks Report MacroWiki courant
teamTeamDisplay avatars of the members of a team.Wiki courant
templateTemplateDéveloppementInsérer un template.Globale
timeTimeFormatWiki courant
tipLegacy unprefixed Confluence bridge for TipObsolèteLegacy Unprefixed Confluence bridge for the Tip macro to the XWiki Success macroGlobale
tocTable des matièresNavigationGénère une table de matières.Globale
translationTraductionContenuAffiche un message de traduction.Globale
treeArbreNavigationAffiche une hiérarchie de l'arborescence définie par le contenu de la macro ou le paramètre source.Wiki courant
uiextensionExtension UIDéveloppementInsérez une extension UI.Globale
uiextensionsExtensions UIDéveloppementInsérer les extensions UI.Globale
useravatarAfficher la photo de profilContenuPermet d'afficher l'avatar d'un utilisateur donné.Globale
userListUser ListContenuDisplays a list of users with a customizable set of their propertiesGlobale
userlisterLegacy Confluence bridge for User ListerLegacy Confluence bridge for User Lister.Wiki courant
userProfileUser ProfileContenuDisplays a user profile with custom propertiesGlobale
velocityVelocityDéveloppementExécute un script Velocity.Globale
videoVideoContenuDisplay in your wiki page any video from Youtube, Dailymotion, Google Video or Vimeo.

Also play a video attached to your wiki page using Video.js library. mp4, webm and ogv formats are supported.

The video macro can also plays a DASH video (Dynamic Adaptive Streaming over HTTP).
Wiki courant
view-fileView FilesShow files using PDF Viewer Macro or Office ViewerWiki courant
viewdocLegacy Confluence bridge for View Office WordObsolèteLegacy Confluence bridge for View Office Word.Wiki courant
viewpdfLegacy Confluence bridge for View PDFObsolèteLegacy Confluence bridge for View PDF.Wiki courant
viewpptLegacy Confluence bridge for View Office PowerPointObsolèteLegacy Confluence bridge for View Office PowerPoint.Wiki courant
viewxlsLegacy Confluence bridge for View Office ExcelObsolèteLegacy Confluence bridge for View Office Excel.Wiki courant
warningMessage d'avertissementFormatPermet d'afficher un message d'avertissement.Globale
wikimacrocontentWikiMacro ContentDéveloppementDisplay editable content of a wikimacro.Globale
wikimacroparameterWikiMacro ParameterDéveloppementDisplay editable parameter of a wikimacro.Globale
wikisWikisNavigationListe de tous les wikisWiki courant
wireframeLegacy unprefixed Confluence bridge for Balsamiq WireframeObsolèteLegacy Unprefixed Confluence Bridge for the Balsamiq Wireframe macro. It only displays the image preview of the wireframe.Globale
workspacesEspaces de travail (obsolète)ObsolèteCette macro est dépréciée et ne doit plus être utilisée pour des raisons de compatibilité. Merci de la remplacer par un macro "wikis".Wiki courant