mediumUserAvatar

Last modified by Vincent Massol on 2020/04/03 22:35

Summary
Display a medium size avatar for a user
Usage
#macro(mediumUserAvatar $username)

Medium avatars, 50px wide, the preferred and most frequent display option for avatars.

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