「Widget:Twitter」の版間の差分

提供: Kakerunpedia
ナビゲーションに移動 検索に移動
こぴぺ
 
これでふっかる?
 
9行目: 9行目:
== 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 src="http://widgets.twimg.com/j/2/widget.js"></script><!--{/if}-->
</noinclude><includeonly><a class="twitter-timeline" href="" data-widget-id="<!--{$id|escape:'html'}-->"></a>
<script>
<!--{counter name="twittercounter" assign="twitblogincluded"}--><!--{if $twitblogincluded eq 1}--><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script><!--{/if}--></includeonly>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: '<!--{$count|escape:'quotes'|default:5}-->',
  interval: 6000,
  width: 250,
  height: 300,
  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>

2014年5月11日 (日) 18:12時点における最新版

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.