Actions

Tweet

From MediaWiki Widgets

Tweet widget
Description:Allows to embed a single tweet.
Author:Pablog
Provider:Twitter
Code:Widget:Tweet
Status:active
Security:unknown
Inv-Icon tools.svg.png

To copy this widget to your wiki, cut and paste the entire source of the Tweet widget code page into a page called Widget:Tweet on your wiki.

If you don't have the Widget extension set up on your wiki, go to its description page on MediaWiki.org and follow the installation instructions.


This widget allows you to embed a tweet to your wiki page. It was created by Pablo Castellano.

Usage

To insert this widget, use the following code:

{{#widget:Tweet
 |id=226413520412090368
}}

You can use some parameters to customize the style of the tweet box, like:

{{#widget:Tweet
 |id=226413520412090368
 |linkColor=#cc0000
 |theme=dark
}}

For more information about customization parameters, have a look at the Twitter documentation available at https://dev.twitter.com/web/javascript/creating-widgets#create-tweet.


Parameters

Mandatory

  • id - tweet id

Optional

  • align - left, right, center. (Default: undefined)
  • conversation - none, all. (Default: all)
  • cards - hidden, visible. (Default: visible)
  • width - numeric value. (Default: auto)
  • linkColor - hexadecimal color value (Default: blue)
  • theme - dark, light. (Default: light)

Examples

Single post

Single post enhanced with further options

Comments

blog comments powered by Disqus