Wiki source code of Avatar

Last modified by Vincent Massol on 2024/11/19 16:15

Show last authors
1 {{info}}
2 Discussed at: http://xwiki.markmail.org/thread/wzrex5j7jxhgjmc6
3 JIRA [XWIKI-5529]: [[New velocity macros for displaying user avatars with standard sizes>>http://jira.xwiki.org/jira/browse/XWIKI-5529]]
4 {{/info}}
5
6 * Avatar: visual representation of the user
7 * Auto-Resizing depending on the content
8 ** **30x30px** inline/secondary usage
9 ** **50x50px** profile/primary usage
10
11 {{warning}}
12 #largeUserAvatar($username) -> 120px, user profile
13 #mediumUserAvatar($username) -> 50px, primary avatar (comments, dashboard, annotations...)
14 #smallUserAvatar($username) -> 30px, secondary avatar (comment replies)
15 #resizedUserAvatar($username, $size) -> custom size in px, maximum for width and height
16 #useravatar($username) -> no resize, older macro
17 {{/warning}}
18
19 == Examples ==
20
21 Some screenshots are not implemented yet. Please see [[Avatar Proposal>>Improvements.AvatarsProposal]].
22
23 === Review ===
24
25 [[image:reviews.png]]
26
27 === Recent Changes ===
28
29 [[image:changes.png]]
30
31 === Comments ===
32
33 [[image:comments.png]]
34
35 === Annotations ===
36
37 [[image:editAnnotation.png]]
38
39 [[image:viewAnnotation.png]]

Get Connected