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.

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

NameOptionalAllowed valuesDefault valueDescription
usernamenoa stringnoneXWiki user of the form "XWiki.UserName"
widthyesan integerimage's natural widthThe width of the avatar image
heightyesan integerimage's natural widthThe width of the avatar image

Example

The avatar of some XWiki.JohnDoe user:

{{useravatar username="XWiki.JohnDoe" width="40" height="40"/}}

Result

noavatar.png

Tags:
Created by Dan Miron on 2009/03/20 14:33
Last modified by Asiri Rathnayake on 2009/07/23 14:38

This wiki is licensed under a Creative Commons license
2.2.1.27354