Template:Server color

Revision as of 05:07, 14 July 2022 by Saucy (talk | contribs) (Created page with "{{#switch: {{{1}}} | Irony Hub = background-color:#0a5ba6; color:#ffffff; | Whenthe = background-color:#c70e11; color:#ffffff; | Dogelore = background-color:#ffb000; color:#000000; | OKBR4 = background-color:#009bd2; color:#1e0000; | #default = background-color:#0a5ba6; color:#ffffff; }} <noinclude>{{documentation}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

background-color:#0a5ba6; color:#ffffff;

Documentation

Outputs a server's color scheme.

For example, a template's header about Whenthe might look something like

Whenthe

because that is the color scheme defined in the Whenthe infobox.

The template outputs in a CSS format (e.g., the default output is background-color:#0a5ba6; color:#ffffff; ). It is used for styling templates, such as {{Infobox Discord server}} and {{Server subbox}}.

Usage: {{Server color|server name or ID}}

This template pulls the colors from the 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

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Server1

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
Stringrequired