# ![pWiki](img/pWiki-i.jpg) pWiki Macros ## Syntax Any macro can be used in any of the two forms, either _inline_ or _HTML-like_. Inline: ``` @macro-name(value) @macro-name(value text=" ...text... ") ``` HTML-style: ``` ...text... ``` The two forms are almost identical, with the only difference being that the inline form does not support body text (note that some macros may provide this functionality as an argument, namely `slot`). The two forms exist to fill two distinct functions: - inline: compatible with attribute values and short - html-like: element-like, simpler when dealing with html ### Positional and keyword attributes Attributes (arguments) can be set sequentially by value, as they are defined or by name in any order. The following are equivalent: ``` ``` Keyword attributes are special attributes that are given by name rather than by value by default and if no value is set explicitly it defaults to `true` if passed, and to false if omitted. The following are equivalent: ```