XWiki Syntax 2.1: Macros

2.0 Macros

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"/}}

FeatureXWiki Syntax 2.1Result
Rendering Macro with a content
{{code language="java"}}
System.out.println("Hello World!");
{{/code}}
System.out.println("Hello World!");
Rendering Macro without content

{{include reference="Space.Page"/}}

The referenced page is included in the current page

Radeox macros cannot be used in XWiki Syntax 2.1. Thus they have been rewritten as Rendering macros.

For the full list of available macros check the Extensions wiki.

Macros in this wiki

IdNameCategoryDescriptionVisibility
tocTable Of ContentsNavigationGenerates a Table Of Contents.Global
exampleExampleFormattingShows an example and its source code.Global
mentionUser MentionInsert a user mention.Current Wiki
tabsTabbed view rendererContentCreates tabbed view for content areas wrapped into <div /> with unique id (see macro home for details)Current Wiki
blogPostLayoutImageBlog Post Layout ImageThis macro is used to display a full blog post with a thumbnail imageCurrent Wiki
asyncAsyncContentAsynchronous and cached execution of wiki content.Global
spaceindexSpace IndexDeprecatedLists documents in a space.Current Wiki
jsJavaScript-CodecontentFügt JavaScript-Beispielscode in verschiedenen Varianten ein. Hier sollte modernes JavaScript verwendet werden. Es muss zudem JavaScript für IE angelegt werden, hierzu ist Makro jsIE zu benutzen.Global
jsIEJavaScript-Code (Legacy / IE)contentJavaScript-Beispielscode für alte Browser (Internet Explorer). Muss zusammen mit dem Makro "js" verwendet werden.Global
iconFont Awesome iconIconsInserts a Font Awesome iconCurrent Wiki
spacesSpacesDeprecatedDisplays all the spaces in this wiki.Current Wiki
externalVimeoVideoExternal Vimeo VideoContentTBDCurrent Wiki
errorError MessageFormattingDisplays an error message note.Global
warningWarning MessageFormattingDisplays a warning message note.Global
workspacesWorkspacesDeprecatedDeprecated macro that should not be used, here for compatibility reason. Please use the "wikis" macro instead.Current Wiki
contextContextDevelopmentExecutes content in the context of the passed documentGlobal
internBaseOptionsElementinternBaseOptionsElementContentInternes Makro, welches nur im Bereich "Elemente" im Designer genutzt wird.Current Wiki
rssRSSContentOutput latest feed entries from a RSS feed.Global
tableTableContentWrapper für Tabellen, um zusätzliche Optionen für Tabellen festzulegen. Die Tabelle wird wie üblich mit XWiki-Syntax geschrieben.Current Wiki
successSuccess MessageFormattingDisplays a success message note.Global
templateTemplateDevelopmentInsert a template.Global
chartChartContentDisplays a graphical chart generated from miscellaneous data sourcesGlobal
notificationsAutoWatchPreferencesNotifications Auto Watch PreferencesNotificationsCurrent Wiki
externalURLcheckboxExternal URL Redirect Accept ConditionsContentDisplays a Checkbox that has to be checked by the user in order to show the real link to the external pageCurrent Wiki
panelPanelContentPanel.Current Wiki
containerContainerLayoutA macro to enclose multiple groups and add decoration, such as layout.Global
jsdocjsdocInserts a link to the JavaScript documentation, currently available at https://jsdocs.formcycle.eu/jsdocs/en and https://jsdocs.formcycle.eu/jsdocs/de

When the URL to the docs change, it only needs to be changed in this macro.|Global

formcloudFormcloudContentDer Text für FORMCLOUD.Current Wiki
javadocjavadocInserts a link to the JavaDoc, currently available at https://docs.formcycle.eu/

When the URL to the docs change, it only needs to be changed in this macro.|Global

