Template:Tweet

From Blaseball Wiki

Example Twitter
@example

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dignissim, dolor vitae ullamcorper aliquet, velit mi sagittis metus.

12 Jul 2017

This template allows relevant tweets to be easily quoted within articles.

Using this template is better than a screen-shot of a tweet because the text is accessible to screen readers.

It is an alternative to standard quotation templates because it displays all relevant information about the tweet (date of posting, user's name, user's handle, etc).

Usage

Full blank syntax

{{Tweet
| name = 
| username = 
| replyto = 
| text = 
| translation = 
| date = 
| id = 
| reference = 
| image = 
| block = 
| left = 
| width = 
}}

Parameters

  • |name= user's name as it appears at the top of the tweet
  • |username= user's @ handle (without the @)
  • |replyto= optional: username tweet is replying to
  • |text= content of the tweet
  • |translation= optional: text content of tweet if original tweet used stylized characters
  • |date= date of the tweet formatted according to MOS:DATE, should be used with tweets posted before November 4, 2010
  • |id= number at the end of the tweet URL
  • |reference= optional: the template automatically creates a reference, but one can be provided to use instead
  • |image= optional: image or logo associated with Twitter account
  • |block= optional: any value displays tweet as block with 500px width as default (text above and below, doesn't flow around).
  • |left= optional: any value makes tweet aligned left
  • |width= optional: custom tweet width, default is 220px

Examples

{{Tweet
| name = NASA
| username = NASA
| replyto = WilliamShatner
| text = @WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you're having a great weekend!
| date = Aug 2, 2014
| id = 495719809695621121
| image = NASA logo.svg
| left = yes
}}
NASA Twitter
@NASA

Replying to @WilliamShatner

@WilliamShatner Good day, Captain. #ISS is in standard orbit and Commander Swanson has the conn. Hope you're having a great weekend!

Aug 2, 2014[1]

{{Tweet
| name = René Descartes
| username = descartes
| text = Dubito, ergo cogito, ergo sum
| date = 1 January 1637
| block = yes
}}
René Descartes Twitter
@descartes

I doubt, therefore I think, therefore I am

1 January 1637

TemplateData

This template allows relevant tweets to be easily quoted within articles.

Using this template is better than a screen-shot of a tweet because the text is accessible to screen readers.

It is an alternative to standard quotation templates because it displays all relevant information about the tweet (date of posting, user's name, user's handle, etc) in a way that reflects Twitter's design language.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
blockblock

Any value displays tweet as block (text above and below, doesn't flow around). Overrides left parameter

Stringoptional
widthwidth

Custom tweet width

Example
300px
Stringoptional
leftleft

Any value makes tweet aligned left

Stringoptional
namename

User's name as it appears at the top of the tweet

Stringrequired
usernameusername

User's Twitter handle. Do not include the @ symbol.

Unknownrequired
datedate

Date of the tweet formatted according to MOS:DATE

Daterequired
texttext

Content of the tweet

Stringrequired
idid

The number at the end of the tweet URL

Numbersuggested
referencereference ref

A custom reference can be provided to use instead of the automatically generated one

Example
<ref>custom reference</ref>
Stringoptional
imageimage

Image or logo associated with twitter account

Fileoptional
replytoreplyto

Username the tweet is replying to

Stringoptional
translationtranslation

english translation of the tweet

Unknownoptional

References