Difference between revisions of "Template:Like"

From blackwiki
Jump to navigation Jump to search
imported>Awilley
(Undid revision 500069906 by Adjwilley (talk))
imported>Matthiaspaul
(Per COM:PRP replaced proprietary FB Like button by free design provided by Adjwilley to avoid legal trouble for WMF as our usage was violating FB's license: www.facebook.com/brandpermissions/logos.php)
Line 1: Line 1:
<span style="display:inline-block;padding:0 .5em;line-height:1.75em;border:1px solid #CAD4E7; font-family:'Lucida Grande',Tahoma,Verdana,sans-serif; {{border-radius|3px}} background:#ECEEF5; text-align:center;">[[File:{{{image|Facebook like thumb.png}}}|text-top|link=|alt=👍]]&thinsp;<span style="color:#3B5998;">{{#if:{{{num|}}}|{{{num|}}} {{PLURAL:{{{num|}}}|user {{{1|likes}}}|users {{{1|like}}}}} this.|{{#if:{{{username|}}}|[[User:{{{username|}}}|{{{username|}}}]] likes this.|{{{1|Like}}}}}}}</span></span><noinclude>
+
<span style="display:inline-block;padding:0 .38em;line-height:1.7em;border:1px solid #444444; font-family:'Lucida Grande',Tahoma,Verdana,sans-serif; {{border-radius|1px}} background:#FFFFFF; text-align:center;">[[File:{{{image|Wikipedia like thumb.png}}}|text-top|link=|alt=👍|16px]]&thinsp;<span style="color:#555555;">{{#if:{{{num|}}}|{{{num|}}} {{PLURAL:{{{num|}}}|user {{{1|likes}}}|users {{{1|like}}}}} this.|{{#if:{{{username|}}}|[[User:{{{username|}}}|{{{username|}}}]] likes this.|{{{1|Like}}}}}}}</span></span><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 22:28, 23 July 2012

16pxLike

50px Template documentation[view] [edit] [history] [purge]

Usage

{{like}}16pxLike

Parameters

Custom text

{{like|I learned something today}}16pxI learned something today

When no parameter name is specified, custom text is assumed


Icon

{{like|icon=wiki}}16pxLike

Default icon

{{like|icon=old}}16pxLike

Legacy icon

{{like|icon=fb}}16pxLike

Facebook icon


Username

{{like|username=ExampleUser}}16pxExampleUser likes this.

Num (User Likes)

{{like|num=1}}16px1 user likes this.

{{like|num=2}}16px2 users like this.

{{like|num=3}}16px3 users like this.

Etc...

Supported parameter combinations

Custom text

{{like|I learned something yesterday|icon=old}}16pxI learned something yesterday

Custom text + icon

{{like|loves|num=1}}16px1 user loves this.

When combined with Num (User likes), custom text replace the verb "like"

{{like|love|num=3}}16px3 users love this.

For plural users, remember to change your verb accordingly
Icon

{{like|icon=old|username=ExampleUser}}16pxExampleUser likes this.

icon + username

{{like|icon=old|num=1}}16px1 user likes this.

icon + num (user likes)
Username
Username can be combined with Icon, as above. You can't use this parameter together with custom text or num (user likes).
Num (User Likes)
Num can be combined with Custom Text and Icon, as above. You can't use this parameter together with Username.
3 parameter combination

{{like|loves|icon=old|num=1}}16px1 user loves this.

You can combine Custom Text, Icon, and Num (User likes)

See also

This list:

Inline icon templates by shape and color

Any of the following inline, comment-level templates can be converted into {{Resolved}}-style hatnotes by using {{Resbox}} to put a box around the icon and text.

Script error: No such module "aligned table". Script error: No such module "aligned table". Script error: No such module "aligned table". Script error: No such module "aligned table". Script error: No such module "aligned table". Script error: No such module "aligned table".

Script error: No such module "aligned table". Script error: No such module "aligned table". Script error: No such module "aligned table". Script error: No such module "aligned table". Script error: No such module "aligned table". Script error: No such module "aligned table". Script error: No such module "aligned table". Script error: No such module "aligned table". Script error: No such module "aligned table". Script error: No such module "aligned table". Script error: No such module "aligned table".

Others

Script error: No such module "aligned table". Script error: No such module "aligned table".

Multi-sign templates

The following templates implement several icons:

Others