Widget:Tweet: Difference between revisions

From SMO.wiki
m Added "do not track" property
Added usage text
Line 1: Line 1:
<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>
This widget allows you to add a [https://help.twitter.com/en/using-twitter/how-to-embed-a-tweet Tweet card] to your wiki page.
 
== Using this widget ==
To insert this widget, use the following syntax:
<code><nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>|id = example}}</nowiki></code>
 
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>

Revision as of 05:57, 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.