User Avatar Macro

The "User Avatar" macro displays the avatar of a user or the standard image "noavatar.png" in case the user has no avatar.

Usage

#useravatar($username)

Parameters

NameOptionalAllowed valuesDescriptionDefault value
usernameNoA stringAn XWiki user pageNone

Example

{{velocity}}

{{html}}
#useravatar("xwiki:XWiki.Admin")
{{/html}}

{{/velocity}}

will display

UserAvatarMacro.png    or    NoAvatar.png

    

Search this space