Version 9.1 by Vincent Massol on 2011/08/24 21:18
Displays the avatar of a user, or a standard image noavatar.png if the user has no avatar |
Type | javamacro |
Category | |
Developed by | Unknown |
Rating | |
License | Unknown |
Table of contents
Description
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"/}}