Difference between revisions of "Widget:TwitterTweet"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
<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}}