{{tpl:CommentIfOdd}}

The tpl:CommentIfOdd tag returns a value if the comment has an odd number in the comments list, in a tpl:Comments loop context.

Attributes

return

This attribute defines what value will be returned in case of success.

  • return="odd_number" will display odd_number if the comment number is odd. By default, odd will be displayed.

Example

<p{{tpl:CommentIfOdd return=" class=\"odd_number\""}}> ... </p>

Wiki powered by Dokuwiki.