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
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Extension
{{info|When creating new Article, this parser will inserts Twitter and Facebook "Like" buttons.}}
|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.




== Usage ==
== Usage ==
Insert the TwitterFBLike parser tag into your wiki page. The tag takes three parameters:
Insert the TwitterFBLike parser tag into your wiki page. The tag takes three parameters:
# '''Float: ''' Floats the div that contains the icons. Valid values are "left" or "right", empty value means don't float.
# '''Small mode:''' Uses the small version of the icons if set to "small". Uses the big versions otherwise
# '''Like/Recommend''' If set to "like", uses the word "Like" instead of "Recommend" on the Facebook button.


Examples:
Examples:
Line 32: Line 11:
</pre>
</pre>
[[File:TwitterFBLike0.png]]
[[File:TwitterFBLike0.png]]
<pre>
<nowiki>{</nowiki>{#TwitterFBLike:|small|like}}
</pre>
[[File:TwitterFBLike1.png]]
<pre>
<nowiki>{</nowiki>{#TwitterFBLike:||}}
</pre>
[[File:TwitterFBLike2.png]]
<pre>
<nowiki>{</nowiki>{#TwitterFBLike:||like}}
</pre>
[[File:TwitterFBLike3.png]]
You can also float the image left or right:
<pre>
<nowiki>{</nowiki>{#TwitterFBLike:left|small}}
<nowiki>{</nowiki>{#TwitterFBLike:right|small}}
</pre>


== Sources ==
== Sources ==


[http://www.mediawiki.org/wiki/Extension:TwitterFBLike MediaWiki]
[http://www.mediawiki.org/wiki/Extension:TwitterFBLike MediaWiki]

Latest revision as of 19:26, 9 February 2012

When creating new Article, this parser will inserts Twitter and Facebook "Like" buttons.


Usage

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

Examples:

{{#TwitterFBLike:|small}}

Sources

MediaWiki