InfiniteNexus (talk | contribs) cat |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 17: | Line 17: | ||
==Usage summary== |
==Usage summary== |
||
One parameter |
; One parameter |
||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | <var>username</var> }}</code> |
||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <var>username</var> }}</code> |
||
Two parameters |
; Two parameters |
||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | <var>username</var> | <var>Displayed Name</var> }}</code> |
||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <var>username</var> | name= <var>Displayed Name</var> }}</code> |
||
Using |
; Using Wikidata property |
||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> |
||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= |
: <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 |
|||
: <code> |
: <code>[https://twitter.com/Twitter https://twitter.com/{{Highlight|Twitter}}]</code> |
||
; Usage |
|||
⚫ | |||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | |
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | {{Highlight|Twitter}} }}</code> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
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> |
: <code>[https://twitter.com/AcadiaU https://twitter.com/{{Highlight|AcadiaU}}]</code> |
||
; Usage |
|||
⚫ | |||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | |
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | {{Highlight|AcadiaU}} | Acadia University }}</code> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
===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 |
|||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> |
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> |
||
; Output |
|||
: {{ {{BASEPAGENAME}} }} |
:* {{ {{BASEPAGENAME}} }} |
||
== TemplateData == |
== TemplateData == |
||
Line 72: | Line 77: | ||
"params": { |
"params": { |
||
"id": { |
"id": { |
||
"label": " |
"label": "ID", |
||
"aliases": [ "1" ], |
"aliases": [ "1" ], |
||
"description": "The |
"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": " |
"label": "Name", |
||
"aliases": [ "2" ], |
"aliases": [ "2" ], |
||
"description": "The |
"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}} |
* {{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 username not in Wikidata}} |
||
* {{clc|Twitter template missing ID and not in Wikidata}} |
* {{clc|Twitter template missing ID and not in Wikidata}} |
||
Line 103: | Line 110: | ||
==See also== |
==See also== |
||
* {{tl|Cite Twitter profile}}, for use inside ref tags |
* {{tl|Cite Twitter profile}}, for use inside ref tags |
||
⚫ | |||
⚫ | |||
⚫ | |||
* {{tl|Facebook}} |
|||
* {{tl|Instagram}} |
|||
* {{tl|Pinterest}} |
* {{tl|Pinterest}} |
||
* {{tl|Tumblr}} |
* {{tl|Tumblr}} |
||
* {{tl|flickr-inline}} |
* {{tl|flickr-inline}} |
||
* {{tl|flickr-inline2}} |
* {{tl|flickr-inline2}} |
||
⚫ | |||
⚫ | |||
⚫ | |||
<includeonly>{{Sandbox other|| |
<includeonly>{{Sandbox other|| |
||
Line 116: | 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 |
[[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.
- Usage
* {{Twitter | Twitter }}
* {{Twitter | id= Twitter }}
- Output
-
- Twitter/doc on X
- Twitter/doc on X
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.
- Usage
* {{Twitter | AcadiaU | Acadia University }}
* {{Twitter | id= AcadiaU | name= Acadia University }}
- Output
-
- Acadia University on X
- Acadia University on X
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
-
- {{ Twitter}} template missing ID and not present in Wikidata.
TemplateData
TemplateData for Twitter
This template generates an external link to an account at Twitter.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 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.
| String | optional |
Name | name 2 | The name displayed as the link text. This parameter is optional; it defaults to the Wikipedia article name, without disambiguation.
| String | optional |
Tracking categories
- Category:Twitter username different from Wikidata (543) – comparison is case insensitive, so AcadiaU matches acadiau
- Category:Twitter username not in Wikidata (285)
- Category:Twitter template missing ID and not in Wikidata (0)
- Category:Pages using Twitter with unknown parameters (1)
See also
- {{Cite Twitter profile}}, for use inside ref tags
- {{Tweet}}
- {{Cite tweet}}
- Wikipedia:TWITTER
- {{Facebook}}
- {{Instagram}}
- {{Pinterest}}
- {{Tumblr}}
- {{flickr-inline}}
- {{flickr-inline2}}