Template:Infobox Discord User: Difference between revisions

From THCoTD Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<infobox>
<infobox>
   <title>
   <title source="nickname" />
    {{{nickname}}}<br/>
 
    <span style="font-weight:normal; font-size:85%; color:#DCDDDE;">
      ({{{username}}})
    </span>
  </title>


   <image source="avatar" />
   <image source="avatar" />


   <data source="id">
   <data source="id"><label>ID</label></data>
    <label>ID</label>
   <data source="username"><label>Username</label></data>
   </data>
   <data source="join_date"><label>Joined</label></data>
 
   <data source="ban_date"><label>Banned</label></data>
   <data source="join_date">
   <data source="known_for"><label>Known for</label></data>
    <label>Joined</label>
  </data>
 
   <data source="ban_date">
    <label>Banned</label>
  </data>
 
   <data source="known_for">
    <label>Known for</label>
  </data>
</infobox>
</infobox>
<noinclude>
    {{Documentation}}
    <templatedata>
        {
        "description": "Stylized Discord user infobox.",
        "params": {
        "username": {
        "label": "Username",
        "description": "The Discord username of the user.",
        "type": "string",
        "required": true
        },
        "nickname": {
        "label": "Nickname",
        "description": "The Discord nickname of the user (if they don't have one, set it to the username).",
        "type": "string",
        "required": true
        },
        "avatar": {
        "label": "Avatar",
        "description": "File name of the Discord user's avatar (must be uploaded).",
        "type": "wiki-file-name",
        "default": "Example.png"
        },
        "id": {
        "label": "User ID",
        "description": "The numerical Discord ID of the user.",
        "type": "string",
        "default": "N/A"
        },
        "join_date": {
        "label": "Joined",
        "description": "Date when the user joined Discord.",
        "type": "string",
        "default": "Unknown"
        },
        "ban_date": {
        "label": "Banned",
        "description": "Date when the user was banned (if applicable).",
        "type": "string",
        "default": "Unknown"
        },
        "known_for": {
        "label": "Known for",
        "description": "What the user is notable for.",
        "type": "string"
        }
        }
        }
    </templatedata>
</noinclude>

Latest revision as of 09:05, 16 September 2025

   Template:Documentation

Stylized Discord user infobox.

Template parameters

ParameterDescriptionTypeStatus
Usernameusername

The Discord username of the user.

Stringrequired
Nicknamenickname

The Discord nickname of the user (if they don't have one, set it to the username).

Stringrequired
Avataravatar

File name of the Discord user's avatar (must be uploaded).

Default
Example.png
Fileoptional
User IDid

The numerical Discord ID of the user.

Default
N/A
Stringoptional
Joinedjoin_date

Date when the user joined Discord.

Default
Unknown
Stringoptional
Bannedban_date

Date when the user was banned (if applicable).

Default
Unknown
Stringoptional
Known forknown_for

What the user is notable for.

Stringoptional