Extension:TwitterFBLike

Parser that inserts Twitter and Facebook "Like" buttons on a page.

Usage
Insert the TwitterFBLike parser tag into your wiki page. The tag takes three parameters:


 * 1) Float:  Floats the div that contains the icons. Valid values are "left" or "right", empty value means don't float.
 * 2) Small mode: Uses the small version of the icons if set to "small". Uses the big versions otherwise
 * 3) Like/Recommend If set to "like", uses the word "Like" instead of "Recommend" on the Facebook button.

Examples:

{ {#TwitterFBLike:|small}}

{ {#TwitterFBLike:|small|like}}

{ {#TwitterFBLike:||}}

{ {#TwitterFBLike:||like}}

You can also float the image left or right: { {#TwitterFBLike:left|small}} { {#TwitterFBLike:right|small}}

Installation
Download the package from the Github link in the sidebar (click the big "Downloads" button and get the latest zip file). Unzip the TwitterFBLike folder into /extensions/ inside your Mediawiki installation, (so that the path to TwitterFBLike.php is /extensions/TwitterFBLike/TwitterFBLike.php).

In your LocalSettings.php, add the following line to the bottom of the file:

Customising the CSS
TwitterFBLike.css lets you customise the CSS for all buttons, and on a per-page basis. Note that the Twitter and Facebook buttons themselves can't be customised because they are in tags.

To customise all pages, edit: /* CSS for small version */ .twitterFBLike_small { ... }

/* CSS for big version */ .twitterFBLike_small { ... }

To customise a single page, add an entry with the URL page title appended to the class: .twitterFBLike_Main_Page { ... }

Reporting bugs
Please use the GitHub issue tracker to report any bugs or other issues.