XWiki - XWiki Syntax Guide 

Page / - last modified by Admin on 2021/01/03 00:33 

XWiki Syntax Guide 
last modified by Admin
on 2021/01/03 00:33

Table of Contents
XWiki Syntax 2.1: Parameters

  
XWiki Syntax 2.1 » Advanced » Parameters
XWiki Syntax 2.1: Parameters
•	General
•	Introduction
•	General Remarks
•	Other Syntaxes
•	Editing
•	Paragraphs
•	Headings
•	Text Formatting
•	Horizontal Line
•	Lists
•	Definition Lists
•	New Line/Line Breaks
•	Links
•	Tables
•	Images
•	Advanced
•	Verbatim
•	Quotations
•	Groups
•	Escapes
•	Parameters
•	Programming
•	Macros
•	HTML
•	Scripts

2.0 Parameters
With XWiki Syntax 2.1 it's possible to pass parameters to the different syntax elements and also to blocks of text. This is used for example to style them. You can set any parameter key/value pair you want. The XHTML renderer will pass these parameters as XHTML attributes to the underlying XHTML representation of the different syntax elements.
XWiki Syntax 2.1	Generated XHTML	
(% class="myClass" style="myStyle" id="myId" %)
= heading =	<h1 class="myClass" style="myStyle" id="myId">heading</h1>