Widget:Tweet: Difference between revisions

From SMO.wiki
Implemented float property
Testing a fix
Line 7: Line 7:


Replace <code>example</code> with the ID of the Tweet found in the URL.
Replace <code>example</code> with the ID of the Tweet found in the URL.
</noinclude><includeonly><span <!--{if isset($float)}-->style="float: right; margin-bottom: 0.5em; margin-left: 1em;"<!--{/if}-->><blockquote class="twitter-tweet" data-dnt="true" width="<!--{if isset($float)}--><!--{$width|escape:'html'|default:'440'}--><!--{else}--><!--{$width|escape:'html'|default:'550'}--><!--{/if}-->"><a href="https://twitter.com/_/status/<!--{$id|escape:'urlpathinfo'}-->"></a></blockquote></span><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script></includeonly>
</noinclude><includeonly><div <!--{if isset($float)}-->style="float: right; margin-bottom: 0.5em; margin-left: 1em;"<!--{/if}-->><blockquote class="twitter-tweet" data-dnt="true" width="<!--{if isset($float)}--><!--{$width|escape:'html'|default:'440'}--><!--{else}--><!--{$width|escape:'html'|default:'550'}--><!--{/if}-->"><a href="https://twitter.com/_/status/<!--{$id|escape:'urlpathinfo'}-->"></a></blockquote></div><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script></includeonly>

Revision as of 06:17, 22 January 2023

This widget allows you to add a Tweet card to your wiki page.

Using this widget

To insert this widget, use the following syntax: {{#widget:Tweet|id = example}}

Replace example with the ID of the Tweet found in the URL.