「Widget:Twitter timeline」の版間の差分

提供: 理科教育wiki
ナビゲーションに移動検索に移動
(ページの作成:「{{Widget |description=Allows you to add a Twitter widget. |author=Sergey Chernyshev |provider=Twitter |providerurl=https://developer.twitter.com/en/docs/twitter-for-websi…」)
 
 
1行目: 1行目:
{{Widget
+
<noinclude>__NOTOC__
|description=Allows you to add a Twitter widget.
+
This widget allows you to embed a '''[https://developer.twitter.com/en/docs/twitter-for-websites/overview.html Twitter feed]''' (HTML version) on your wiki page.
|author=Sergey Chernyshev
 
|provider=Twitter
 
|providerurl=https://developer.twitter.com/en/docs/twitter-for-websites/overview.html
 
|status=active
 
|security=unknown
 
|addedon=04-08-2009
 
}}
 
This widget allows you to add '''[https://twitter.com/settings/widgets Twitter widget]''' to your wiki page.
 
  
To insert this widget, use the following code:
+
Originally created by [https://www.mediawikiwidgets.org/User:Sergey_Chernyshev Sergey Chernyshev]. Updated code created by [https://www.mediawiki.org/w/index.php?title=User:Kelson Emmanuel Engelhart] (pulled from [https://phabricator.wikimedia.org/T207716 Phabricator: T207716])
  
<nowiki>{{#widget:</nowiki>Twitter timeline<nowiki>|id=KiwixOffline}}</nowiki>
+
== Using this widget ==
 +
For information on how to use this widget, see [https://www.mediawikiwidgets.org/Twitter_timeline widget description page on MediaWikiWidgets.org].
  
== Parameters ==
+
== Copy to your site ==
* '''id''' - widget ID, get it from the code generated by Twitter's wizard's
+
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><a class="twitter-timeline" href="https://twitter.com/<!--{$id}-->?ref_src=twsrc%5Etfw"></a>
== Sample result ==
+
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></includeonly>
{{#widget:Twitter timeline|id=KiwixOffline}}
 
{{Comments}}
 

2022年9月11日 (日) 12:55時点における最新版

This widget allows you to embed a Twitter feed (HTML version) on your wiki page.

Originally created by Sergey Chernyshev. Updated code created by Emmanuel Engelhart (pulled from Phabricator: T207716)

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 the full source code of this page to your wiki as page Widget:Twitter timeline.