Jump to content

Template:Social media post/doc

From Wikipedia, the free encyclopedia
Example User
@example.bsky.social

hi. this is an example post. thank you for reading it.

September 3, 2024[1]

This template allows posts from social media sites other than (but inclusive of) Twitter, to be easily quoted within articles. This is an alternative to (and fork of) Template:Tweet. It is more appropriate to use this template than a screenshot of a tweet or post, because the text it contains will be accessible to screen readers.

To select what image it displays for the social media network, put the name of the SVG logo file in the 'sitelogo' parameter. If on a site that prefaces usernames with something other than an @ symbol, change 'prefix' parameter.

Example User
@example

guess what this is... (hint, it's another example)

January 4, 1952[2]

Example User
@example

Replying to @example2

who needs social media when you have wikipedia?

July 14, 2024[3]

Example User
u/example

this is also an example.

December 13, 2004[4]

Usage

[edit]

Full blank syntax

[edit]
{{NotYetNamed
| name = 
| username = 
| prefix = @
| replyto = 
| lang = 
| text = 
| translation = 
| date = 
| sitelogo=
| ID = 
| reference = 
| archive-url = 
| archive-date = 
| url-status = 
| image = 
| block = 
| left = 
| width = 
| style =
}}

Parameters

[edit]
  • |name= user's name as it appears at the top of the tweet
  • |username= user's @ handle (without the @)
  • |prefix= Prefix before username. Typically @
  • |replyto= optional: username tweet is replying to
  • |lang= optional: language code of the tweet if non-English
  • |text= content of the post
  • |sitelogo= Logo of the social media site
  • |translation= optional: English translation of tweet if original tweet non-English
  • |date= required: date of the tweet formatted according to MOS:DATE; should be used with tweets posted before November 4, 2010. If the date is after 23 July 2023 the template will mark it as an X post.
  • |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. See second example.
  • |archive-url= optional: URL of an archived copy of the tweet. Ignored if |reference= is used.
  • |archive-date= optional: date of the archived copy. Ignored if |reference= is used.
  • |url-status= optional: if set to 'live', the title displays as the live link; if set to 'dead', the title displays as the archive link. Ignored if |reference= is used.
  • |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
  • |style= optional: custom style

Helpful Hints

[edit]
Site Logo File Location
Twitter (Pre 23 July 2023) Logo_of_Twitter.svg
X X_logo_2023.svg
Facebook 2023_Facebook_icon.svg
Instagram Instagram_logo_2022.svg
Mastodon Mastodon_logotype_(simple)_new_hue.svg
TruthSocial Truth_Social_logo_2022.svg
Bluesky Bluesky_Logo.svg
Reddit Reddit_Logo_Icon.svg
Tumblr Tumblr_Wordmark.svg
Threads Threads_(app).svg

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Social media post in articles based on its TemplateData.

TemplateData for Social media post

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename n

Name of the individual/account that made the post

Example
Wikimedia Foundation, Bill Gates
Stringrequired
prefixprefix pre p

Prefix that comes before username. Typically @

Default
@
Example
@example, u/example, example.bsky.social
Auto value
@
Unknownsuggested
Usernameusername u

Username/Handle of the account, without any prefix

Example
@example = example, u/example = example, @example@wikis.world = example@wikis.world
Stringrequired
Texttext t

Content of the post, as it appears on social media

Stringrequired
Datedate d

Date the message was posted

Example
September 3, 2022
Daterequired
User Imageimage i

Image/Profile Photo (if available) of the user

Filesuggested
Site Logositelogo s

Logo of the site the message was posted on

Example
Logo_of_Twitter.svg, X_logo_2023.svg, Mastodon_logotype_(simple)_new_hue.svg, Bluesky_Logo.svg
Filesuggested
refref

no description

Unknownoptional
referencereference

no description

Unknownoptional
nocategorynocategory

no description

Unknownoptional
leftleft

no description

Unknownoptional
widthwidth

no description

Unknownoptional
replytoreplyto

no description

Unknownoptional
langlang

no description

Unknownoptional
languagelanguage

no description

Unknownoptional
translationtranslation

no description

Unknownoptional
lastlast

no description

Unknownoptional
firstfirst

no description

Unknownoptional
author-linkauthor-link

no description

Unknownoptional
archive-urlarchive-url

no description

Unknownoptional
archive-datearchive-date

no description

Unknownoptional
url-statusurl-status

no description

Unknownoptional
cite-idcite-id

no description

Unknownoptional
ref-nameref-name

no description

Unknownoptional

See also

[edit]

References

[edit]
  1. ^ http://www.bsky.app
  2. ^ truthsocial.com
  3. ^ example
  4. ^ www.state.gov