Cannabis Ruderalis

Content deleted Content added
Drundia (talk | contribs)
mNo edit summary
cat
(80 intermediate revisions by 54 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
{{Warning|The [[Wikipedia:External links|external links guideline]] recommends [[WP:ELNO|avoiding links to Twitter]]. Only include links to social media if the subject is particularly known for using that social medium, '''and''' when the link provides the reader with significant unique content, '''and''' it is not easily linked from another link included in the article (i.e. if the individual's homepage is linked and ''that'' has a prominent link to a Twitter feed, delete the Twitter link here, see [[WP:ELMINOFFICIAL]]). Wikipedia is [[WP:NOTDIR|not a comprehensive directory of a subject's web presence]]. Only link to [[WP:ELOFFICIAL|official accounts]] "controlled by the subject (organization or individual person) of the Wikipedia article". Legitimate Twitter accounts are usually named in [[WP:RS|reliable sources]] or linked to by other subject-controlled sources.}}
The template name is <nowiki>"{{Twitter}}"</nowiki>. It is used to link articles to a particular [[Twitter]] account, by the account's [[Uniform Resource Locator|URL]] and title.
{{for multi|the template for embedding tweets in articles|Template:Tweet|the navbox|Template:Twitter navbox}}
{{see also|Template:Cite tweet|Wikipedia:External links/Perennial websites}}
{{Template redirects|Twitter.com|Twitter user|Official Twitter page}}
{{Uses Wikidata|P2002}}
{{Tracks Wikidata|P2002}}
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
{{high-use}}


This template generates an external link to an account at [[Twitter]]. It is designed to standardize the text and formatting of links to the legitimate Twitter account profiles of persons or organizations with sufficient [[Wikipedia:Notability|notability]] to be the subject of a Wikipedia article. However, adding a Twitter link is never mandatory and in certain cases should be discouraged.
==Code==
<nowiki>{{Twitter|</nowiki>''airtrafficlive''<nowiki>|</nowiki>''person's name''<nowiki>}}</nowiki>


Note that ''very many'' fake Twitter accounts have been created as hoaxes, parodies, or attempts by fans to mimic a celebrity's style convincingly. Please make a detailed effort to verify the authenticity of any external links you wish to include.
==Usage==
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". Multiple hoax and "fan" accounts have been discovered; please make a particular effort to verify the authenticity of any official links. Legitimate Twitter accounts are usually named in [[WP:RS|reliable sources]], such as newspaper stories, about the subject, or linked by other subject-controlled sources.


Legitimate Twitter accounts can be found through being named in [[WP:RS|reliable sources]], such as in newspaper stories about the subject, or linked to by other subject-controlled sources, such as the subject's legitimate website. [[Twitter verification#Since November 2022|Since November 2022]], a Twitter account having a [[Twitter verification|verification badge]] no longer indicates any legitimacy, as it is now available to anyone with a [[Twitter Blue]] subscription.
Wikipedia is [[WP:NOTDIR|not comprehensive directory of a subject's web presence]]. Linking to Twitter and social networking sites is discouraged if the links are easily found at the subject's main website or other official link.


===Single parameter===
==Usage summary==
; One 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:
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | <var>username</var> }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <var>username</var> }}</code>


; Two parameters
<nowiki>{{Twitter|Wikipedia}}</nowiki>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | <var>username</var> | <var>Displayed Name</var> }}</code>
produces
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <var>username</var> | name= <var>Displayed Name</var> }}</code>
*{{twitter|Wikipedia}}


; Using Wikidata property
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")
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= <var>Displayed Name</var> }}</code>


==Explanations and examples==
===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:


=== One parameter ===
<nowiki>{{Twitter|Wikipedia|The World's best website}}</nowiki>
Fill this parameter with the ID string used in the [[URL]] for the user's account profile on Twitter. When one parameter is used, the [[link text]] is the title of the Wikipedia article where this template is used.
produces
*{{twitter|Wikipedia|The World's best website}}


; URL
Hovering over the link shows that the template links to <tt>http://www.twitter.com/Wikipedia</tt>, whilst the link itself displays "The World's best website".
: <code>[https://twitter.com/Twitter https://twitter.com/{{Highlight|Twitter}}]</code>


; Usage
<noinclude>
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | {{Highlight|Twitter}} }}</code>
[[cs:Šablona:Twitter/doc]]
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= {{Highlight|Twitter}} }}</code>
[[ja:Template:Twitter/doc]]
</noinclude>


; Output
<includeonly><!--
:* {{ {{BASEPAGENAME}} | Twitter }}
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
{{DEFAULTSORT:Twitter}}
:* {{ {{BASEPAGENAME}} | id= Twitter }}
[[Category:External link templates]]
[[Category:Templates for linking to a social networking site]]
[[Category:Twitter|*]]


Since "Twitter" is the name of the Wikipedia page you now are looking at, the link above appears as "Twitter on Twitter" on this Wikipedia page. The lead name will change according to the name of the Wikipedia page.
[[cs:Šablona:Twitter]]

[[es:Plantilla:Twitter]]
=== Two parameters ===
[[ko:틀:트위터]]
The first parameter will be the ID string used in the [[URL]] at Twitter. The second parameter will be used as the [[link text]].
[[ja:Template:Twitter]]

[[uk:Шаблон:Twitter]]
; URLs
</includeonly>
: <code>[https://twitter.com/AcadiaU https://twitter.com/{{Highlight|AcadiaU}}]</code>

; Usage
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | {{Highlight|AcadiaU}} | Acadia University }}</code>
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= {{Highlight|AcadiaU}} | name= Acadia University }}</code>

