Editing
Template:Role/doc
Jump to navigation
Jump to search
Warning:
You are not logged in. Once you make an edit, a temporary account will be created for you.
Learn more
.
Log in
or
create an account
to continue receiving notifications after this account expires, and to access other features.
Anti-spam check. Do
not
fill this in!
This template displays a role in the same style Discord does when you click on a user. {{role|Like this}} == Parameters == <code><nowiki>{{role|name|color|gradient=|dark-background=yes}}</nowiki></code> * <code>name</code> - The name of the role. This will be the text that will appear in the template. * <code>color</code> - The color of the role. Can be a hex code (you must include the #) or any other [https://developer.mozilla.org/en-US/docs/Web/CSS/color_value valid CSS color value]. If not specified, defaults to ''#c4c9ce'' (the default appearance for non-colored roles). * <code>gradient=</code> - If specified, this will override <code>color</code>. Intended for roles with color gradients, this allows you to specify a series of comma-separated colors which will appear as a left-to-right gradient. For example: <code>gradient=#7129f6, #e7d57b, #7129f6</code> * <code>dark-background=</code> - Set this to "yes" to change the background color of the template to the dark color used on Discord profiles. Otherwise, the background will remain white (or whatever color the surrounding background is). == Example == <code><nowiki>{{role|Was it worth it?|#eb2d37}}</nowiki></code> outputs: {{role|Was it worth it?|#eb2d37}} == TemplateData == <templatedata> { "params": { "1": { "label": "Role name", "description": "The name of the role. This will be the text that will appear.", "example": "Was it worth it?", "type": "string", "required": true }, "2": { "label": "Color", "description": "The color of the role. Can be a hex code (you must include the #, e.g. #ff7f00) or any other valid CSS color value.", "type": "string", "default": "#c4c9ce", "suggested": true }, "dark-background": { "label": "Dark background", "description": "Set this to \"yes\" to change the background color of the template to the dark color used on Discord profiles.", "example": "yes", "type": "string" }, "gradient": { "label": "Color gradient", "description": "If specified, this will override Color. Intended for roles with color gradients. Specify a series of comma-separated colors which will appear as a left-to-right gradient.", "example": "#7129f6, #e7d57b, #7129f6", "type": "string" } }, "description": "Displays a role in the same style that Discord uses when you click on a user.", "paramOrder": [ "1", "2", "gradient", "dark-background" ], "format": "inline" } </templatedata>
Summary:
Please note that all contributions to Irony Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Irony Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Role
(
edit
)
Template:Role/styles.css
(
edit
)
Template:Yesno
(
edit
)
Navigation menu
Personal tools
English
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Purge cache
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information
Cargo data