{{tpl:EntryIfFirst}}

Displays the special value with the attribute return, if it's the first entry for the template tag <tpl:Entries>.

Attribute

return

This value is shown, if an entry is the first in the list. Value by default : first.

Example

Putting the value first entry in the list

<tpl:Entries>
  <tpl:EntriesHeader><ul></tpl:EntriesHeader>
  <li>
    {{tpl:EntryIfFirst return="<strong>"}}
      {{tpl:EntryTitle encode_html="1"}}
    {{tpl:EntryIfFirst return="</strong>"}}
  </li>
  <tpl:EntriesFooter></ul></tpl:EntriesFooter>
</tpl:Entries>

Wiki powered by Dokuwiki.