UserAvatar Macro
This is a Velocity macro, bundled with all the XWiki products by default.
Macro developed by the XWiki Development Team.
This macro cannot currently be downloaded separately.
Macro developed by the XWiki Development Team.
This macro cannot currently be downloaded separately.
UserAvatar Macro
Display the avatar of a user, or a standard image noavatar.png if the user has no avatar. A user's avatar is a url that is defined by editing a user's profile. This currently must be done through the object editor as the avatar text field is not shown in the standard form.Usage
#useravatar($username)
Parameters definition
| Name | Optional | Allowed values | Default value | Description |
|---|---|---|---|---|
| username | no | a string | none | XWiki user of the form "XWiki.UserName" |
Example
The avatar of the user that's viewing this page:#useravatar($context.user)