Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:StaffCard/doc: Difference between revisions

Template page
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
 
Line 48: Line 48:
<templatedata>
<templatedata>
{
{
  "params": {
"params": {
    "handle": {
"1": {
      "label": "Handle/Username",
"label": "Handle (positional)",
      "description": "The staff member's display name or handle",
"description": "Alternative way to specify handle as first positional parameter",
      "type": "string",
"type": "string",
      "required": true,
"deprecated": "Use 'handle' parameter instead"
      "example": "CraftMaster"
},
    },
"2": {
    "1": {
"label": "IGN (positional)",
      "label": "Handle (positional)",
"description": "Alternative way to specify IGN as second positional parameter",
      "description": "Alternative way to specify handle as first positional parameter",
"type": "string",
      "type": "string",
"deprecated": "Use 'ign' parameter instead"
      "deprecated": "Use 'handle' parameter instead"
},
    },
"3": {
    "ign": {
"label": "Roles (positional)",
      "label": "Minecraft IGN",
"description": "Alternative way to specify roles as third positional parameter",
      "description": "Their Minecraft in-game username",
"type": "string",
      "type": "string",
"deprecated": "Use 'roles' parameter instead"
      "example": "craft_master_2023"
},
    },
"4": {
    "2": {
"label": "Bio (positional)",
      "label": "IGN (positional)",
"description": "Alternative way to specify bio as fourth positional parameter",
      "description": "Alternative way to specify IGN as second positional parameter",
"type": "string",
      "type": "string",
"deprecated": "Use 'bio' parameter instead"
      "deprecated": "Use 'ign' parameter instead"
},
    },
"handle": {
    "roles": {
"label": "Handle/Username",
      "label": "Roles/Titles",
"description": "The staff member's display name or handle",
      "description": "Comma-separated list of roles and titles (e.g., 'Admin, Builder, Event Coordinator')",
"type": "string",
      "type": "string",
"required": true,
      "example": "Head Admin, Builder, Event Host"
"example": "CraftMaster"
    },
},
    "3": {
"ign": {
      "label": "Roles (positional)",
"label": "Minecraft IGN",
      "description": "Alternative way to specify roles as third positional parameter",
"description": "Their Minecraft in-game username",
      "type": "string",
"type": "string",
      "deprecated": "Use 'roles' parameter instead"
"example": "craft_master_2023"
    },
},
    "bio": {
"roles": {
      "label": "Biography",
"label": "Roles/Titles",
      "description": "Short biography or description of the staff member",
"description": "Comma-separated list of roles and titles (e.g., 'Admin, Builder, Event Coordinator')",
      "type": "string",
"type": "string",
      "example": "Been with the server since day one. Loves building and helping new players."
"example": "Head Admin, Builder, Event Host"
    },
},
    "4": {
"bio": {
      "label": "Bio (positional)",
"label": "Biography",
      "description": "Alternative way to specify bio as fourth positional parameter",
"description": "Short biography or description of the staff member",
      "type": "string",
"type": "string",
      "deprecated": "Use 'bio' parameter instead"
"example": "Been with the server since day one. Loves building and helping new players."
    },
},
    "avatar": {
"avatar": {
      "label": "Avatar Image",
"label": "Avatar Image",
      "description": "URL to the staff member's avatar image. If not provided, will use first letter of handle",
"description": "URL to the staff member's avatar image. If not provided, will use first letter of handle",
      "type": "string",
"type": "string",
      "example": "https://example.com/avatar.jpg"
"example": "https://example.com/avatar.jpg"
    },
},
    "status": {
"status": {
      "label": "Status",
"label": "Status",
      "description": "Current status of the staff member",
"description": "Current status of the staff member",
      "type": "string",
"type": "string",
      "default": "active",
"default": "active",
      "suggestedvalues": [
"suggestedvalues": [
        "active",
"active",
        "inactive",
"inactive",
        "vacation"
"vacation",
      ]
"retired"
    },
]
    "joined": {
},
      "label": "Join Date",
"joined": {
      "description": "Date when the staff member joined the team",
"label": "Join Date",
      "type": "string",
"description": "Date when the staff member joined the team",
      "example": "March 2023"
"type": "string",
    },
"example": "March 2023"
    "discord": {
},
      "label": "Discord Username",
"discord": {
      "description": "Their Discord username or handle",
"label": "Discord Username",
      "type": "string",
"description": "Their Discord username or handle",
      "example": "craftmaster#1234"
"type": "string",
    },
"example": "craftmaster#1234"
    "pronouns": {
},
      "label": "Pronouns",
"pronouns": {
      "description": "Their preferred pronouns",
"label": "Pronouns",
      "type": "string",
"description": "Their preferred pronouns",
      "example": "they/them"
"type": "string",
    }
"example": "they/them"
  },
}
  "description": "Creates an attractive staff member card displaying their information, roles, and bio",
},
  "format": "block",
"description": "Creates an attractive staff member card displaying their information, roles, and bio",
  "sets": [
"format": "block",
    {
"sets": [
      "label": "Basic Information",
{
      "params": [
"label": "Basic Information",
        "handle",
"params": [
        "ign",
"handle",
        "roles",
"ign",
        "bio"
"roles",
      ]
"bio"
    },
]
    {
},
      "label": "Additional Details",
{
      "params": [
"label": "Additional Details",
        "avatar",
"params": [
        "status",
"avatar",
        "joined",
"status",
        "discord",
"joined",
        "pronouns"
"discord",
      ]
"pronouns"
    }
]
  ]
}
]
}
}
</templatedata>
</templatedata>


