Template:DiscordBan

From Meta Wiki
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:DiscordBan/doc. [edit] [history] [purge]
Template:DiscordBan invokes function main in Module:DiscordBan using Lua.

Helper for easy display of discord bans on Discord/Banned users/list.

Usage

All fields are optional; if not present, the cell is left empty.

{{DiscordBan
|date = date of ban; automatically formatted to be in YYYY-MM-DD HH:mm:ss format by #time
|id = discord ID of the banned user
|username = Discord username (including discriminator); this can be left blank if the username is inappropriate
|admin = Discord username (including discriminator) of the banning admin
|reason = ban reason
}}
Note

User:Gaz Bot will attempt to automatically add new bans to the list, prefilling the data from the ban event in the server's audit log. The bot will fill in the date as @UNIXTIMESTAMP, which is how the time parser function supports timestamps. If necessary you can edit what the bot adds to remove offensive names or adjust any other information.