Difference between revisions of "Template:UserRoles Card User"
From WikiAnesthesia
Chris Rishel (talk | contribs) m (Chris.Rishel moved page Template:WikiAnesthesia leader to Template:UserRoles Card User without leaving a redirect) |
Chris Rishel (talk | contribs) Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
<templatestyles src=" | <templatestyles src="UserRoles_Card_User/styles.css" /> | ||
<div class="card | <div class="card userroles-card" style="width: 250px;"> | ||
{{#if:{{{image_file|}}}|<div class="card-img-top wikianesthesia-leader-image" alt="">[[File:{{{image_file}}}|250x250px]]</div>}} | {{#if:{{{image_file|}}}|<div class="card-img-top wikianesthesia-leader-image" alt="">[[File:{{{image_file}}}|250x250px]]</div>}} | ||
<div class="card-body"> | <div class="card-body"> | ||
<h5 class="card-title">[[User:{{{user_name}}}|{{{display_name|}}}]]</h5> | <h5 class="card-title">[[User:{{{user_name}}}|{{{display_name|{{{user_name|}}}}}}]]</h5> | ||
<h6 class="card-subtitle mb-2 text-muted">{{{ | <h6 class="card-subtitle mb-2 text-muted">{{{roles}}}</h6> | ||
</div> | </div> | ||
</div> | </div> | ||
Line 12: | Line 12: | ||
{ | { | ||
"params": { | "params": { | ||
"user_name": { | "user_name": { | ||
"label": " | "label": "User name", | ||
"description": "The | "description": "The user name for the user", | ||
"example": "Chris.Rishel", | "example": "Chris.Rishel", | ||
"type": "content", | "type": "content", | ||
Line 28: | Line 21: | ||
"display_name": { | "display_name": { | ||
"label": "Display name", | "label": "Display name", | ||
"description": "The display name for the | "description": "The display name for the user", | ||
"example": "Chris Rishel, MD, PhD", | "example": "Chris Rishel, MD, PhD", | ||
"type": "content", | "type": "content", | ||
" | "suggested": true | ||
}, | |||
"image_file": { | |||
"label": "Image file name", | |||
"description": "The file name of the image for the user", | |||
"example": "Chris Rishel.jpg", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | }, | ||
" | "roles": { | ||
"label": " | "label": "Role(s)", | ||
"description": "The role(s) of this | "description": "The role(s) of this user", | ||
"example": "Editor-in-chief | "example": "Founder, Editor-in-chief, CTO", | ||
"type": "content", | "type": "content", | ||
" | "suggested": true | ||
} | } | ||
}, | }, | ||
"description": "This widget is used to show a | "description": "This widget is used to show a users name, image, and roles", | ||
"format": "block", | "format": "block", | ||
"paramOrder": [ | "paramOrder": [ | ||
"user_name", | |||
"display_name", | "display_name", | ||
" | "image_file", | ||
" | "roles" | ||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Revision as of 02:55, 26 November 2021
[[User:{{{user_name}}}|]]
{{{roles}}}
This widget is used to show a users name, image, and roles
Parameter | Description | Type | Status | |
---|---|---|---|---|
User name | user_name | The user name for the user
| Content | required |
Display name | display_name | The display name for the user
| Content | suggested |
Image file name | image_file | The file name of the image for the user
| File | suggested |
Role(s) | roles | The role(s) of this user
| Content | suggested |