Difference between revisions of "Widget:Google+"
Jump to navigation
Jump to search
(Created page with "<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <g:plusone></g:plusone>") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <script | + | <noinclude>This allows a Google+ 'Like' button to be embedded into a wiki page. |
− | <g:plusone></g:plusone> | + | ===Usage=== |
+ | To insert this widget, use the following code: | ||
+ | |||
+ | <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>}}</nowiki></noinclude><includeonly><script> | ||
+ | (function(d, t) { | ||
+ | var g = d.createElement(t), | ||
+ | s = d.getElementsByTagName(t)[0]; | ||
+ | g.async = true; | ||
+ | g.src = 'https://apis.google.com/js/plusone.js'; | ||
+ | s.parentNode.insertBefore(g, s); | ||
+ | })(document, 'script'); | ||
+ | </script> | ||
+ | <!-- Place this tag where you want the +1 button to render --> | ||
+ | <g:plusone size="medium"></g:plusone></includeonly> |
Latest revision as of 13:55, 22 September 2011
This allows a Google+ 'Like' button to be embedded into a wiki page.
Usage
To insert this widget, use the following code:
{{#widget:Google+}}