Template:Emote: Difference between revisions

No edit summary
No edit summary
Tag: Manual revert
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span style="display: inline-flex; align-items: center;">[[{{#ask:  
<includeonly><span style="display: inline-flex; align-items: center; gap: 0.3em;">[[{{#ask:  
   [[Category:Emotes]]  
   [[Category:Emotes]]  
   [[Has Emote Name::{{{1}}}]]
   [[Has Emote Name::{{CanonicaliseEmoteName|{{{1}}}}}]]
   |?Has Emote Image#-=
   |?Has Emote Image#-=
   |limit=1
   |limit=1
   |format=plainlist
   |format=plainlist
   |mainlabel=-
   |mainlabel=-
}}|25px|link={{{1}}}]] [[{{{1}}}]]</span><noinclude>
}}|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 17: 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"