Difference between revisions of "Template:Like"
imported>72 |
imported>GKFX (Convert to SVG as PNG is blurry on high-res devices) |
||
| 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]] {{#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]] {{#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]] <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]] <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. | + | |[[File:{{{image|Wikipedia like SVG.svg}}} |25px|link=|alt=๐]] '''{{#if:{{{num|}}}|{{{num|}}} {{PLURAL:{{{num|}}}|user {{{1|likes}}}|users {{{1|like}}}}} this.|{{#if:{{{username|}}}| [[User:{{{username|}}}|{{{username|}}}]] likes this.|{{{1|Like}}}}}}}'''}}<noinclude> |
| ย | {{documentation}} | ย | {{documentation}} |
| ย | </noinclude> | ย | </noinclude> |
Revision as of 21:35, 28 December 2019
25px Like
Contents
Usage
Parameters
- Custom text
{{like|I learned something today}} → 25px I learned something today
- When no parameter name is specified, custom text is assumed
- Icon
{{like|icon=wiki}} → 25px Like
- Default icon
{{like|icon=old}} →
Like
- Legacy icon
{{like|icon=fb}} →
Like
- Facebook icon
- Username
{{like|username=ExampleUser}} → 25px ExampleUser likes this.
- Num (User Likes)
{{like|num=1}} → 25px 1 user likes this.
{{like|num=2}} → 25px 2 users like this.
{{like|num=3}} → 25px 3 users like this.
- Etc...
Supported parameter combinations
- Custom text
{{like|I learned something yesterday|icon=old}} →
I learned something yesterday
- Custom text + icon
{{like|loves|num=1}} → 25px 1 user loves this.
- When combined with Num (User likes), custom text replace the verb "like"
{{like|love|num=3}} → 25px 3 users love this.
- For plural users, remember to change your verb accordingly
- Icon
{{like|icon=old|username=ExampleUser}} →
ExampleUser likes this.
- icon + username
{{like|icon=old|num=1}} →
1 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}} →
1 user loves this.
- You can combine Custom Text, Icon, and Num (User likes)
See also
- Template:Dislike
- Template:Agree
- Template:Thumbs up
- Template:-n
- Template:++
- Wikipedia:Arguments to avoid in deletion discussions#I like it
- Wikipedia is not a social network
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:
- {{AIV}} โ used by Wikipedia:Administrator intervention against vandalism
- {{EP}} โ used for servicing requests in edit-protected areas
- {{RFPP}} โ used by Wikipedia:Requests for page protection
- {{UAA}} โ used by Wikipedia:Usernames for administrator attention
- {{Smiley}} โ used for informal communication purposes
Others
- Template:Icon/doc, inline icon templates by shape and color
- Wikipedia:List of discussion templates, a more linear table of essentially the same set of templates
- Template:Resolved/See also, the smaller family of thread-level hatnote templates, similar to the above but with a box around them; any template above can be converted to one of those with {{Resbox}}
- Template:Table cell templates/doc, the family of table-specific templates that work only in tables
- Category:Image with comment templates
- Category:Resolution templates
| The above documentation is transcluded from Template:Like/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |