Template:DiscordQuote: Difference between revisions
(Created page with "<includeonly> {{#tag:html | <div style="background-color:#36393f; color:white; padding:20px; border-radius:10px;"> <div style="display:flex; gap:20px;"> <img src="https://api.saku.dev/spin-dash/avatar/{{{userId}}}.png" width="40" style="border-radius:1000px"> <div> <span style="font-weight:600;">{{{username}}}</span> <p></p> </div> </div> </div>}} </includeonly> {{DiscordQuote |username = Saku |userId = 255673616342056961 }}") |
No edit summary |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#tag:html | <div style="background-color:#36393f; color:white; padding:20px; border-radius:10px; margin-top:30px; margin-bottom:30px;"> | ||
{{#tag:html | <div style="background-color:#36393f; color:white; padding:20px; border-radius:10px;"> | |||
<div style="display:flex; gap:20px;"> | <div style="display:flex; gap:20px;"> | ||
<img src="https://api.saku.dev/spin-dash/avatar/{{{userId}}}.png" width="40" style="border-radius:1000px"> | <img src="https://api.saku.dev/spin-dash/avatar/{{{userId}}}.png" width="40" height="40" style="border-radius:1000px"> | ||
<div> | <div> | ||
<span style="font-weight:600;">{{{username}}}</span> | <span style="font-weight:600; color:#{{{colorHex}}}">{{{username}}}</span> | ||
<p></p> | <p style="margin:0px;">{{{message}}}</p> | ||
</div> | </div> | ||
</div> | </div> | ||
</div>}} | </div>}}</includeonly><noinclude> | ||
</includeonly> | |||
{{DiscordQuote | {{DiscordQuote | ||
|username = Saku | |username = Saku | ||
|userId = 255673616342056961 | |userId = 255673616342056961 | ||
|message = Yo what up | |||
}} | }} | ||
<templatedata> | |||
{ | |||
"params": { | |||
"userId": { | |||
"aliases": [ | |||
"User ID" | |||
], | |||
"label": "User ID", | |||
"description": "The user ID of the user being quoted (to fetch their avatar)", | |||
"example": "255673616342056961", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"username": { | |||
"aliases": [ | |||
"Username" | |||
], | |||
"label": "Username", | |||
"description": "The username of the person being quoted", | |||
"example": "Saku", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"message": { | |||
"type": "unbalanced-wikitext", | |||
"aliases": [ | |||
"Message Content" | |||
], | |||
"label": "Message Content", | |||
"description": "The content of the message being quoted", | |||
"required": true | |||
}, | |||
"colorHex": { | |||
"aliases": [ | |||
"Color HEX" | |||
], | |||
"label": "Color HEX", | |||
"description": "The HEX code for the username (don't include the #)", | |||
"example": "95CAFE", | |||
"required": true | |||
} | |||
}, | |||
"description": "A quote block in the style of a Discord message", | |||
"paramOrder": [ | |||
"username", | |||
"userId", | |||
"colorHex", | |||
"message" | |||
], | |||
"format": "block" | |||
} | |||
</templatedata></noinclude> |
Latest revision as of 20:10, 19 February 2023
Saku
Yo what up
A quote block in the style of a Discord message
Parameter | Description | Type | Status | |
---|---|---|---|---|
Username | username Username | The username of the person being quoted
| String | required |
User ID | userId User ID | The user ID of the user being quoted (to fetch their avatar)
| String | required |
Color HEX | colorHex Color HEX | The HEX code for the username (don't include the #)
| Unknown | required |
Message Content | message Message Content | The content of the message being quoted | Unbalanced wikitext | required |