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.

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

NameOptionalAllowed valuesDefault valueDescription
usernamenoa stringnoneXWiki user of the form "XWiki.UserName"

Example

The avatar of the user that's viewing this page:

#useravatar($context.user)

Result

This is the avatar for XWiki.XWikiGuest :

XWiki.XWikiGuest

Tags:
Created by Luis Arias on 2007/04/08 10:39
Last modified by Vincent Massol on 2008/09/30 10:16

This wiki is licensed under a Creative Commons license
2.2.1.27354