Google PlusOne

From MediaWiki Widgets

Google PlusOne widget
Description:Allows you to add a Google +1 button.
Code:Widget:Google PlusOne
Status:active, possibly broken in Firefox
Updated:December 5, 2016
If you use code on your wiki which is older than this date you may want to update since your widget may be insecure or broken.
Inv-Icon tools.svg.png

To copy this widget to your wiki, cut and paste the entire source of the Google PlusOne widget code page into a page called Widget:Google PlusOne on your wiki.

If you don't have the Widget extension set up on your wiki, go to its description page on and follow the installation instructions.

This widget allows you to add Google +1 button to your wiki page.

To insert this widget, use the following code:

{{#widget:Google PlusOne


  • pageurl - If you add the button on but you want the button to +1 on then you enter in this option.
  • size - The button size to load. tall, medium, standard and small
  • count - Indicates whether or not to render an aggregate count. This option is not available for tall!
  • callback - Function called after the user has clicked the +1 button. The callback function may accept a JSON object which will be of the form, {"href": "", "state": "on"}. Where href is the URL of the +1 and state is on for a +1 and off for the removal of a +1.
  • lang - The value must be one of the valid language values for the +1 button.

Sample result

If you are using the Firefox browser, this example may not show.


blog comments powered by Disqus