Template:TwitterSDK

From Animal Crossing Pocket Camp Wiki
Jump to navigation Jump to search
Template-info.svg Documentation

This template loads the Twitter embed code on a page. This is useful to load a Tweet embed without having to hack together some JavaScript. Credit to Owlnai from Dragon Marked For Death Wiki!

Steps

  1. Go to https://publish.twitter.com and retrieve the embed code for the Tweet.
  2. Add {{TwitterSDK}}, and the embed code from step 1, onto the page.
  3. Remove the <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> part of the embed code.

Example

{{TwitterSDK}}
<blockquote class="twitter-tweet" data-dnt="true"><p lang="en" dir="ltr">Hello! It's a pleasure to meet you. I'm Lloid, and I'll be taking over from Isabelle to give you the latest Animal Crossing: Pocket Camp news.<br>I'm having some difficulty operating this "keyboard" with my wiggly arms, but bear with me! <br>I'm sure I'll get the hang of it in time! <a href="https://twitter.com/Pocket_Camp/status/1197348976921497600">pic.twitter.com/Rqym4TToRw</a></p>— Pocket_camp (@Pocket_Camp) <a href="https://twitter.com/Pocket_Camp/status/1197348976921497600?ref_src=twsrc%5Etfw">November 21, 2019</a></blockquote>