Summary
Display the avatar of a user (full size)
Usage
###
###    useravatar
###
### Display the avatar of a user (HTML is returned), or a standard image if the user has no avatar
###
### @param username The name of the user whose avatar will be displayed
###
#macro(useravatar $username)
Since
Unknown, but a long time ago
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