; Output
:* {{ {{BASEPAGENAME}} | AcadiaU | Acadia University }}
:* {{ {{BASEPAGENAME}} | id= AcadiaU | name= Acadia University }}

=== No parameters and Wikidata property not defined ===
When used without an "id" parameter, this template will call data from [[Wikidata]], if available. If none is available, the category [[:Category:Twitter template missing ID and not in Wikidata]] will be applied and an error message will be displayed.

; Usage
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>

; Output
:* {{ {{BASEPAGENAME}} }}

== TemplateData ==
{{TemplateData header}}
<templatedata>
{
"description": "This template generates an external link to an account at Twitter.",
"params": {
"id": {
"label": "ID",
"aliases": [ "1" ],
"description": "The username in the Twitter URL, such as AcadiaU in https://twitter.com/AcadiaU. This parameter is optional if Wikidata property P2002 exists, but required if not.",
"default": "Wikidata property P2002",
"example": "AcadiaU",
"type": "string",
"required": false
},
"name": {
"label": "Name",
"aliases": [ "2" ],
"description": "The name displayed as the link text. This parameter is optional; it defaults to the Wikipedia article name, without disambiguation.",
"default": "{{PAGENAMEBASE}}",
"example": "Acadia University",
"type": "string",
"required": false
}
},
"paramOrder": [
"id",
"name"
]
}
</templatedata>

==Tracking categories==
* {{clc|Twitter username different from Wikidata}} – ''comparison is [[case insensitive]], so [https://twitter.com/AcadiaU AcadiaU] matches [https://twitter.com/acadiau acadiau]''
* {{clc|Twitter username not in Wikidata}}
* {{clc|Twitter template missing ID and not in Wikidata}}
* {{clc|Pages using Twitter with unknown parameters}}

==See also==
* {{tl|Cite Twitter profile}}, for use inside ref tags
* {{tl|Tweet}}
* {{tl|Cite tweet}}
* [[Wikipedia:TWITTER]]
* {{tl|Facebook}}
* {{tl|Instagram}}
* {{tl|Pinterest}}
* {{tl|Tumblr}}
* {{tl|flickr-inline}}
* {{tl|flickr-inline2}}

<includeonly>{{Sandbox other||
<!--Categories below this line, please; interwikis at Wikidata-->
[[Category:Social media external link templates]]
[[Category:People and person external link templates]]
[[Category:External link templates using Wikidata]]
[[Category:Templates that add a tracking category]]
[[Category:Twitter templates]]
}}</includeonly>

Revision as of 18:32, 15 October 2023

This template generates an external link to an account at Twitter. It is designed to standardize the text and formatting of links to the legitimate Twitter account profiles of persons or organizations with sufficient notability to be the subject of a Wikipedia article. However, adding a Twitter link is never mandatory and in certain cases should be discouraged.

Note that very many fake Twitter accounts have been created as hoaxes, parodies, or attempts by fans to mimic a celebrity's style convincingly. Please make a detailed effort to verify the authenticity of any external links you wish to include.

Legitimate Twitter accounts can be found through being named in reliable sources, such as in newspaper stories about the subject, or linked to by other subject-controlled sources, such as the subject's legitimate website. Since November 2022, a Twitter account having a verification badge no longer indicates any legitimacy, as it is now available to anyone with a Twitter Blue subscription.

Usage summary

One parameter
{{Twitter | username }}
{{Twitter | id= username }}
Two parameters
{{Twitter | username | Displayed Name }}
{{Twitter | id= username | name= Displayed Name }}
Using Wikidata property
{{Twitter}}
{{Twitter | name= Displayed Name }}

Explanations and examples

One parameter

Fill this parameter with the ID string used in the URL for the user's account profile on Twitter. When one parameter is used, the link text is the title of the Wikipedia article where this template is used.

URL
https://twitter.com/Twitter
Usage
* {{Twitter | Twitter }}
* {{Twitter | id= Twitter }}
Output

Since "Twitter" is the name of the Wikipedia page you now are looking at, the link above appears as "Twitter on Twitter" on this Wikipedia page. The lead name will change according to the name of the Wikipedia page.

Two parameters

The first parameter will be the ID string used in the URL at Twitter. The second parameter will be used as the link text.

URLs
https://twitter.com/AcadiaU
Usage
* {{Twitter | AcadiaU | Acadia University }}
* {{Twitter | id= AcadiaU | name= Acadia University }}
Output

No parameters and Wikidata property not defined

When used without an "id" parameter, this template will call data from Wikidata, if available. If none is available, the category Category:Twitter template missing ID and not in Wikidata will be applied and an error message will be displayed.

Usage
* {{Twitter}}
Output
  • {&#123 Twitter}} template missing ID and not present in Wikidata.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Twitter in articles based on its TemplateData.

TemplateData for Twitter

This template generates an external link to an account at Twitter.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The username in the Twitter URL, such as AcadiaU in https://twitter.com/AcadiaU. This parameter is optional if Wikidata property P2002 exists, but required if not.

Default
Wikidata property P2002
Example
AcadiaU
Stringoptional
Namename 2

The name displayed as the link text. This parameter is optional; it defaults to the Wikipedia article name, without disambiguation.

Default
{{PAGENAMEBASE}}
Example
Acadia University
Stringoptional

Tracking categories

See also


Leave a Reply