Editing
Template:Role/doc
Jump to navigation
Jump to search
β οΈ
Warning:
You are not logged in.
Your IP address will be publicly visible
if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username instead of your IP, along with other benefits.
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|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>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" } }, "description": "Displays a role in the same style that Discord uses when you click on a user.", "paramOrder": [ "1", "2", "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
Not logged in
Talk
Contributions
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
Tools
What links here
Related changes
Special pages
Page information
Page values