Widget:Twitter: Unterschied zwischen den Versionen

Aus KAS-Wiki
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „{{Widget |author=Sergey Chernyshev |provider=Twitter |providerurl=http://twitter.com/goodies/widget_profile |addedon=04-08-2009 }} This widget allows you to add '…“)
 
Zeile 1: Zeile 1:
{{Widget
+
<noinclude>__NOTOC__
|author=Sergey Chernyshev
+
This widget allows you to embed a '''[http://twitter.com/widgets/html_widget Twitter feed]''' (HTML version) on your wiki page.
|provider=Twitter
+
|providerurl=http://twitter.com/goodies/widget_profile
+
|addedon=04-08-2009
+
}}
+
This widget allows you to add '''[http://twitter.com/about/resources/widgets/widget_profile Twitter profile widget]''' to your wiki page.
+
  
To insert this widget, use the following code:
+
Created by [http://www.mediawikiwidgets.org/User:Sergey_Chernyshev Sergey Chernyshev]
  
<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>|user=sergeyche|count=5}}</nowiki>
+
== Using this widget ==
 +
For information on how to use this widget, see [http://www.mediawikiwidgets.org/Twitter widget description page on MediaWikiWidgets.org].
  
== Parameters ==
+
== Copy to your site ==
* '''user''' - twitter user name
+
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.
* '''count''' - number of entries to return (defaults to 5)
+
</noinclude><includeonly><!--{counter name="twittercounter" assign="twitblogincluded"}--><!--{if $twitblogincluded eq 1}--><script src="http://widgets.twimg.com/j/2/widget.js"></script><!--{/if}-->
* Theme:
+
<script>
** '''shell.background''' - shell background color
+
new TWTR.Widget({
** '''shell.color''' - shell text color
+
  version: 2,
** '''tweets.background''' - tweet background color
+
  type: 'profile',
** '''tweets.color''' - tweet text color
+
  rpp: '<!--{$count|escape:'quotes'|default:5}-->',
** '''tweets.links''' - links color
+
  interval: 6000,
 
+
  width: 250,
== Sample result ==
+
  height: 300,
{{#widget:{{PAGENAME}}|user=sergeyche}}
+
  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: false,
 +
    loop: false,
 +
    live: false,
 +
    hashtags: true,
 +
    timestamp: true,
 +
    avatars: false,
 +
    behavior: 'all'
 +
  }
 +
}).render().setUser('<!--{$user|escape:'quotes'}-->').start();
 +
</script></includeonly>

Version vom 25. März 2011, 11:36 Uhr

This widget allows you to embed a Twitter feed (HTML version) on 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.

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.