Difference between revisions of "Template:Like"

From blackwiki
Jump to navigation Jump to search
imported>Meco
(Nominating for deletion (third time))
imported>WOSlinker
(radius direct)
ย 
(43 intermediate revisions by 27 users not shown)
Line 1: Line 1:
โˆ’
{{#ifeq:{{NAMESPACE}}|Template
+
{{#switch:{{lc:{{{icon|}}}}}
โˆ’
|{{Ombox
+
|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>
โˆ’
| typeย  = delete
+
|fb = <span style="display:inline-block;padding:0 .5em;line-height:1.80em;cursor:pointer;font-weight:bold; font-family:'Helvetica',Arial,sans-serif; border-radius:3px; background:#1877f2; text-align:center;">[[File:{{{image|Facebook like thumb.png}}} |text-top|link=|alt=๐Ÿ‘|16px]]&nbsp;<span style="color:#fff;">{{#if:{{{num|}}}|{{{num|}}} {{PLURAL:{{{num|}}}|user {{{1|likes}}}|users {{{1|like}}}}} this.|{{#if:{{{username|}}}| [[User:{{{username|}}}|{{{username|}}}]] likes this.|{{{1|Like}}}}}}}</span></span>
โˆ’
| image = none
+
|[[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>
โˆ’
| small = no
ย 
โˆ’
| textย  = <div>'''This [[Help:Template|template]] ''([[Template:{{ucfirst:{{PAGENAME}}}}|{{ucfirst:{{PAGENAME}}}}]])'' is being considered for deletion in accordance with Wikipedia's [[Wikipedia:Deletion policy|deletion policy]].'''<p>Please discuss this matter at [[Wikipedia:Templates for discussion#Template:{{ucfirst:{{PAGENAME}}}}|'''this template's entry''']] at templates for discussion to help reach a consensus.
ย 
โˆ’
----
ย 
โˆ’
''<small class="plainlinks" style="line-height:1.3em;">[[Wikipedia:Maintenance|Maintenance]] use only:<br>1. [{{fullurl:Wikipedia:Templates for discussion/Log/{{#time: Y F j}}|action=edit&editintro=Wikipedia:Templates_for_discussion/editnotice&section=1}} Edit the TfD log] to create the discussion entry.<br>2. Please consider notifying the [{{fullurl:{{FULLPAGENAME}}|action=history}} author(s)] by placing <span class="nowrap">{{tlx|Tfdnotice|{{PAGENAME}}|{{#ifeq:{{PAGENAME}}|{{PAGENAME}}||{{{page}}}}}|subst=yes}} <nowiki>~~~~</nowiki></span> on their talk page(s).</small>''</div>
ย 
โˆ’
}}{{category handler
ย 
โˆ’
| all = [[Category:Templates for deletion|{{PAGENAME}}]]
ย 
โˆ’
| nocat =
ย 
โˆ’
| category2 = ยฌ
ย 
โˆ’
}}
ย 
โˆ’
|{{#switch:{{lc:{{{type}}}}}
ย 
โˆ’
<!-- Tiny version, used if type=tiny -->
ย 
โˆ’
|tiny =
ย 
โˆ’
<span style="padding: 0; font-size: xx-small; color: #000000; background-color: #f9f9f9;">'''[[Wikipedia:Templates for discussion#Template:{{ucfirst:{{PAGENAME}}}}|โ€นSee Tfdโ€บ]]'''</span>
ย 
โˆ’
<!-- Regular inline version, used if type=inline -->
ย 
โˆ’
|inline =
ย 
โˆ’
<span style="padding: 0; font-size: xx-small; color: #000; border: 1px solid #aaa; background-color: #f9f9f9;">โ€นThe [[Help:Template|template]] ''[[Template:{{ucfirst:{{PAGENAME}}}}|{{ucfirst:{{PAGENAME}}}}]]'' is being [[Wikipedia:Templates for discussion#Template:{{ucfirst:{{PAGENAME}}}}|considered for deletion]].โ€บ</span>&nbsp;
ย 
โˆ’
<!-- Sidebar version, used if type=sidebar-->
ย 
โˆ’
|infobox|box|sidebar=
ย 
โˆ’
<div class="boilerplate metadata plainlinks" id="tfd" style="background-color: transparent; padding: 0; font-size:xx-small; color:#000000; text-align: center; position: relative; float: right; border-bottom: 1px solid #AAAAAA; width: {{px||27em}}">&lsaquo; The [[Help:Template|template]] {{#if:|(''[[Template:{{ucfirst:{{{1}}}}}|{{{1}}}]]'')|}} is being [[Wikipedia:Templates for discussion#Template:{{ucfirst:{{PAGENAME}}}}|considered for deletion]]. &rsaquo;</div>
ย 
โˆ’
<!-- No transclusion, used if type=disabled-->
ย 
โˆ’
|disabled=
ย 
โˆ’
<!-- Default version, used in all other cases -->
ย 
โˆ’
|#default = <div class="boilerplate metadata plainlinks" id="tfd" style="background-color: transparent; padding: 0; font-size:xx-small; color:#000000; text-align: center; border-bottom:1px solid #AAAAAA;">&lsaquo; The [[Help:Template|template]] below {{#if:|(''[[Template:{{{1}}}|{{{1}}}]]'')|}} is being considered for deletion. See [[Wikipedia:Templates for discussion#Template:{{ucfirst:{{PAGENAME}}}}|templates for discussion]] to help reach a consensus.&rsaquo;</div>
ย 
โˆ’
}}
ย 
โˆ’
}}
ย 
โˆ’
<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>
ย 
ย 
{{documentation}}
ย 
{{documentation}}
ย 
</noinclude>
ย 
</noinclude>

Latest revision as of 07:41, 13 July 2020

๐Ÿ‘ Like

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

Usage

{{like}}๐Ÿ‘ Like

Parameters

Custom text

{{like|I learned something today}}๐Ÿ‘ I learned something today

When no parameter name is specified, custom text is assumed


Icon

{{like|icon=wiki}}๐Ÿ‘ Like

Default icon

{{like|icon=old}}๐Ÿ‘ Like

Legacy icon

{{like|icon=fb}}๐Ÿ‘ Like

Facebook icon


Username

{{like|username=ExampleUser}}๐Ÿ‘ ExampleUser likes this.

Num (User Likes)

{{like|num=1}}๐Ÿ‘ 1 user likes this.

{{like|num=2}}๐Ÿ‘ 2 users like this.

{{like|num=3}}๐Ÿ‘ 3 users like this.

Etc...

Supported parameter combinations

Custom text

{{like|I learned something yesterday|icon=old}}File:Symbol thumbs up.svg I learned something yesterday

Custom text + icon

{{like|loves|num=1}}๐Ÿ‘ 1 user loves this.

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

{{like|love|num=3}}๐Ÿ‘ 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

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