Template:Twitter/doc

From The Lion King Wiki
Jump to: navigation, search
Template-info.png Documentation

This template uses the TwitterFeed Extension for MediaWiki.

Usage

The feed from @TLKWiki

{{Twitter}}

Will Output: <twitterfeed id="276459840" nb="10" sn="no" sd="yes"></twitterfeed>

Grabbing a different feed

The second parameter is the ID of the user that you want to display tweets from. To get this ID:

  1. Visit the user's profile on Twitter. For example, we will be grabbing the user ID of @Google.
  2. Right-click on the page, and click "View page source" ("View source" in Internet Explorer). (Also, Ctrl+U in Firefox and Chrome).
  3. Search for (Ctrl+F) .rss in the page source
  4. Copy the RSS feed URL. It should look something like: http://twitter.com/favorites/276459840.rss
  5. 276459840 is the user ID.
{{Twitter|276459840}}

Will Output: <twitterfeed id="276459840" nb="10" sn="no" sd="yes"></twitterfeed>

Setting the number of Tweets

By default, the max number of tweets it will grab is 10. If you want more or less, you can specify that in the third parameter.

{{Twitter|276459840|15}}

Will Output: <twitterfeed id="276459840" nb="15" sn="no" sd="yes"></twitterfeed>

All parameters

{{Twitter
| id = 
| num = 
}}

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.