Template:Home/StaffBox/StaffLink: Difference between revisions

From 95 Degrees Wiki
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#if:{{{userId|}}} | {{#tag:html | <img src="https://api.saku.dev/spin-dash/avatar/{{{userId}}}.png" style="width:100%; aspect-ratio:1/1;">}} }}
--><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|}}} | [[File:{{{userImage}}}|256px]]}}
{{#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 39: 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 45: Line 56:
"username",
"username",
"userId",
"userId",
"userImage"
"userImage",
"role"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 17:44, 6 July 2023

Saku

Barista

Staff link for staff box

Template parameters

ParameterDescriptionTypeStatus
Usernameusername Username

The username of the staff member

Example
Saku
Stringrequired
User IDuserId User ID

The user ID of the staff member to fetch their avatar

Example
255673616342056961
Unknownoptional
User ImageuserImage User Image

The uploaded image of the staff member's profile picture (alternative to User ID, don't use both)

Example
Guardian-logo.png
Stringoptional
Rolerole role

The role of this user within the staff team

Default
Barista
Example
Barista, developer etc
Unknownoptional