Template:Like/doc
Lua error in Module:Autotranslate at line 77: No fallback page found for autotranslate (base=Documentation subpage, lang=en).
Usage
edit{{like}}
β Like
Parameters
edit- 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
- "Fb" 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
edit- Custom text
{{like|I learned something yesterday|icon=old}}
β 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)