Difference between revisions of "Template:Twitter/doc"

From The Lion King Wiki
Jump to: navigation, search
(Created page with "{{doc/start}} This template uses the [http://www.mediawiki.org/wiki/Extension:TwitterFeed TwitterFeed Extension] for MediaWiki. == Usage == === The feed from [http://twitter.c...")
 
Line 17: Line 17:
 
* Copy the RSS feed URL. It should look something like: <code>http://twitter.com/favorites/276459840.rss</code>
 
* Copy the RSS feed URL. It should look something like: <code>http://twitter.com/favorites/276459840.rss</code>
 
* 276459840 is the user ID.
 
* 276459840 is the user ID.
<pre>{{Twitter|276459840}}</pre>
+
<pre>{{Twitter|35421362}}</pre>
Will Output: {{Twitter|276459840}}
+
Will Output: {{Twitter|35421362}}
  
 
=== Setting the number of Tweets ===
 
=== Setting the number of Tweets ===
Line 24: Line 24:
 
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.
 
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.
  
<pre>{{Twitter|276459840|15}}</pre>
+
<pre>{{Twitter|35421362|15}}</pre>
Will Output: {{Twitter|276459840|15}}
+
Will Output: {{Twitter|35421362|15}}
  
 
=== All parameters ===
 
=== All parameters ===

Revision as of 22:57, 4 April 2011

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:

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

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

Will Output: <twitterfeed id="35421362" 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.