{{tpl:CommentIfFirst}}

The tpl:CommentIfFirst tag returns a value if the comment is the first of the list, in a tpl:Comments loop context.

Attributes

return

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

  • return="prems" will display prems if the comment is the first one. By default, first will be displayed.

Example

<p{{tpl:CommentIfFirst return=" class=\"prems\""}}> ... </p>

In this example, the first comment will have an extra CSS class prems that will allow a special design for it.

Wiki powered by Dokuwiki.