Widget:Tweet: Difference between revisions

From SMO.wiki
Added usage text
Added width parameter with default based on float
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><blockquote class="twitter-tweet" data-dnt="true"><a href="https://twitter.com/_/status/<!--{$id|escape:'urlpathinfo'}-->"></a></blockquote><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script></includeonly>
</noinclude><includeonly><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><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script></includeonly>

Revision as of 06:07, 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.