Editing
Template:Server color/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!
Outputs a server's color scheme. For example, a template's header about Whenthe might look something like <div style="min-width:25%; max-width:300px; font-weight:bold; text-align:center; {{server color|Whenthe}}">Whenthe</div> because that is the color scheme defined in the [[Whenthe]] infobox. The template outputs in a {{w|CSS}} format (e.g., the default output is <code>{{server color}}</code>). It is used for styling templates, such as {{tl|Infobox Discord server}} and {{tl|Server subbox}}. Usage: <code>{{Server color|''server name or ID''}}</code> This template pulls the colors from the [[Special:CargoTables/discord_servers|Discord servers Cargo table]], which in turn pulls its data from the infobox for each server. The template's parameter must exactly match either the name or Discord ID used on the server's infobox. == TemplateData == <templatedata> { "params": { "1": { "label": "Server", "description": "Either the name or the Discord ID of the server. It must match the name or ID that is in the server's infobox.", "example": "Whenthe", "type": "string", "required": true } }, "description": "Outputs the CSS for a server's color scheme, which is defined in that server's infobox. White-on-blue is the default if no other color scheme is defined." } </templatedata> <includeonly> [[Category:Templates that query Cargo]] </includeonly>
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:Is Discord ID
(
edit
)
Template:Query
(
edit
)
Template:Server color
(
edit
)
Template:Tl
(
view source
) (protected)
Template:W
(
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