Cannabis Ruderalis

Content deleted Content added
reword, included code
→‎Single parameter: changed to suit "Twitter" page as well
Line 13: Line 13:
*{{twitter|Wikipedia}}
*{{twitter|Wikipedia}}


Hovering over the link shows that the template links to <tt>http://www.twitter.com/Wikipedia</tt>, whilst the link itself displays the current page name (Twitter/doc)
Hovering over the link shows that the template links to <tt>http://www.twitter.com/Wikipedia</tt>, whilst the link itself displays the current page name (displays as "Twitter/doc" or "Twitter")


===Two parameters===
===Two parameters===

Revision as of 05:01, 16 April 2009

The template name is "{{Twitter}}". It is used to link articles to a particular Twitter account, by the account's URL and title.

Code

 {{Twitter|link title|account name}}

Usage

Single parameter

If only one parameter is used in the template, this parameter will be the page's url, with the link being the name of the Wikipedia page used on. Example:

 {{Twitter|Wikipedia}}

produces

Hovering over the link shows that the template links to http://www.twitter.com/Wikipedia, whilst the link itself displays the current page name (displays as "Twitter/doc" or "Twitter")

Two parameters

If two parameters are used in the template, the first parameter will be the page's url, while the second will be the title of the link. Example:

 {{Twitter|Wikipedia|The World's best website}}

produces

Hovering over the link shows that the template links to http://www.twitter.com/Wikipedia, whilst the link itself displays "The World's best website".

Leave a Reply