Howto TwitterFBLike: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
(Created page with "{{Extension |name = TwitterFBLike |status = beta |type = parser |author = Barry Coughlan |mediawiki = Tested on 1.17 |download = [https://gith...")
 
mNo edit summary
Line 1: Line 1:
{{Extension
{{info|Parser that inserts Twitter and Facebook "Like" buttons on a page.}}
|name      = TwitterFBLike
|status    = beta
|type      = parser
|author    = [[User:bcoughlan|Barry Coughlan]]
|mediawiki = Tested on 1.17
|download  = [https://github.com/bcoughlan/Extension-TwitterFBLike Here (github)]
|description = Parser that inserts Twitter and Facebook "Like" buttons on a page
|parameters =
|example  =
|hook1 = ParserFirstCallInit
|hook2 = LanguageGetMagic
|hook3 = BeforePageDisplay
|license = GPL 2.0 or higher
|pagedrive1 = true
}}
 
Parser that inserts Twitter and Facebook "Like" buttons on a page.





Revision as of 19:24, 9 February 2012

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

File:TwitterFBLike1.png


{{#TwitterFBLike:||}}

File:TwitterFBLike2.png


{{#TwitterFBLike:||like}}

File:TwitterFBLike3.png


You can also float the image left or right:

{{#TwitterFBLike:left|small}}
{{#TwitterFBLike:right|small}}

Sources

MediaWiki