Difference between revisions of "Template:Twitter"

From CWCki
Jump to navigation Jump to search
(Added usage.)
(Added usage, recategorized as a userbox and broken template.)
Line 10: Line 10:
|}
|}


<noinclude>{{clear}}{{usage|1=
<noinclude>{{clear}}{{usage|1=This is a sidebar userbox that provides a link to a user's Twitter account. The format for using this template is as follows:<br />
== Usage ==
 
=== Example ===
=== Example ===
<pre>{{twitter
<pre>{{twitter
Line 27: Line 27:
}}
}}
{{clear}}
{{clear}}
okay, doesn't seem to work, leaving this here incase anyone wants to work on it
okay, doesn't seem to work, leaving this here in case anyone wants to work on it
}}
}}


__NOTOC__
__NOTOC__
[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:Userboxes|{{PAGENAME}}]][[Category: Broken Templates|{{PAGENAME}}]]</noinclude>

Revision as of 21:27, 3 December 2010

<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

    These usage notes will not be included in articles bearing this template.

    This is a sidebar userbox that provides a link to a user's Twitter account. The format for using this template is as follows:

    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 in case anyone wants to work on it