Template:Home/StaffBox/StaffLink: Difference between revisions
(Created page with "<includeonly><!-- -->{{#if:{{{userId|}}} | https://api.saku.dev/spin-dash/avatar/{{{userId}}}.png}} {{#if:{{{userImage|}}} | [[File:{{{userImage}}}|256px]]}} [[{{{username}}}]] <!-- --></includeonly><!-- --><noinclude> {{Home/StaffBox/StaffLink |username = Saku |userId = 255673616342056961 |linkTo = Saku }} <templatedata> { "params": { "userId": { "aliases": [ "User ID" ], "label": "User ID", "description": "The user ID of the staff member to fetch th...") |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
-->{{#if:{{{userId|}}} | https://api.saku.dev/spin-dash/avatar/{{{userId}}}.png}} | --><p>{{#if:{{{userId|}}} | {{#tag:html | <img src="https://api.saku.dev/spin-dash/avatar/{{{userId}}}.png" style="width:100%; aspect-ratio:1/1;">}} }} | ||
{{#if:{{{userImage|}}} | | {{#if:{{{userImage|}}} | {{#tag:html | <img src="{{{userImage}}}" style="width:100%; aspect-ratio:1/1;">}}}}</p> | ||
[[{{{username}}}]] <!-- | <h3 style="margin-top:-10px"><center>[[{{{username}}}]]</center></h3> | ||
<center>{{{role}}}</center><!-- | |||
--></includeonly><!-- | --></includeonly><!-- | ||
Line 9: | Line 10: | ||
|username = Saku | |username = Saku | ||
|userId = 255673616342056961 | |userId = 255673616342056961 | ||
| | |role = Barista | ||
}} | }} | ||
<templatedata> | <templatedata> | ||
Line 40: | Line 41: | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | |||
"role": { | |||
"aliases": [ | |||
"role" | |||
], | |||
"label": "Role", | |||
"description": "The role of this user within the staff team", | |||
"example": "Barista, developer etc", | |||
"default": "Barista" | |||
} | } | ||
}, | }, | ||
Line 46: | Line 56: | ||
"username", | "username", | ||
"userId", | "userId", | ||
"userImage" | "userImage", | ||
"role" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 17:44, 6 July 2023
Saku
Staff link for staff box
Parameter | Description | Type | Status | |
---|---|---|---|---|
Username | username Username | The username of the staff member
| String | required |
User ID | userId User ID | The user ID of the staff member to fetch their avatar
| Unknown | optional |
User Image | userImage User Image | The uploaded image of the staff member's profile picture (alternative to User ID, don't use both)
| String | optional |
Role | role role | The role of this user within the staff team
| Unknown | optional |