Template:Inline emote/doc: Difference between revisions

From Irony Wiki
Jump to navigation Jump to search
c
 
No edit summary
Line 29: Line 29:
"label": "Size",
"label": "Size",
"type": "string",
"type": "string",
"default": "20px"
"default": "20px",
"description": "The width of the image. Format is \"20px\"."
}
}
},
},

Revision as of 22:59, 7 August 2020

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

Configuration

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

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

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}}

Outputs:

Parameters

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Image1

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

Example
Trollface.svg
Filerequired
Size2

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

Default
20px
Stringoptional