差分

2,321 バイト追加 、 2021年1月31日 (日) 22:26
ページの作成:「<noinclude>__NOTOC__ This widget allows you to '''[https://dev.twitter.com/docs/embedded-tweets embed a tweet]''' on your wiki page. Created by [https://www.mediawikiwid…」
<noinclude>__NOTOC__
This widget allows you to '''[https://dev.twitter.com/docs/embedded-tweets embed a tweet]''' on your wiki page.

Created by [https://www.mediawikiwidgets.org/User:Pablog Pablo Castellano].

== Using this widget ==
For information on how to use this widget, see [https://www.mediawikiwidgets.org/Tweet widget description page on MediaWikiWidgets.org].

== Copy to your site ==
To use this widget on your site, just install [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy the [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as page '''{{FULLPAGENAME}}'''.
</noinclude><includeonly>
<!--{if isset($id)}-->
<!--{counter name="tweetcounter" assign="tweetincluded"}-->
<div id="twitter-<!--{$tweetincluded}-->-<!--{$id}-->"></div>
<!--{if $tweetincluded eq 1}-->
<script>
if (typeof window.twttr === 'undefined') {
window.twttr = (function (d,s,id) {
var t, js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return; js=d.createElement(s); js.id=id;
js.src="//platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
return window.twttr || (t = { _e: [], ready: function(f){ t._e.push(f) } });
}(document, "script", "twitter-wjs"));
}
</script>
<!--{/if}-->
<script>
twttr.ready(function (twttr) {
twttr.widgets.createTweet(
"<!--{$id}-->",
document.getElementById("twitter-<!--{$tweetincluded}-->-<!--{$id}-->"),
{
align: <!--{if $align}-->'<!--{$align}-->'<!--{else}-->undefined<!--{/if}-->,
conversation: '<!--{if $conversation}--><!--{$conversation}--><!--{else}-->all<!--{/if}-->',
cards: '<!--{if $cards}--><!--{$cards}--><!--{else}-->visible<!--{/if}-->',
width: <!--{if $width}-->'<!--{$width}-->'<!--{else}-->undefined<!--{/if}-->,
linkColor: '<!--{if $linkColor}--><!--{$linkColor}--><!--{else}-->blue<!--{/if}-->',
theme: '<!--{if $theme}--><!--{$theme}--><!--{else}-->light<!--{/if}-->'
}
);
});
</script>
<!--{else}-->
<b style="color:red">No id supplied for Tweet!</b>
<!--{/if}-->
</includeonly>