Template:EmotePage: Difference between revisions

No edit summary
No edit summary
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- Temporarily commented out due to bugs.
<includeonly>{{EmoteInfobox
<noinclude>
   |{{trim|{{{1}}}}}
   {{#cargo_declare:
  |image={{{ image | {{EmoteFilename | {{trim|{{{1}}}}} }} }}}
    _table = emotes
   |animated={{{animated|}}}
    |name = String(unique;mandatory)
  |artist={{{artist|}}}
    |twitch = String
  |reference={{{reference|}}}
    |discord = String
  |twitch={{{twitch|}}}
    |animated = Boolean
  |discord={{{discord|}}}
    |variants = Wikitext string
  |variants={{{variants|}}}
    |artist = Page
}}<!---
    |reference = Wikitext string
-->{{DEFAULTSORT:{{#sub:{{trim|{{{1}}}}}|3}}}}<!---
  }}
-->[[Category: Emotes]]<!---
</noinclude><includeonly>
-->{{#if: {{{discord|}}} | [[Category: Discord Emotes]]}}<!---
   {{#cargo_store:
-->{{#if: {{{twitch|}}} | [[Category: Twitch Emotes]]}}<!---
    _table = emotes
-->[[Category: {{#if:{{{animated|}}}|Animated|Static}} Emotes]]<!---
    |name = {{{1}}}
-->[[{{{ image | {{EmoteFilename | {{trim|{{{1}}}}} }} }}}|25px|alt={{trim|{{{1}}}}}]] “{{trim|{{{1}}}}}” is an {{#if:{{{animated|}}}|animated}} emote that can be found on:  
    |twitch = {{{twitch|false}}}
    |discord = {{{discord|false}}}
    |animated = {{{animated|false}}}
    |variants = {{{variants|}}}
    |artist = {{{artist|}}}
    |reference = {{{reference|}}}
  }}
  [[Category: Emotes]]
  {{#if: {{{discord|}}} | [[Category: Discord Emotes]]}}
  {{#if: {{{twitch|}}} | [[Category: Twitch Emotes]]}}
  [[Category: {{#if:{{{animated|}}}|Animated|Static}} Emotes]]
</includeonly>-->{{Infobox
| bodystyle = border-spacing: 2px 5px;
| above = {{{name|{{PAGENAME}}}}}
| abovestyle = background-color: #DEDEE2;
| headerstyle = background-color: #DEDEE2;
| name = {{{name|{{PAGENAME}}}}}
| image = [[{{EmoteFilename|{{{1}}}}}|center|frameless|{{{1}}}”]]
| label1 = Available On
| data1 = {{flatlist|{{#switch: {{{twitch|}}}
|true = * Twitch
|historic = * Twitch (formerly)
}} {{#switch: {{{discord|}}}
|true = * Discord
|historic = * Discord (formerly)
}}}}
| label2 = Animated
| data2 = {{#if: {{{animated|}}} | Yes }}
| label3 = Variants
| data3 = {{{variants|}}}
| label4 = Based On
| data4 = {{{reference|}}}
| header5 = Attribution
| label6 = Artwork
| data6 = <includeonly>{{Attribution|{{{artist|}}}|categorise=true}}</includeonly>
}}{{DEFAULTSORT:{{EmoteNameSort||{{{1}}}}}}}[[{{EmoteFilename|{{{1}}}}}|25px|alt={{{1}}}]] “{{trim|{{{1}}}}}” is an {{#if:{{{animated|}}}|animated}} emote that can be found on:  
{{#switch: {{{twitch|}}}
{{#switch: {{{twitch|}}}
  |true = * Twitch
  |true = * Twitch
Line 61: Line 25:
{{#if:{{{reference|}}}|It is a reference to {{{reference}}}.}}
{{#if:{{{reference|}}}|It is a reference to {{{reference}}}.}}


It was drawn {{Attribution|{{{artist}}}}}.<noinclude>
It was drawn {{Attribution|{{{artist}}}}}.</includeonly><noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"1": {
"1": {
"aliases": [
"name",
"emote"
],
"label": "Name",
"label": "Name",
"description": "The name of the emote.",
"description": "The name of the emote.",
Line 83: Line 43:
"label": "Reference",
"label": "Reference",
"description": "A description of what the emote references or represents.",
"description": "A description of what the emote references or represents.",
"type": "string",
"type": "content",
"suggested": true
"suggested": true
},
},
Line 115: Line 75:
},
},
"variants": {
"variants": {
"aliases": [
"variant"
],
"label": "Variants",
"label": "Variants",
"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": "content"
},
"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": "{{{name}}}.png|.gif",
"required": true
}
}
},
},
Line 126: Line 90:
"paramOrder": [
"paramOrder": [
"1",
"1",
"image",
"animated",
"animated",
"artist",
"artist",