User Avatar Macro
Version 13.1 by Thomas Mortagne on 2011/10/28 09:27
Displays the avatar of a user, or a standard image noavatar.png if the user has no avatar |
Type | JAR |
Category | |
Developed by | Unknown |
Rating | |
License | GNU Lesser General Public License 2.1 |
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"/}}