User Avatar Java Macro

The "User Avatar" macro displays the avatar of a user. If the user has no avatar, the macro displays the standard image "noavatar.png".

Usage

{{useravatar username="<username>" width="<width>" height="<height>" /}}

Parameters

NameOptionalAllowed valuesDescriptionDefault value
usernameNoA string representing the name of an user page.The user name, the full name or the prefixed full name of an XWiki user.None
widthYesAn integerThe width of the avatar image.The actual width of the image.
heightYesAn integerThe height of the avatar image.The actual height of the image.

Example

{{useravatar username="xwiki:XWiki.Admin" width="300" /}}

will display

UserAvatarMacroJava.png

  

Search this space