How do I know which syntax elements or parameters I can use when editing?

How do I know which syntax elements or parameters I can use when editing?
Such as (% class=“myClass” style=“myStyle” id=“myId” %).
Where can I find a list of syntax elements and parameters?

In practice most of those parameters end up as HTML attributes (when the wiki syntax is rendered to HTML). This means you can use common HTML attributes there. Just check the generated HTML with the DOM inspector from the browser’s developer tools.

1 Like

There’s no such list that I know of. But different extensions will document different values they support. For example the LaTeX extension supports https://extensions.xwiki.org/xwiki/bin/view/Extension/LaTeX/Syntax%201.0/#HSpecificCustomTemplates

1 Like

Thanks for your answer, besides, can I only use CSS inline styles as in the example above when editing, or can I use CSS external stylesheets or CSS internal stylesheets?
If I can use them,where can I define them?

So the official doc for markup parameters is at XWiki Syntaxes (XWiki.org)

If you need to style elements (CSS), it’s recommended to use a SSX: see https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Tutorials/SkinExtensionsTutorial/

You can pass some semantic parameter and then use that to perform the styling in the SSX if needed.

1 Like