Difference between revisions of "Widget:Twitter Search"

From Archivematica
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<noinclude>__NOTOC__
 
<noinclude>__NOTOC__
This widget allows you to embed '''[http://twitter.com/goodies/widget_search Twitter Search widget]''' (HTML version) on your wiki page.
+
Embed twitter widget
  
Created by [http://www.mediawikiwidgets.org/User:Sergey_Chernyshev Sergey Chernyshev]
+
Based on widget by [http://www.mediawikiwidgets.org/User:Sergey_Chernyshev Sergey Chernyshev]
  
 
== Using this widget ==
 
== Using this widget ==
 
For information on how to use this widget, see [http://www.mediawikiwidgets.org/Twitter_Search widget description page on MediaWikiWidgets.org].
 
For information on how to use this widget, see [http://www.mediawikiwidgets.org/Twitter_Search widget description page on MediaWikiWidgets.org].
 
+
</noinclude><includeonly><a class="twitter-timeline" data-height="800" href="https://twitter.com/archivematica">Tweets by archivematica</a> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
== Copy to your site ==
+
</includeonly>
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 src="https://static.artefactual.com/mediawiki/twitter.js"></script><!--{/if}-->
 
<script>
 
new TWTR.Widget({
 
  version: 2,
 
  type: 'search',
 
  search: '<!--{$query|escape:'quotes'}-->',
 
  interval: 6000,
 
  title: '<!--{$title|escape:'quotes'}-->',
 
  subject: '<!--{$caption|escape:'quotes'}-->',
 
  width: 'width',
 
  height: <!--{$height|default:300|validate:int}-->,
 
  theme: {
 
    shell: {
 
      background: '<!--{$shell.background|escape:'quotes'|default:'#8ec1da'}-->',
 
      color: '<!--{$shell.color|escape:'quotes'|default:'#ffffff'}-->'
 
    },
 
    tweets: {
 
      background: '<!--{$tweets.background|escape:'quotes'|default:'#ffffff'}-->',
 
      color: '<!--{$tweets.color|escape:'quotes'|default:'#444444'}-->',
 
      links: '<!--{$tweets.links|escape:'quotes'|default:'#1985b5'}-->'
 
    }
 
  },
 
  features: {
 
    scrollbar: true,
 
    loop: false,
 
    live: true,
 
    hashtags: true,
 
    timestamp: true,
 
    avatars: true,
 
    toptweets: true,
 
    behavior: 'all'
 
  }
 
}).render().start();
 
</script></includeonly>
 

Latest revision as of 14:01, 20 December 2016

Embed twitter widget

Based on widget by Sergey Chernyshev

Using this widget

For information on how to use this widget, see widget description page on MediaWikiWidgets.org.