Difference between revisions of "Template:Like"

From blackwiki
Jump to navigation Jump to search
imported>Letcreate123
(Nominating for deletion because Wikipedia is not social media.)
imported>Izkala
(fix the nom link)
Line 2: Line 2:
Β 
|old = <span style="display:inline-block;padding:0 .5em;line-height:1.80em;border:1px solid; {{border-radius|3px}}; text-align:center;">[[File:{{{image|Symbol thumbs up.svg}}} |text-top|link=|alt=πŸ‘|16px]]&nbsp;{{#if:{{{num|}}}|{{{num|}}} {{PLURAL:{{{num|}}}|user {{{1|likes}}}|users {{{1|like}}}}} this.|{{#if:{{{username|}}}| [[User:{{{username|}}}|{{{username|}}}]] likes this.|{{{1|Like}}}}}}}</span>
Β 
|old = <span style="display:inline-block;padding:0 .5em;line-height:1.80em;border:1px solid; {{border-radius|3px}}; text-align:center;">[[File:{{{image|Symbol thumbs up.svg}}} |text-top|link=|alt=πŸ‘|16px]]&nbsp;{{#if:{{{num|}}}|{{{num|}}} {{PLURAL:{{{num|}}}|user {{{1|likes}}}|users {{{1|like}}}}} this.|{{#if:{{{username|}}}| [[User:{{{username|}}}|{{{username|}}}]] likes this.|{{{1|Like}}}}}}}</span>
Β 
|fb = <span style="display:inline-block;padding:0 .5em;line-height:1.80em;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=πŸ‘|16px]]&nbsp;<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>
Β 
|fb = <span style="display:inline-block;padding:0 .5em;line-height:1.80em;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=πŸ‘|16px]]&nbsp;<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>
βˆ’
|[[File:{{{image|Wikipedia like.png}}} |25px|link=|alt=πŸ‘]] '''{{#if:{{{num|}}}|{{{num|}}} {{PLURAL:{{{num|}}}|user {{{1|likes}}}|users {{{1|like}}}}} this.|{{#if:{{{username|}}}| [[User:{{{username|}}}|{{{username|}}}]] likes this.|{{{1|Like}}}}}}}'''}} {{Template for discussion/dated|type=tiny|demospace=main|link=Wikipedia:Templates for discussion/Like and Dislike}}<noinclude>
+
|[[File:{{{image|Wikipedia like.png}}} |25px|link=|alt=πŸ‘]] '''{{#if:{{{num|}}}|{{{num|}}} {{PLURAL:{{{num|}}}|user {{{1|likes}}}|users {{{1|like}}}}} this.|{{#if:{{{username|}}}| [[User:{{{username|}}}|{{{username|}}}]] likes this.|{{{1|Like}}}}}}}'''}} {{Template for discussion/dated|type=tiny|demospace=main|link=Wikipedia:Templates for discussion/Log/2015 April 26#Like and Dislike}}<noinclude>
Β 
{{documentation}}
Β 
{{documentation}}
Β 
</noinclude>
Β 
</noinclude>

Revision as of 14:18, 26 April 2015

πŸ‘ Like Template:Template for discussion/dated

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

Usage

{{like}}File:Wikipedia like.png Like Template:Template for discussion/dated

Parameters

Custom text

{{like|I learned something today}}File:Wikipedia like.png I learned something today Template:Template for discussion/dated

When no parameter name is specified, custom text is assumed


Icon

{{like|icon=wiki}}File:Wikipedia like.png Like Template:Template for discussion/dated

Default icon

{{like|icon=old}}πŸ‘ Like Template:Template for discussion/dated

Legacy icon

{{like|icon=fb}}πŸ‘ Like Template:Template for discussion/dated

Facebook icon


Username

{{like|username=ExampleUser}}πŸ‘ ExampleUser likes this. Template:Template for discussion/dated

Num (User Likes)

{{like|num=1}}πŸ‘ 1 user likes this. Template:Template for discussion/dated

{{like|num=2}}πŸ‘ 2 users like this. Template:Template for discussion/dated

{{like|num=3}}πŸ‘ 3 users like this. Template:Template for discussion/dated

Etc...

Supported parameter combinations

Custom text

{{like|I learned something yesterday|icon=old}}πŸ‘ I learned something yesterday Template:Template for discussion/dated

Custom text + icon

{{like|loves|num=1}}File:Wikipedia like.png 1 user loves this. Template:Template for discussion/dated

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

{{like|love|num=3}}File:Wikipedia like.png 3 users love this. Template:Template for discussion/dated

For plural users, remember to change your verb accordingly
Icon

{{like|icon=old|username=ExampleUser}}πŸ‘ ExampleUser likes this. Template:Template for discussion/dated

icon + username

{{like|icon=old|num=1}}πŸ‘ 1 user likes this. Template:Template for discussion/dated

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}}πŸ‘ 1 user loves this. Template:Template for discussion/dated

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