📌 Current mission: start filling the wiki — create pages, upload images, and join the Discord!
Template:E: Difference between revisions
From Asylum Wiki
Jump to navigationJump to search
Inline emote template  |
Add webp support + optional ext param |
||
| Line 1: | Line 1: | ||
<includeonly>{{#ifexist:Media:{{{1}}}.gif|[[File:{{{1}}}.gif|x20px|link=|alt={{{1}}}]]|[[File:{{{1}}}.png|x20px|link=|alt={{{1}}}]]}}</includeonly><noinclude> | <includeonly>{{#if:{{{2|}}}|[[File:{{{1}}}.{{{2}}}|x20px|link=|alt={{{1}}}]]|{{#ifexist:Media:{{{1}}}.gif|[[File:{{{1}}}.gif|x20px|link=|alt={{{1}}}]]|{{#ifexist:Media:{{{1}}}.png|[[File:{{{1}}}.png|x20px|link=|alt={{{1}}}]]|[[File:{{{1}}}.webp|x20px|link=|alt={{{1}}}]]}}}}}}</includeonly><noinclude> | ||
Inline emoji template — shows an uploaded emote at text height | Inline emoji template — shows an uploaded emote at text height. Works with .gif, .png and .webp uploads. | ||
'''Usage:''' <code><nowiki>{{e|tinyface}}</nowiki></code> → {{e|tinyface}} | '''Usage:''' <code><nowiki>{{e|tinyface}}</nowiki></code> → {{e|tinyface}} | ||
You can pass the extension as a second parameter to make the page render faster (useful on emote-heavy pages): <code><nowiki>{{e|andyDrunk|webp}}</nowiki></code> | |||
See [[Project:Emotes]] for the full list of available emotes. | See [[Project:Emotes]] for the full list of available emotes. | ||
</noinclude> | </noinclude> | ||
Revision as of 16:13, 12 July 2026
Inline emoji template — shows an uploaded emote at text height. Works with .gif, .png and .webp uploads.
Usage: {{e|tinyface}} →
You can pass the extension as a second parameter to make the page render faster (useful on emote-heavy pages): {{e|andyDrunk|webp}}
See Project:Emotes for the full list of available emotes.