Template:Inline emote: Difference between revisions

From Irony Wiki
Jump to navigation Jump to search
test
Undo revision 193 by Saucy (talk)
Tag: Undo
Line 1: Line 1:
<span class="nowrap">[[File:{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|20px}}|link=|alt=]]<!-- Template:Inline emote --></span><includeonly>[[Category:Wiki emotes]]</includeonly><noinclude>{{documentation}}</noinclude>
<span class="nowrap">[[File:{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|20px}}|link=|alt=]]<!-- Template:Inline emote --></span><noinclude>{{documentation}}</noinclude>

Revision as of 21:55, 7 August 2020

[[File:{{{1}}}|20px|link=|alt=]]

Documentation

A way to easily create emotes to use in wiki pages.

Configuration

{{inline emote|IMAGE.png|TITLE|SIZE}}

When specifying the image, do not include File: at the beginning.

Title is optional, but suggested. This is what will show up if you hover your cursor over the emote.

Size is optional. The default is 20px.

If creating a template using this, you should add the template page to Category:Wiki emotes by adding <noinclude>[[Category:Wiki emotes]]</noinclude>.

Example

{{inline emote|Trollface.svg|:troll:}}

Outputs:

Parameters

No description.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Image1

The image to use. Do not include "File:".

Example
Trollface.svg
Filerequired
Title2

What will show up if you hover over the emote.

Stringsuggested
Size3

The width of the image. Format is "20px".

Default
20px
Stringoptional