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 your Twitter user ID. It can be obtained by:

  1. Right-clicking on the page, and clicking "View page source" ("View source" in Internet Explorer). (Also, Ctrl+U in Firefox and Chrome).
  2. Searching for (Ctrl+F) .rss in the page source
  3. Copying the RSS feed URL. It should look something like: http://twitter.com/favorites/41208569.rss
  4. 41208569 is your user ID.
{{Twitter|41208569}}

Will Output: <twitterfeed id="41208569" 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|41208569|15}}

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

All parameters

{{Twitter
| id = 
| num = 
| show name = yes/no (default: no)
| show date = yes/no (default: yes)
}}

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