pythonPythonDevelopmentExecutes a python script.Global
blogPostLayoutCardsCards Blog Post LayoutThis macro is used to display a blog post using the 'Cards' layoutCurrent Wiki
scriptScriptDevelopmentExecute script in provided script language.Global
releaseReleaseContentThe content of this macro is displayed differently depending on the current release. If the version is not released yet, the contents are hidden. Otherwise, the content is shown, possibly with a note indicating its required version.
Current Wiki
urlboxURL-BoxContentCurrent Wiki
useravatarUser AvatarContentAllows displaying the avatar for a specific user.Global
dashboardDashboardLayoutA macro to define a dashboard.Global
wikisWikisNavigationList all wikisCurrent Wiki
cacheCacheDevelopmentCaches content.Global
blogPostLayoutCompactBlog Post Layout CompactThis macro is used to display a full blog post in a compact modeCurrent Wiki
formcycleFormcycleContentDer Text für Formcycle, damit der Produktname einheitlich wird.Current Wiki
subpagesSub PagesContentGlobal
feerequiredfeerequiredContentAnzeige eines Hinweises, dass etwas kostenpflichtig ist.Current Wiki
notificationsFiltersPreferencesNotifications Filters PreferencesNotificationsDisplay the preferences of the current user about notification filters.Current Wiki
notificationsNotificationsNotificationsCurrent Wiki
MainMenuTilesMainMenuTilesContentErzeugen der Kacheln für die Startseite.Global
velocityVelocityDevelopmentExecutes a Velocity script.Global
pdfviewerpdfviewerContentPDF Viewer based on Mozilla pdf.jsCurrent Wiki
versionversionContentAnzeige von Inhalt in Abhängigkeit der aktuellen Version bzw. Anzeige von Versionsinfos. Einstellung der aktuellen Version auf der Seite https://help6.formcycle.de/xwiki/bin/view/Customization/FCVersionCurrent Wiki
enquoteenquoteErzeugt englische Anführungszeichen (69 oben) um den Text.Global
wikimacroparameterWikiMacro ParameterDevelopmentDisplay editable parameter of a wikimacro.Global
lightboxLightbox ImageContentAdd a click-enlargeable image. Global
MainMenuTileMainMenuTileMainMenuTileMainMenuTileGlobal
codeCodeFormattingHighlights code snippets of various programming languagesGlobal
idIdNavigationAllows putting a reference/location in a page. In HTML for example this is called an Anchor. It allows pointing to that location, for example in links.Global
includeIncludeContentInclude other pages into the current page.Global
ttipTooltipContentZum Anzeigen von Tooltips für Zusatzinformationen.Current Wiki
iconPickerIcon PickerDevelopmentSelect an icon within the XWiki icon set.Current Wiki
formulaFormulaContentDisplays a mathematical formula.Global
wikimacrocontentWikiMacro ContentDevelopmentDisplay editable content of a wikimacro.Global
blogPostLayoutFullBlog Post Layout FullThis macro is used to display a full blog postCurrent Wiki
gdprSettingsGdpr settingsGet what kind of cookies the current user has consented to. (preferences, statistics or marketing)Current Wiki
filetagcloudFileManager tag cloudContentDisplays the cloud of file tags in this wiki or in the specified space, if any.Current Wiki
italicItalicsContentSetzt Text kursiv.Current Wiki
boxBoxFormattingDraw a box around provided content.Global
rarrowRight ArrowContentCurrent Wiki
videoVideoContentDisplay 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).|Current Wiki

