Template:DiscordQuote: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
<img src="https://api.saku.dev/spin-dash/avatar/{{{userId}}}.png" width="40" height="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>{{{message}}}</p> | <p style="margin:0px;">{{{message}}}</p> | ||
</div> | </div> | ||
</div> | </div> | ||
Line 15: | Line 15: | ||
|username = Saku | |username = Saku | ||
|userId = 255673616342056961 | |userId = 255673616342056961 | ||
|message = Yo what up | |||
}} | }} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"userId": {}, | "userId": { | ||
"username": {}, | "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": { | "message": { | ||
"type": "unbalanced-wikitext" | "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" | |||
] | |||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Revision as of 17:43, 15 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 |