79.66.18.45 (talk) →Code: http://twitter.com/airtrafficlive |
disclaimer |
||
Line 15: | Line 15: | ||
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") |
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") |
||
The [[Wikipedia:External links|external links guideline]] recommends [[WP:ELNO|avoiding links to Twitter]] unless the Twitter feed is an [[WP:ELOFFICIAL|an official account]] "controlled by the subject (organization or individual person) of the Wikipedia article". |
|||
===Two parameters=== |
===Two parameters=== |
Revision as of 04:58, 15 January 2010
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|airtrafficlive|person's 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
- Twitter/doc on X
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")
The external links guideline recommends avoiding links to Twitter unless the Twitter feed is an an official account "controlled by the subject (organization or individual person) of the Wikipedia article".
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".