Difference between revisions of "Template:Twitter"
From The Lion King Wiki
Line 1: | Line 1: | ||
− | <includeonly><twitterfeed | + | <includeonly><twitterfeed id="{{{1|{{{id|276459840}}}}}}" nb="{{{2|{{{num|10}}}}}}"></twitterfeed></includeonly><noinclude> |
{{/doc}} | {{/doc}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 23:31, 4 April 2011
This template uses the TwitterFeed Extension for MediaWiki.
Contents
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:
- Right-clicking on the page, and clicking "View page source" ("View source" in Internet Explorer). (Also, Ctrl+U in Firefox and Chrome).
- Searching for (Ctrl+F)
.rss
in the page source - Copying the RSS feed URL. It should look something like:
http://twitter.com/favorites/41208569.rss
- 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) }}
The above documentation is transcluded from Template:Twitter/doc. (edit | history)