Difference between revisions of "Template:Twitter"

From CWCki
Jump to navigation Jump to search
m (Protected "Template:Twitter": protected to allow HTML [edit=sysop:move=sysop])
m (doesn't work, oh well)
Line 19: Line 19:
|color = #FFFFFF
|color = #FFFFFF
}}</pre>
}}</pre>
</noinclude>
=== Result ===
=== Result ===
{{template:twitter
{{template:twitter
Line 27: Line 26:
|color = #FFFFFF
|color = #FFFFFF
}}
}}
okay, doesn't seem to work, leaving this here incase anyone wants to work on it


__NOTOC__
__NOTOC__
</noinclude>

Revision as of 11:40, 27 June 2009

<html>

    <a href="http://twitter.com/{{{username}}}" id="twitter-link" style="display:block;text-align:right;">follow me on Twitter</a>

    <script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script> <script type="text/javascript" src="http://twitter.com/statuses/user_timeline/{{{username}}}.json?callback=twitterCallback2&count=5"></script></html>


    Usage

    Example

    {{twitter
    |username = cogsdev
    |border = #FFFFFF
    |bg = #000000
    |color = #FFFFFF
    }}

    Result

    <html>

      <a href="http://twitter.com/cogsdev" id="twitter-link" style="display:block;text-align:right;">follow me on Twitter</a>

      <script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script> <script type="text/javascript" src="http://twitter.com/statuses/user_timeline/cogsdev.json?callback=twitterCallback2&count=5"></script></html>


      okay, doesn't seem to work, leaving this here incase anyone wants to work on it