• Dmitry Bakbardin
    Dmitry Bakbardin, 2014/05/09 22:00

    Actually this macro works only inside scripts:

    {{html wiki="true"}}
    #floatingbox("This text is displayed in a styled floating box")

    Otherwise it doesn't do anything.

    • Vincent Massol
      Vincent Massol, 2014/05/09 22:03

      This is a Velocity Macro. Check this extension type and you'll see it's "Doc (Macro Velocity)". So in XWiki Syntax 2.0+ it needs to be executed inside the {{velocity}} rendering macro. However if you were in XWiki Syntax 1.0 for example you'd just use it as is since XWiki Syntax 1.0 is velocity-enabled by default. Similarly you could use this macro as-is inside a velocity template file (*.vm file).

      The floatingbox velocity macro also generates HTML and in XWiki Syntax 2.0+ you need the {{html}} macro to render it. Note that in XWiki Syntax 1.0 you don't need that since it's also HTML-enabled by default.

Get Connected