XWiki Syntax Guide

Last modified by Simon Urli on 2020/11/02 15:03

XWiki Syntax 1.0 ยป Programming

XWiki Syntax 1.0: Programming

Macros

1.0 Macros

There are two kinds of macros in XWiki Syntax 1.0:

  • Velocity macros (called using the #macroname(param1 ... paramN) syntax)
  • Radeox macros (called using the {macroname:param1=value1|...|paramN=valueN} syntax)

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

FeatureXWiki Syntax 1.0
Velocity Macro
#info("Some text")
Radeox Macro
{code:java}
java content
{code}

HTML

1.0 HTML

It is possible to enter HTML markup directly in the text in XWiki Syntax 1.0.

XWiki Syntax 1.0Result
<abbr title="HyperText Markup Language">HTML</abbr>HTML

Scripts

1.0 Scripts

In XWiki Syntax 1.0 it was possible to enter Velocity scripts anywhere directly in the page. This can lead to issues for example when the user was involuntarily entering Velocity content. It is also performance hungry for pages not requiring Velocity content. There are several other technical limitations. Same goes for entering Groovy scripts.

FeatureXWiki Syntax 1.0
Velocity script
#set ($var = "whatever")
Groovy script
<%
def var = "whatever"
%>
Tags:
    
  • Powered by XWiki 14.10.18-node1. Hosted and managed by XWiki SAS

Get Connected