Template:EmoteInfobox: Difference between revisions

No edit summary
No edit summary
Tag: Manual revert
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{Infobox
<includeonly>{{#set:
|Has Emote Name={{trim|{{{1}}}}}
|Is Animated={{{animated|false}}}
|{{#switch: {{{twitch|}}}
  |true = Available On=Twitch
  |historic = Formerly Available On=Twitch
  |false =
  }}
|{{#switch: {{{discord|}}}
  |true = Available On=Discord
  |historic = Formerly Available On=Discord
  |false =
  }}
  |By={{{artist|}}}
  |Has Emote Image={{{ image | {{EmoteFilename | {{trim|{{{1}}}}} }} }}}
}}{{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 = [[{{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 76: Line 91:
"description": "A list of any variants of this emote that exist.",
"description": "A list of any variants of this emote that exist.",
"type": "string"
"type": "string"
},
"image": {
"label": "Image",
"description": "The image file for the emote. Defaults to looking for the name, but better to specify it explicitly.",
"type": "wiki-file-name",
"default": "{{{1}}}.png|.gif",
"required": true
}
}
},
},
Line 81: Line 103:
"paramOrder": [
"paramOrder": [
"1",
"1",
"image",
"animated",
"animated",
"artist",
"artist",