Template:Twitter: Difference between revisions

From Irony Wiki
Jump to navigation Jump to search
create
 
displayusername parameter
Line 1: Line 1:
{{#if:{{{1|}}}|[https://twitter.com/{{{1}}} Twitter]}}<noinclude>{{documentation}}</noinclude>
{{#if:{{{1|}}}|[https://twitter.com/{{{1}}} Twitter{{#ifeq:{{{displayusername|}}}|yes| @{{{displayusername}}}}}]}}<noinclude>{{documentation}}</noinclude>

Revision as of 00:20, 6 August 2020

Documentation

Generates a link to a Twitter account using a provided username.

Usage

{{Twitter|USERNAME|displayusername=}}

"USERNAME" should be replaced by the username of the Twitter account you wish to link.

If displayusername=yes, then the username will be displayed in the link.

Example

{{Twitter|buddyretardbot}}

would output: Twitter

{{Twitter|buddyretardbot|displayusername=yes}}

would output: Twitter@yes