[[Category:Templates]]
[[Category:Templates]]

Latest revision as of 21:01, 7 July 2025

This is the documentation page. It should be transcluded into Template:StaffCard. See Template:Documentation for more information.

Usage

This template creates attractive staff member cards for your community.

Basic Syntax

{{StaffCard
|handle=StaffMemberName
|ign=minecraft_username
|roles=Admin, Moderator
|bio=Short biography or description
}}

Examples

Basic Example

{{StaffCard
|handle=CraftMaster
|ign=craft_master_2023
|roles=Head Admin, Builder
|bio=Been with the server since the beginning. Loves building massive castles and helping new players.
}}

Full Example

{{StaffCard
|handle=AlexTheGreat
|ign=alex_builds_stuff
|roles=Moderator, Event Coordinator, Builder
|bio=Passionate about creating fun events and maintaining a welcoming community atmosphere.
|avatar=https://example.com/avatar.jpg
|status=active
|joined=March 2023
|discord=alexthegreat#1234
|pronouns=they/them
}}

Styling

The cards use a gradient background and hover effects. They are responsive and will adapt to mobile screens.

Creates an attractive staff member card displaying their information, roles, and bio

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Handle (positional)1

Alternative way to specify handle as first positional parameter

Stringdeprecated
IGN (positional)2

Alternative way to specify IGN as second positional parameter

Stringdeprecated
Roles (positional)3

Alternative way to specify roles as third positional parameter

Stringdeprecated
Bio (positional)4

Alternative way to specify bio as fourth positional parameter

Stringdeprecated
Handle/Usernamehandle

The staff member's display name or handle

Example
CraftMaster
Stringrequired
Minecraft IGNign

Their Minecraft in-game username

Example
craft_master_2023
Stringoptional
Roles/Titlesroles

Comma-separated list of roles and titles (e.g., 'Admin, Builder, Event Coordinator')

Example
Head Admin, Builder, Event Host
Stringoptional
Biographybio

Short biography or description of the staff member

Example
Been with the server since day one. Loves building and helping new players.
Stringoptional
Avatar Imageavatar

URL to the staff member's avatar image. If not provided, will use first letter of handle

Example
https://example.com/avatar.jpg
Stringoptional
Statusstatus

Current status of the staff member

Suggested values
active inactive vacation retired
Default
active
Stringoptional
Join Datejoined

Date when the staff member joined the team

Example
March 2023
Stringoptional
Discord Usernamediscord

Their Discord username or handle

Example
craftmaster#1234
Stringoptional
Pronounspronouns

Their preferred pronouns

Example
they/them
Stringoptional