Difference between revisions of "Widget:Twitter"
Jump to navigation
Jump to search
(Created page with "<noinclude>__NOTOC__ This widget allows you to embed '''[http://twitter.com/widgets/html_widget Twitter feed]''' (HTML version) on your wiki page. Created by [http://www.medi...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>__NOTOC__ | <noinclude>__NOTOC__ | ||
− | This widget allows you to embed '''[ | + | This widget allows you to embed a '''[https://twitter.com/settings/widgets/new Twitter feed widget]''' (HTML version) from twitter on to your wiki page. |
Created by [http://www.mediawikiwidgets.org/User:Sergey_Chernyshev Sergey Chernyshev] | Created by [http://www.mediawikiwidgets.org/User:Sergey_Chernyshev Sergey Chernyshev] | ||
Line 6: | Line 6: | ||
== Using this widget == | == Using this widget == | ||
For information on how to use this widget, see [http://www.mediawikiwidgets.org/Twitter widget description page on MediaWikiWidgets.org]. | For information on how to use this widget, see [http://www.mediawikiwidgets.org/Twitter widget description page on MediaWikiWidgets.org]. | ||
+ | |||
+ | To insert, use the following code:<br> | ||
+ | <nowiki>{{#widget:Twitter|user=</nowiki>'''twitterusernamegoeshere'''|id='''longIDnumberfromtwitterwidgetgoeshere'''<nowiki>}}</nowiki> | ||
== Copy to your site == | == Copy to your site == | ||
To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article. | To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article. | ||
− | </noinclude><includeonly><!--{counter name="twittercounter" assign="twitblogincluded"}--><!--{if $twitblogincluded eq 1}--><script | + | </noinclude><includeonly><!--{counter name="twittercounter" assign="twitblogincluded"}--><!--{if $twitblogincluded eq 1}--><script src="http://widgets.twimg.com/j/2/widget.js"></script><!--{/if}--> |
+ | <script> | ||
+ | new TWTR.Widget({ | ||
+ | version: 2, | ||
+ | type: 'profile', | ||
+ | rpp: '<!--{$count|escape:'quotes'|default:5}-->', | ||
+ | interval: 6000, | ||
+ | width: <!--{if $width eq 'auto'}-->'auto'<!--{else}--><!--{$width|escape:'quotes'|default:250|validate:int}--><!--{/if}-->, | ||
+ | height: <!--{$height|escape:'quotes'|default:300|validate:int}-->, | ||
+ | theme: { | ||
+ | shell: { | ||
+ | background: '<!--{$shell.background|escape:'quotes'|default:'#333333'}-->', | ||
+ | color: '<!--{$shell.color|escape:'quotes'|default:'#ffffff'}-->' | ||
+ | }, | ||
+ | tweets: { | ||
+ | background: '<!--{$tweets.background|escape:'quotes'|default:'#000000'}-->', | ||
+ | color: '<!--{$tweets.color|escape:'quotes'|default:'#ffffff'}-->', | ||
+ | links: '<!--{$tweets.links|escape:'quotes'|default:'#4aed05'}-->' | ||
+ | } | ||
+ | }, | ||
+ | features: { | ||
+ | scrollbar: <!--{if isset($scrollbar)}-->true<!--{else}-->false<!--{/if}-->, | ||
+ | loop: false, | ||
+ | live: <!--{if isset($poll)}-->true<!--{else}-->false<!--{/if}-->, | ||
+ | hashtags: true, | ||
+ | timestamp: true, | ||
+ | avatars: false, | ||
+ | behavior: 'all' | ||
+ | } | ||
+ | }).render().setUser('<!--{$user|escape:'quotes'}-->').start(); | ||
+ | </script></includeonly> |
Latest revision as of 08:09, 23 July 2015
This widget allows you to embed a Twitter feed widget (HTML version) from twitter on to your wiki page.
Created by Sergey Chernyshev
Using this widget
For information on how to use this widget, see widget description page on MediaWikiWidgets.org.
To insert, use the following code:
{{#widget:Twitter|user=twitterusernamegoeshere|id=longIDnumberfromtwitterwidgetgoeshere}}
Copy to your site
To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as Widget:Twitter article.