Widget:Twitter: Unterschied zwischen den Versionen

Aus OGD Cockpit
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 ad…“)
 
Keine Bearbeitungszusammenfassung
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>
== Using this widget ==
|user=perfplanet
For information on how to use this widget, see [http://www.mediawikiwidgets.org/Twitter widget description page on MediaWikiWidgets.org].
|width=auto
|count=10
|scrollbar
|poll
|tweets.color=#000000
|tweets.background=#f2f2f2
|tweets.links=#107bb5
|shell.color=#000000
|shell.background=#b8b8b8
}}</nowiki>


== 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, maximum is 30)
</noinclude><includeonly><!--{counter name="twittercounter" assign="twitblogincluded"}--><!--{if $twitblogincluded eq 1}--><script src="http://widgets.twimg.com/j/2/widget.js"></script><!--{/if}-->
* '''width''' - width in pixels or '''auto''' to fill the container (defaults to 250)
<script>
* '''height''' - height in pixels (defaults to 300)
new TWTR.Widget({
* '''scrollbar''' - if set, widget will display a scrollbar
  version: 2,
* '''poll''' - if set, widget will load new tweets as they are posted
  type: 'profile',
* Theme:
  rpp: '<!--{$count|escape:'quotes'|default:5}-->',
** '''shell.background''' - shell background color
  interval: 6000,
** '''shell.color''' - shell text color
  width: <!--{if $width eq 'auto'}-->'auto'<!--{else}--><!--{$width|escape:'quotes'|default:250|validate:int}--><!--{/if}-->,
** '''tweets.background''' - tweet background color
  height: <!--{$height|escape:'quotes'|default:300|validate:int}-->,
** '''tweets.color''' - tweet text color
  theme: {
** '''tweets.links''' - links color
    shell: {
 
      background: '<!--{$shell.background|escape:'quotes'|default:'#333333'}-->',
== Sample result ==
      color: '<!--{$shell.color|escape:'quotes'|default:'#ffffff'}-->'
{{#widget:{{PAGENAME}}
    },
|user=perfplanet
    tweets: {
|width=auto
      background: '<!--{$tweets.background|escape:'quotes'|default:'#000000'}-->',
|count=10
      color: '<!--{$tweets.color|escape:'quotes'|default:'#ffffff'}-->',
|scrollbar
      links: '<!--{$tweets.links|escape:'quotes'|default:'#4aed05'}-->'
|poll
    }
|tweets.color=#000000
  },
|tweets.background=#f2f2f2
  features: {
|tweets.links=#107bb5
    scrollbar: <!--{if isset($scrollbar)}-->true<!--{else}-->false<!--{/if}-->,
|shell.color=#000000
    loop: false,
|shell.background=#b8b8b8
    live: <!--{if isset($poll)}-->true<!--{else}-->false<!--{/if}-->,
}}
    hashtags: true,
{{Comments}}
    timestamp: true,
    avatars: false,
    behavior: 'all'
  }
}).render().setUser('<!--{$user|escape:'quotes'}-->').start();
</script></includeonly>

Version vom 25. April 2013, 14:05 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.