Difference between revisions of "Template:DiscordQuote"

From Game Detectives Wiki
Jump to: navigation, search
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
{|style="background-color:#36393e; color:hsla(0,0%,100%,.7); min-width:512px; width={{{width|100%}}} margin:0px; padding:10px; text-align:left;"
+
{|style="{{#switch:{{{theme|dark}}}|dark=background-color:#36393e; color:hsla(0,0%,100%,.7);|light=background-color:#ffffff; color:#737f8d;}} min-width:512px; width:{{{width|100%}}}; margin:0px; padding:10px; text-align:left; line-height:95%;"
|rowspan="2" style=" width:64px; height=64px; vertical-align:top; align:center;"|[[File:{{{avatar|FRTS_Bot_Avatar.jpeg}}}]]
+
|rowspan="2" class="discordAvatar" style="width:64px; height=64px; vertical-align:top;"|[[Image:{{{avatar|FRTS_Bot_Avatar.jpeg}}}]]
|<div style="display:inline-block; font-weight:bold; color:{{{fontcolor|#ffffff}}};">{{{username|Lorem Ipsum}}}</div> <div style="display:inline-block; color:hsla(0,0%,100%,.2);">{{{date|00/00/0000}}}</div>
+
|<div style="display:inline-block; font-weight:bold; color:{{{fontcolor|{{#switch:{{{theme|dark}}}|dark=#ffffff|light=#2e3136}}}}};">{{{username|Lorem Ipsum}}}</div> {{#switch:{{{bot|false}}}|true=<div style="display:inline-block; border-radius:3px; background-color:#7289da; color:#ffffff; font-size:10px; font-weight:600; padding:1px 2px;">BOT</div>}} <div style="display:inline-block; font-size:11px; color:{{#switch:{{{theme|dark}}}|dark=hsla(0,0%,100%,.2)|light=#99aab5}};">{{{date|00/00/0000}}}</div>
 
|-
 
|-
 
|{{{message|Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent facilisis finibus scelerisque. Sed viverra vestibulum urna, eget porta ante eleifend non. Proin rhoncus velit quis egestas eleifend. Mauris id mi enim. Donec non facilisis orci. Nunc a felis purus. Praesent fermentum ex et arcu venenatis feugiat. Etiam vestibulum massa at augue lobortis mattis. Aliquam ex augue, iaculis non rutrum vulputate, volutpat ut nibh.}}}
 
|{{{message|Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent facilisis finibus scelerisque. Sed viverra vestibulum urna, eget porta ante eleifend non. Proin rhoncus velit quis egestas eleifend. Mauris id mi enim. Donec non facilisis orci. Nunc a felis purus. Praesent fermentum ex et arcu venenatis feugiat. Etiam vestibulum massa at augue lobortis mattis. Aliquam ex augue, iaculis non rutrum vulputate, volutpat ut nibh.}}}
 +
|}<noinclude>
 +
 +
{|class="wikitable"
 +
!colspan="3"|Variables
 +
|-
 +
!Name||Description||Example
 +
|-
 +
|avatar||''Avatar file name''||FRTS_Bot_Avatar.jpeg
 +
|-
 +
|name||''Quoted user's name''||Lorem Ipsum
 +
|-
 +
|fontcolor||''Quoted user's role color''||#ffffff
 +
|-
 +
|date||''The date of the quoted message''||00/00/0000
 +
|-
 +
|message||''The quoted message itself''||Lorem ipsum dolor sit amet...
 +
|-
 +
|width ''(optional)''||''The width of the quote container''||100% (default)
 +
|-
 +
|bot ''(optional)''||''Whether the user has a bot tag''||'''true''' or '''false''' (default)
 +
|-
 +
|theme ''(optional)''||''Discord theme used''||'''light''' or '''dark''' (default)
 
|}
 
|}
 +
 +
</noinclude>

Latest revision as of 14:11, 5 July 2016

FRTS Bot Avatar.jpeg
Lorem Ipsum
00/00/0000
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent facilisis finibus scelerisque. Sed viverra vestibulum urna, eget porta ante eleifend non. Proin rhoncus velit quis egestas eleifend. Mauris id mi enim. Donec non facilisis orci. Nunc a felis purus. Praesent fermentum ex et arcu venenatis feugiat. Etiam vestibulum massa at augue lobortis mattis. Aliquam ex augue, iaculis non rutrum vulputate, volutpat ut nibh.
Variables
Name Description Example
avatar Avatar file name FRTS_Bot_Avatar.jpeg
name Quoted user's name Lorem Ipsum
fontcolor Quoted user's role color #ffffff
date The date of the quoted message 00/00/0000
message The quoted message itself Lorem ipsum dolor sit amet...
width (optional) The width of the quote container 100% (default)
bot (optional) Whether the user has a bot tag true or false (default)
theme (optional) Discord theme used light or dark (default)