Jump to content

Template:Emote: Difference between revisions

From Joepedia
No edit summary
No edit summary
Tag: Manual revert
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[{{EmoteFilename|{{{1}}}}}|25px|link={{{1}}}]] [[{{{1}}}]]<noinclude>
<includeonly><span style="display: inline-flex; align-items: center; gap: 0.3em;">[[{{#ask:
  [[Category:Emotes]]
  [[Has Emote Name::{{CanonicaliseEmoteName|{{{1}}}}}]]
  |?Has Emote Image#-=
  |limit=1
  |format=plainlist
  |mainlabel=-
}}|25px|link={{CanonicaliseEmoteName|{{{1}}}}}]]{{#if:{{{icon_only|}}}|| [[{{CanonicaliseEmoteName|{{{1}}}}}]]}}</span></includeonly><noinclude>
== Example ==
== Example ==
E.g:  
E.g:  
  <nowiki>{{Emote|jphJoms}}</nowiki>
<pre><nowiki>{{Emote|jphJoms}}</nowiki></pre>
{{Emote|jphJoms}}
{{Emote|jphJoms}}
<pre><nowiki>{{Emote|JphJoms}}</nowiki></pre>
{{Emote|JphJoms}}


== Template Data ==
== Template Data ==
Line 10: Line 20:
"params": {
"params": {
"1": {
"1": {
"aliases": [
"name",
"emote"
],
"label": "Name",
"label": "Name",
"description": "The name of the emote.",
"description": "The name of the emote.",
"type": "wiki-page-name",
"type": "wiki-page-name",
"required": true
"required": true
},
"icon_only": {
"label": "Icon Only",
"description": "If set, only displays the icon, not the name.",
"type": "boolean"
}
}
},
},
"description": "An inline link to an emote with a preview of it.",
"description": "An inline link to an emote with a preview of it.",
"paramOrder": [
"paramOrder": [
"1"
"1",
"icon_only"
],
],
"format": "inline"
"format": "inline"

Latest revision as of 20:00, 1 February 2025

Example

E.g:

{{Emote|jphJoms}}

jphJoms

{{Emote|JphJoms}}

jphJoms

Template Data

An inline link to an emote with a preview of it.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Name1

The name of the emote.

Page namerequired
Icon Onlyicon_only

If set, only displays the icon, not the name.

Booleanoptional