Template:EmoteInfobox: 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:
<includeonly>{{#set:
<includeonly>{{#set:
  |Has Emote Name={{{1}}}
  |Has Emote Name={{trim|{{{1}}}}}
  |Is Animated={{{animated|false}}}
  |Is Animated={{{animated|false}}}
  |{{#switch: {{{twitch|}}}
  |{{#switch: {{{twitch|}}}
Line 13: Line 13:
   }}
   }}
   |By={{{artist|}}}
   |By={{{artist|}}}
   |Has Emote Image={{{image|{{EmoteFilename|{{{1}}}}}}}}
   |Has Emote Image={{{ image | {{EmoteFilename | {{trim|{{{1}}}}} }} }}}
}}{{Infobox
}}{{Infobox
   | bodystyle = border-spacing: 2px 5px;
   | bodystyle = border-spacing: 2px 5px;
   | above = {{{1}}}
   | above = {{trim|{{{1}}}}}
   | abovestyle = background-color: var(--background-color-backdrop-dark); color: var(--color-inverted);
   | abovestyle = background-color: var(--background-color-backdrop-dark); color: var(--color-inverted);
   | headerstyle = background-color: var(--background-color-backdrop-dark); color: var(--color-inverted);
   | headerstyle = background-color: var(--background-color-backdrop-dark); color: var(--color-inverted);
   | name = {{{1}}}
   | name = {{trim|{{{1}}}}}
   | image = [[{{{ image | {{EmoteFilename | {{{1}}} }} }}}|center|frameless|“{{{1}}}”]]
   | image = [[{{{ image | {{EmoteFilename | {{trim|{{{1}}}}} }} }}}|center|frameless|“{{trim|{{{1}}}}}”]]
   | label1 = Available On
   | label1 = Available On
   | data1 = {{flatlist|{{#switch: {{{twitch|}}}
   | data1 = {{flatlist|{{#switch: {{{twitch|}}}
Line 96: Line 96:
"description": "The image file for the emote. Defaults to looking for the name, but better to specify it explicitly.",
"description": "The image file for the emote. Defaults to looking for the name, but better to specify it explicitly.",
"type": "wiki-file-name",
"type": "wiki-file-name",
"default": "{{{name}}}.png|.gif",
"default": "{{{1}}}.png|.gif",
"suggested": true
"required": true
}
}
},
},
Line 103: Line 103:
"paramOrder": [
"paramOrder": [
"1",
"1",
"image",
"animated",
"animated",
"artist",
"artist",
Line 108: Line 109:
"twitch",
"twitch",
"discord",
"discord",
"variants",
"variants"
"image"
],
],
"format": "block"
"format": "block"