Summary
Display a small size avatar for a user
Usage
#macro(smallUserAvatar $username)

Small avatars, 30px wide, used in secondary actions and where there's very little space available.

Since
2.5
Example
{{velocity}}
{{html}}
#useravatar('xwiki:XWiki.VincentMassol')
#largeUserAvatar('xwiki:XWiki.VincentMassol')
#resizedUserAvatar('xwiki:XWiki.VincentMassol', 100)
#mediumUserAvatar('xwiki:XWiki.VincentMassol')
#smallUserAvatar('xwiki:XWiki.VincentMassol')
{{/html}}
{{/velocity}}

Result:

useravatar.png

Note that when no user is found, the following is displayed:

useravatar-nouser.png

Tags:
    

Get Connected