Actions

Widget

Difference between revisions of "Tweet"

(Created page with "{{Widget |description=Allows to embed a single tweet. |author=Pablog |provider=Twitter |providerurl=https://dev.twitter.com/web/embedded-tweets |status=active |security=unknow...")
 
m
Line 1: Line 1:
−
{{Widget
 
−
|description=Allows to embed a single tweet.
 
−
|author=Pablog
 
−
|provider=Twitter
 
−
|providerurl=https://dev.twitter.com/web/embedded-tweets
 
−
|status=active
 
−
|security=unknown
 
−
}}
 
 
This widget allows you to [https://dev.twitter.com/web/embedded-tweets embed a tweet] to your wiki page. It was created by [[User:Pablog|Pablo Castellano]].
 
This widget allows you to [https://dev.twitter.com/web/embedded-tweets embed a tweet] to your wiki page. It was created by [[User:Pablog|Pablo Castellano]].
  
Line 46: Line 38:
 
=== Single post enhanced with further options ===
 
=== Single post enhanced with further options ===
 
{{#widget:Tweet|id=226413520412090368|linkColor=#cc0000|theme=dark}}
 
{{#widget:Tweet|id=226413520412090368|linkColor=#cc0000|theme=dark}}
−
{{Comments}}
 
−
 
−
[[Category:Widgets]]
 

Revision as of 23:17, 23 March 2017

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