Summary
Display a custom size avatar for a user
Usage
#macro(resizedUserAvatar $username $size)

The size is in pixels.

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