Difference between revisions of "Widget:TwitterTweet"

From WikiVet English
Jump to navigation Jump to search
(Created page with "<noinclude>This allows a Twitter follow button to be embedded into a wiki page. ===Usage=== To insert this widget, use the following code: <nowiki>{{#widget:</nowiki>{{PAGEN...")
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<noinclude>This allows a Twitter follow button to be embedded into a wiki page.
+
<noinclude>This allows a Twitter Tweet button to be embedded into a wiki page. It allows users to tweet about the specific page they are reading.
 +
 
 
===Usage===
 
===Usage===
 
To insert this widget, use the following code:
 
To insert this widget, use the following code:
  
 
  <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>}}</nowiki></noinclude><includeonly><a href="https://twitter.com/share" class="twitter-share-button" data-text="Check out this page on WikiVet">Tweet</a>
 
  <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>}}</nowiki></noinclude><includeonly><a href="https://twitter.com/share" class="twitter-share-button" data-text="Check out this page on WikiVet">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></includeonly>
+
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></includeonly>

Latest revision as of 19:59, 26 May 2015

This allows a Twitter Tweet button to be embedded into a wiki page. It allows users to tweet about the specific page they are reading.

Usage

To insert this widget, use the following code:

{{#widget:TwitterTweet}}