Howto TwitterFBLike: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
{{info|Parser that inserts Twitter and Facebook "Like" buttons on a page.}}
{{info|When creating new Article, this parser will inserts Twitter and Facebook "Like" buttons.}}




== 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 15: 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