Difference between revisions of "Widget:Gravatar"

From ICPWiki
Jump to navigation Jump to search
 
Line 3: Line 3:
  
 
== Parameters ==
 
== Parameters ==
* <pre>email</pre>: The email address to be used
+
; email
* <pre>default</pre>: The image type to be used when no image exists for the address (default: identicon, see http://en.gravatar.com/site/implement/images/)
+
: The email address to be used
* <pre>size</pre>: The image size in pixels. The image is always square, so a single integer is required.
+
; default
 +
: The image type to be used when no image exists for the address (default: identicon, see http://en.gravatar.com/site/implement/images/)
 +
; size
 +
: The image size in pixels. The image is always square, so a single integer is required.
  
 
== Examples ==
 
== Examples ==

Latest revision as of 11:18, 9 January 2014

This widget allows you to add a Gravatar to your wiki page.

Parameters

email
The email address to be used
default
The image type to be used when no image exists for the address (default: identicon, see http://en.gravatar.com/site/implement/images/)
size
The image size in pixels. The image is always square, so a single integer is required.

Examples

{{#widget:Gravatar|email=espressomd-users@nongnu.org|size=180}}
Error in widget Gravatar: Syntax error in template "wiki:wiki:Gravatar" on line 1 "<img src="http://www.gravatar.com/avatar/?d=&s="/>" modifier 'md5' not allowed by security setting
{{#widget:Gravatar|email=nobody@nospam.com|size=180|default=monsterid}}
Error in widget Gravatar: Syntax error in template "wiki:wiki:Gravatar" on line 1 "<img src="http://www.gravatar.com/avatar/?d=&s="/>" modifier 'md5' not allowed by security setting

Copy to your site

To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as Widget:Gravatar article.