Difference between revisions of "Gravatar"
From LRDE
Line 1: | Line 1: | ||
+ | <noinclude> |
||
− | |||
− | |||
=Addthis Widget= |
=Addthis Widget= |
||
This widget allows you to add the [http://www.gravatar.com/ Gravatar] avatars. |
This widget allows you to add the [http://www.gravatar.com/ Gravatar] avatars. |
||
Line 38: | Line 37: | ||
Provided as reference only. |
Provided as reference only. |
||
− | <includeonly> |
+ | </noinclude><includeonly> |
<!-- Jean-Lou Dupont's MediaWiki SecureWidget extension - Gravatar Widget --> |
<!-- Jean-Lou Dupont's MediaWiki SecureWidget extension - Gravatar Widget --> |
||
<div id="gravatar_{@{id|integer|1}@}" class="{@{class_div|string|gravatar_div}@}">gravatar</div> |
<div id="gravatar_{@{id|integer|1}@}" class="{@{class_div|string|gravatar_div}@}">gravatar</div> |
Revision as of 11:06, 26 September 2013
Addthis Widget
This widget allows you to add the Gravatar avatars.
Usage
{{#widget:Gravatar |p1=first-part-of-the-email-used-to-register-before-the-@ |p2=second-part-of-the-email-used-to-register-after-the-@ |size=size-of-avatar }}
Parameters
Parameter | Notes | Default Value |
---|---|---|
p1 | username part of the email | |
p2 | domain part of the email | |
id | id attribute of the HTML img element | gravatar_1 |
class | class attribute of the HTML img element | gravatar |
class_div | class attribute of the HTML div element | gravatar_div |
Notes
Usually, only the parameters p1 and p2 are used. The case for customizing the other parameters occurs when more than one gravatar is used on any given page.
Example
{{#widget:Gravatar |p1=ohloh |p2=jldupont.com }}
Code
Provided as reference only.