UserAvatar Macro
This is a XWiki 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
Displays 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.Usage
{{useravatar username="<username>" /}}Parameters definition
| Name | Optional | Allowed values | Default value | Description |
|---|---|---|---|---|
| username | no | a string | none | XWiki user of the form "XWiki.UserName" |
| width | yes | an integer | image's natural width | The width of the avatar image |
| height | yes | an integer | image's natural width | The width of the avatar image |
Example
The avatar of some XWiki.JohnDoe user:{{useravatar username="XWiki.JohnDoe" width="40" height="40"/}}