Widget:X post: Difference between revisions

From Madness Combat Wiki
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Β 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>__NOTOC__
<noinclude>__NOTOC__
This widget allows you to '''[https://help.x.com/en/using-x/how-to-embed-a-post embed a post from X (formerly Twitter)]''' on your wiki page.
This widget allows you to '''[https://help.x.com/en/using-x/how-to-embed-a-post embed a post from X (formerly Twitter)]''' on your wiki page.
Line 13: Line 11:
</noinclude><includeonly>
</noinclude><includeonly>
<!--{if isset($id)}-->
<!--{if isset($id)}-->
<blockquote class="twitter-tweet" data-theme="dark" data-chrome=β€œtransparent” background-color= "#14181f"><p lang="en" dir="ltr"><!--{$text|escape:html}--> <a href="https://t.co/<!--{$urlCode|escape:html}-->">https://t.co/<!--{$urlCode|escape:html}--></a></p>&mdash; <!--{$author|escape:html}--> (@<!--{$username|escape:html}-->) <a href="https://twitter.com/<!--{$username|escape:html|default:dummy_username}-->/status/<!--{$id|escape:html}-->"><!--{$date|escape:html}--></a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<blockquote class="twitter-tweet" data-theme="dark"><p lang="en" dir="ltr"><!--{$text|escape:html}--> <a href="https://t.co/<!--{$urlCode|escape:html}-->">https://t.co/<!--{$urlCode|escape:html}--></a></p>&mdash; <!--{$author|escape:html}--> (@<!--{$username|escape:html}-->) <a href="https://twitter.com/<!--{$username|escape:html|default:dummy_username}-->/status/<!--{$id|escape:html}-->"><!--{$date|escape:html}--></a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<!--{else}-->
<!--{else}-->
Β Β  Β  <b style="color:red">No ID supplied for X post!</b>
Β Β  Β  <b style="color:red">No ID supplied for X post!</b>
<!--{/if}-->
<!--{/if}-->
</includeonly>
</includeonly>

Latest revision as of 15:24, 26 September 2024

This widget allows you to embed a post from X (formerly Twitter) on your wiki page.

Created by Yaron Koren, based in part on the [1] widget.

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, install MediaWiki Widgets extension and copy the full source code of this page to your wiki as page Widget:X post.