fserverFrontendserverContentDer Text für den Frontendserver, damit der Name einheitlich wird.Current Wiki
messageSenderMessage SenderSocialA control that allows users to enter messages that are handled by the MessageStream module.Current Wiki
childrenChildrenNavigationDisplays a tree of children pages of the current pageCurrent Wiki
displayDisplayContentDisplay other pages into the current page.Global
translationTranslationContentDisplay a translation message.Global
ficonficonContentFügt ein Icon aus dem FORMCYCLE-Font ein.Global
subpagesalphaSub Pages AlphabeticalContentCurrent Wiki
infoInfo MessageFormattingDisplays an info message note.Global
treeTreeNavigationDisplays a tree hierarchy defined by the macro content or the source parameter.Current Wiki
fcserverFormcycle-ServerContentDer Text für Formcycle, damit der Produktname einheitlich wird.Current Wiki
blogsBlogs LivetableThe blogs macro is used to list on a livetable all the blog available on the wiki Current Wiki
documentTreeDocument TreeNavigationDisplays the tree of XWiki documents.Current Wiki
localizeLocalizeContentMakro, dessen Inhalt nur angezeigt wird, wenn die Wiki in der angegebenen Sprache aufgerufen wird. Sinnvoll für Seiten wie den Blog, die sich nicht lokalisieren lassen. Dann können einfach alle Sprachversion auf eine Seite gesetzt werden.Current Wiki
fileManager.recentFilesRecent FilesContentLists the files that have been recently uploaded through the File Manager.Current Wiki
smallcapsSmall CapsContentEchte Kapitälchen.Current Wiki
notificationsEmailPreferencesNotifications Email PreferencesNotificationsDisplay the preferences of the current user about notification emails.Current Wiki
tagcloudTag CloudContentDisplays the cloud of tags in this wiki or in the specified space, if any.Current Wiki
activityActivity (legacy)NotificationsProvide a macro implemented with the Notifications Application to keep a backward compatibility with Activity Stream.Current Wiki
i18nNounInternationalized NounContentFügt ein Wort oder eine Wortgruppe für eine bestimmte Sprache ein. Dies wird insbesonders für Produktnamen genutzt, damit diese einheitliche geschrieben sind.Current Wiki
blogPostLayoutLinkBlog Post Layout LinkThis macro is used to display a blog post as a simple linkCurrent Wiki
commentCommentDevelopmentAllows putting comments in the source content. This macro doesn't output anything.Global
htmlHTMLDevelopmentInserts HTML or XHTML code into the page.Global
contentContentsContentBesseres Inhaltsverzeichnis.Current Wiki
litemList ItemContentZeile einer Liste. Optional mit Titel, der entsprechend dargestellt wird.Current Wiki
jpathjpathContentName zu einer Javaklasse, Package etc.Current Wiki
officeOffice Document ViewerContentView office attachments (doc, ppt, xls, odt, odp, ods etc.) inside wiki pages without downloading or importing them.Global
galleryGalleryLayoutDisplays the images found in the provided content using a slide-show view.Global
figureFigureContentEine Abbildung mit Bildunterschrift.Current Wiki
putFootnotesPut FootnoteContentDisplays the footnotes defined so far. If missing, all footnotes are displayed by default at the end of the page.Global
attachmentSelectorAttachment SelectorDevelopmentA control to be used for object properties of the current document that are supposed to contain the name of an attachment from the current (or target) document. Allows uploading new attachments, and deleting attachments from the target document.  If no target document is specified, the current document will be used. Object properties are only saved to the current document.Current Wiki
notificationsApplicationsPreferencesNotifications Applications PreferencesNotificationsDisplay the preferences of the current user about notification applications.Current Wiki
menuMenuNavigationDisplays a menu created using simple wiki syntax (nested lists and links).Global
blogpostcreateBlog Post CreateThe Blog Post Create macro is used to insert a post creation form. The macro takes a blog descriptor document as parameter. The new blog posts will belongs to the blog specified in the parameter.Current Wiki
externalURLExternal URL RedirectContentCurrent Wiki
dequotedequoteErzeugt deutsche Anführungszeichen (96) um den Text.Global
nofooterShow no footer (Comments, Attachments, ...)ContentCurrent Wiki
blogpostlistBlog post listThe BlogPostMacro is used to search and display blog posts based on some parameters, the results can be displayed using customizable templates.Current Wiki
filemanagerdocFile Manager DocumentContentInserts a file manager document in a page, with or without previewCurrent Wiki
mserverMasterservercontentDer Text für den Frontendserver, damit der Name einheitlich wird.Current Wiki
documentsDocumentsContentDisplays a list of documents in a LivetableCurrent Wiki
groovyGroovyDevelopmentExecute a groovy script.Global
footnoteFootnoteContentGenerates a footnote to display at the end of the page.Global
designerDesignerContentDer Text für Designer, damit der Produktname einheitlich wird.Current Wiki
jwplayerJW PlayerContentThe JW Player is an open-source embeddable media player for web sites, supporting many commonly-used audio and video formats. The player is easy to configure, customize and extend.Current Wiki
externalConsentDialogExternal Content Privacy Settings Accept Dialog StylingContentDisplays a dialog that asks the user to accept the conditions of the external content about to to be displayedCurrent Wiki
Tags:
Copyright 2000-2024