Cannabis Ruderalis

Content deleted Content added
91.129.109.187 (talk)
Updated to account for Elon making the verification badge useless
cat
(3 intermediate revisions by 2 users not shown)
Line 17: Line 17:


==Usage summary==
==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 the [[Wikidata]] property [[d:Property:P2002|P2002]]:
; Using Wikidata property
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= <var>Displayed Name</var> }}</code>


==Explanations and examples==
==Explanations and examples==


===One parameter===
=== 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.
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:''
; URL
: <code><nowiki>https://</nowiki>twitter.com/{{hilite|Twitter}}</code>
: <code>[https://twitter.com/Twitter https://twitter.com/{{Highlight|Twitter}}]</code>

''Usage:''
; Usage
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | Twitter }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= Twitter }}</code>
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | {{Highlight|Twitter}} }}</code>
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= {{Highlight|Twitter}} }}</code>
''Output:''

: {{ {{BASEPAGENAME}} | Twitter }}
; Output
: {{ {{BASEPAGENAME}} | id= Twitter }}
:* {{ {{BASEPAGENAME}} | Twitter }}
:* {{ {{BASEPAGENAME}} | id= 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.
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===
=== 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]].
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
''URL:''
: <code><nowiki>https://</nowiki>twitter.com/{{hilite|AcadiaU}}</code>
: <code>[https://twitter.com/AcadiaU https://twitter.com/{{Highlight|AcadiaU}}]</code>

''Usage:''
; Usage
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | AcadiaU | Acadia University }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= AcadiaU | name= Acadia University }}</code>
: <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 }}
; Output
: {{ {{BASEPAGENAME}} | id= AcadiaU | name= Acadia University }}
:* {{ {{BASEPAGENAME}} | AcadiaU | Acadia University }}
:* {{ {{BASEPAGENAME}} | id= AcadiaU | name= Acadia University }}


===No parameters===
=== 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.
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:''
; Usage
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>

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


== TemplateData ==
== TemplateData ==
Line 72: Line 77:
"params": {
"params": {
"id": {
"id": {
"label": "id",
"label": "ID",
"aliases": [ "1" ],
"aliases": [ "1" ],
"description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: AcadiaU is the ID portion of https://twitter.com/AcadiaU. This parameter is optional if Wikidata property P2002 exists, but required if not.",
"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",
"default": "Wikidata property P2002",
"example": "AcadiaU",
"type": "string",
"type": "string",
"required": false
"required": false
},
},
"name": {
"name": {
"label": "name",
"label": "Name",
"aliases": [ "2" ],
"aliases": [ "2" ],
"description": "The \"name\" parameter (or unnamed parameter \"2\") may be used to specify the link text. This parameter is optional; it defaults to the Wikipedia article name, without disambiguation.",
"description": "The name displayed as the link text. This parameter is optional; it defaults to the Wikipedia article name, without disambiguation.",
"default": "{{PAGENAMEBASE}}",
"default": "{{PAGENAMEBASE}}",
"example": "Acadia University",
"type": "string",
"type": "string",
"required": false
"required": false
Line 96: Line 103:


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


==See also==
==See also==
* {{tl|Cite Twitter profile}}, for use inside ref tags
* {{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}}
* {{tl|Tweet}}
* [[Wikipedia:TWITTER]]


<includeonly>{{Sandbox other||
<includeonly>{{Sandbox other||
Line 117: Line 125:
[[Category:People and person external link templates]]
[[Category:People and person external link templates]]
[[Category:External link templates using Wikidata]]
[[Category:External link templates using Wikidata]]
[[Category:Templates that add a tracking category|{{PAGENAME}}]]
[[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