Template:EmotePage: Difference between revisions

No edit summary
No edit summary
 
(35 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
<includeonly>{{EmoteInfobox
   {{#cargo_declare:
   |{{trim|{{{1}}}}}
    _table = emotes
  |image={{{ image | {{EmoteFilename | {{trim|{{{1}}}}} }} }}}
    |name = String(unique;mandatory)
   |animated={{{animated|}}}
    |twitch = Boolean
  |artist={{{artist|}}}
    |discord = Boolean
  |reference={{{reference|}}}
    |animated = Boolean
  |twitch={{{twitch|}}}
    |variants = Wikitext string
  |discord={{{discord|}}}
    |artist = Page
  |variants={{{variants|}}}
    |reference = Wikitext string
}}<!---
  }}
-->{{DEFAULTSORT:{{#sub:{{trim|{{{1}}}}}|3}}}}<!---
</noinclude><includeonly>
-->[[Category: Emotes]]<!---
   {{#cargo_store:
-->{{#if: {{{discord|}}} | [[Category: Discord Emotes]]}}<!---
    _table = emotes
-->{{#if: {{{twitch|}}} | [[Category: Twitch Emotes]]}}<!---
    |name = {{{1}}}
-->[[Category: {{#if:{{{animated|}}}|Animated|Static}} Emotes]]<!---
    |twitch = {{{twitch|false}}}
-->[[{{{ image | {{EmoteFilename | {{trim|{{{1}}}}} }} }}}|25px|alt={{trim|{{{1}}}}}]] “{{trim|{{{1}}}}}” is an {{#if:{{{animated|}}}|animated}} emote that can be found on:  
    |discord = {{{discord|false}}}
{{#switch: {{{twitch|}}}
    |animated = {{{animated|false}}}
|true = * Twitch
    |variants = {{{variants|}}}
|historic = * Twitch (formerly)
    |artist = {{{artist|}}}
}} {{#switch: {{{discord|}}}
    |reference = {{{reference|}}}
|true = * Discord
  }}
|historic = * Discord (formerly)
  [[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 = * {{#if: {{{twitch|}}} | Twitch }}
* {{#if: {{{discord|}}} | Discord }}
| 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}}}]] “{{{1}}}” is an {{#if:{{{animated|}}}|animated}} emote that can be found on:  
* {{#if: {{{twitch|}}} | Twitch }}
* {{#if: {{{discord|}}} | Discord }}


{{#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 73: 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 85: Line 55:
"label": "Available on Discord",
"label": "Available on Discord",
"description": "If the emote is currently available on Discord.",
"description": "If the emote is currently available on Discord.",
"type": "boolean",
"type": "string",
"default": "false"
"required": false,
"suggestedvalues": [
"true",
"false",
"historic"
]
},
},
"twitch": {
"twitch": {
"label": "Available on Twitch",
"label": "Available on Twitch",
"description": "If the emote is currently available on Twitch.",
"description": "If the emote is currently available on Twitch.",
"type": "boolean",
"type": "string",
"default": "false"
"required": false,
"suggestedvalues": [
"true",
"false",
"historic"
]
},
},
"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 106: Line 90:
"paramOrder": [
"paramOrder": [
"1",
"1",
"image",
"animated",
"animated",
"artist",
"artist",