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".


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


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.


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

will display



Related Pages

Trying to decide between Cloud and On Premise? See the comparison on the XWiki Help Center.

Search this space