Cannabis Ruderalis

Content deleted Content added
cat
(39 intermediate revisions by 21 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{warning|The [[Wikipedia:External links|external links guideline]] recommends [[WP:ELNO|avoiding links to Twitter]]. Only include links to social media if 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). 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 by other subject-controlled sources.}}
{{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.}}
{{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.
This template generates an external link to an account at [[Twitter]].


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.
{{See also|Wikipedia:External links/Perennial websites}}


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.


== Usage ==
==Usage summary==
One parameter:
; One parameter
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | <var>username</var> }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <var>username</var> }}</code>


Two parameters:
; Two parameters
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | <var>username</var> | <var>Displayed Name</var> }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <var>username</var> | name= <var>Displayed Name</var> }}</code>


; Using Wikidata property
== Examples ==
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= <var>Displayed Name</var> }}</code>


==Explanations and examples==
===One parameter===
This parameter will be the ID string used in the [[URL]] at Twitter. When one parameter is used, the [[link text]] is the title of the Wikipedia article where the template is used.


=== One parameter ===
: URL: <code><nowiki>https://</nowiki>twitter.com/{{hilite|Wikipedia}}</code>
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.
# <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | Wikipedia }}</code>
#: {{{{BASEPAGENAME}} | Wikipedia }}
# <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= Wikipedia }}</code>
#: {{{{BASEPAGENAME}} | id= Wikipedia }}


; URL
Since "Twitter" is the name of the Wikipedia page you now are looking at, the link above shows "Twitter on Twitter" for the Wikipedia page. The lead name will change according to the name of the Wikipedia page used on.
: <code>[https://twitter.com/Twitter https://twitter.com/{{Highlight|Twitter}}]</code>


; Usage
===Two parameters===
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | {{Highlight|Twitter}} }}</code>
The first parameter will be the ID string used in the [[URL]] at Twitter. The second parameter will be used at the [[link text]].
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= {{Highlight|Twitter}} }}</code>


; Output
: URL: <code><nowiki>https://</nowiki>twitter.com/{{hilite|AcadiaU}}</code>
# <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | AcadiaU | Acadia University }}</code>
:* {{ {{BASEPAGENAME}} | Twitter }}
#: {{{{BASEPAGENAME}} | AcadiaU | Acadia University }}
:* {{ {{BASEPAGENAME}} | id= Twitter }}
# <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= AcadiaU | name= Acadia University }}</code>
#: {{{{BASEPAGENAME}} | id= AcadiaU | name= Acadia University }}


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.
== Template data ==

{{TemplateDataHeader}}
=== 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
: <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>
<templatedata>
{
{
"description": "This template generates an external link to an account at Twitter.",
"description": "This template generates an external link to an account at Twitter.",
"params": {
"params": {
"id": {
"id": {
"label": "ID",
"label": "ID",
"aliases": [ "1" ],
"description": "ID string used in the URL.",
"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.",
"type": "string",
"default": "Wikidata property P2002",
"required": true,
"example": "AcadiaU",
"aliases": [ "1" ]
"type": "string",
},
"required": false
"name": {
},
"label": "Name",
"name": {
"description": "Name displayed as the link text. If not specified it defaults to the article's {{PAGENAME}}, without disambiguation.",
"type": "string",
"label": "Name",
"required": false,
"aliases": [ "2" ],
"description": "The name displayed as the link text. This parameter is optional; it defaults to the Wikipedia article name, without disambiguation.",
"aliases": [ "2" ]
"default": "{{PAGENAMEBASE}}",
}
"example": "Acadia University",
}
"type": "string",
"required": false
}
},
"paramOrder": [
"id",
"name"
]
}
}
</templatedata>
</templatedata>


== See also ==
==Tracking categories==
* {{clc|Twitter username different from Wikidata}} – ''comparison is [[case insensitive]], so [https://twitter.com/AcadiaU AcadiaU] matches [https://twitter.com/acadiau acadiau]''
* {{tl|Twitter status}}
* {{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|Pinterest}}
* {{tl|Tumblr}}
* {{tl|Tumblr}}
* {{tl|flickr-inline}}
* {{tl|flickr-inline}}
* {{tl|flickr-inline2}}
* {{tl|flickr-inline2}}
* {{tl|Instagram}}
* [[Wikipedia:TWITTER]]


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<includeonly>{{Sandbox other||
<!--Categories below this line, please; interwikis at Wikidata-->
<!--Categories below this line, please; interwikis at Wikidata-->
[[Category:Social media external link templates]]
{{DEFAULTSORT:Twitter}}
[[Category:Templates for linking to a social networking site]]
[[Category:People and person external link templates]]
[[Category:External link templates using Wikidata]]
[[Category:Templates that add a tracking category]]
[[Category:Twitter templates]]
}}</includeonly>
}}</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