In wiki, a header is a single line starting with
. The moment you press enter key and create a new line, you also stop the header. In order to split a header in multiple lines, use the
macro.
generates a new line, but continues the same line as for wiki processor.
[ block(center)]- --+++Centered header%BR%with multiple%BR%lines[ /block]
Lists are represented by one or more spaces followed by *
or 1
. As it happen with headers, list elements use a single line. You can split the line into multiple lines using the
macro.
* * *A list element* *% BR%With some description...* * *A second element* *% BR%With some more description attached...
By using macros, you can control elements visibility. We'll use two macros, {
and {
. The first one will check if current user id is blank, in which case no user is authenticated. The second macro will expand to none when user id is blank, and to blank otherwise.
[ block(display:{ @equals:{ @user:id}::none: })] Hello {@ user:name}![ /block]
The statement the equals macro aims to resolve is: if user id is blank, write none, otherwise write one space. Read more about the equals macro in anchor.
English | 01/11/18 11:21 | Lluís Turró Cutiller | |
English | 02/07/18 11:03 | Lluís Turró Cutiller | |
English | 12/11/18 18:43 | Lluís Turró Cutiller |