Widget:Tweet: Difference between revisions

From Citizendium
Jump to navigation Jump to search
(adding the usage details here)
(adding more details on documentation)
 
Line 20: Line 20:
  |theme=dark
  |theme=dark
}}</nowiki>
}}</nowiki>
Mandatory Parameter
    id - tweet id
Optional Parameters
    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)


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 https://dev.twitter.com/web/javascript/creating-widgets#create-tweet].
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 https://dev.twitter.com/web/javascript/creating-widgets#create-tweet].

Latest revision as of 10:47, 13 October 2022

This widget allows you to embed a tweet on your wiki page.

Created by Pablo Castellano.

Using this widget

For information on how to use this widget, see widget description page on MediaWikiWidgets.org.

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
}}

Mandatory Parameter

   id - tweet id

Optional Parameters

   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)

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.

Copy to your site

To use this widget on your site, just install MediaWiki Widgets extension and copy the full source code of this page to your wiki as page Widget:Tweet.