451 bytes added ,  13:55, 22 September 2011
no edit summary
Line 1: Line 1: −
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></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>