Template:Loc color/sandbox

From CrossCode Wiki
Revision as of 17:11, 15 April 2021 by ExE Boss (talk | contribs) (Create Template:Loc color/sandbox)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
File:Template-info.svg Template Documentation

This template is used to more easily obtain the RGB value associated with a location in CrossCode for styling table backgrounds. This way the values can be easily modified across all pages if necessary.

Usage

{{Loc color/sandbox|color}}
{{Loc color/sandbox|Locationname}}

The main usage is to set the background style of a table:

{| class="wikitable"
|- style="background:{{Loc color/sandbox|orange}};"
! Autumn's Fall
|}

results in

  1. BF5900;"
Autumn's Fall

Accepted values and resulting RGB values are shown in the following table.

Accepted values for "Loc color" template
Color value Location value RGB output
rowspan=3 style="background:
  1. 004F80;" | blue
MS Solar #004F80
Rhombus Square
Rhombus Dungeon
rowspan=3 style="background:
  1. BF5900;" | orange
Rookie Harbor #BF5900
Autumn's Rise
Autumn's Fall
rowspan=3 style="background:
  1. 5D6466;" | gray / grey
Bergen Trail #5D6466
Bergen Village
Temple Mine
rowspan=3 style="background:
  1. 8C7438;" | yellow
Maroon Valley #8C7438
Ba'kii Kum
Faj'ro Temple
rowspan=5 style="background:
  1. 00734F;" | green
Gaia's Garden #00734F
Basin Keep
So'najiz Temple
Zir'vitar Temple
Grand Krys'kajo
rowspan=2 style="background:
  1. 403380;" | purple
Sapphire Ridge #403380
Old Hideout
rowspan=3 style="background:
  1. 801B47;" | red / vermillion
Vermillion Wasteland #801B47
Vermillion Dungeon
Vermillion Tower
rowspan=3 style="background:
  1. 34787f;" | teal
Homestedt #34787f
Azure Archipelago
Ku'lero Temple

TemplateData

Do not use named parameter for 1 ... x. The first Parameter will be automatically marked as 1, the second as 2 and so on.

Parameter Description Type Status
color or location name 1

The name of the color, or the name of the location with proper capitalization.

Default:
#Invalid color.
Example:
no example
["blue" | "orange" | "gray" | "grey" | "yellow" | "green" | "purple" | "red" | "vermillion" | "teal" | "MS Solar" | "Rhombus Square" | "Rhombus Dungeon" | "Rookie Harbor" | "Autumn's Rise" | "Autumn's Fall" | "Bergen Trail" | "Bergen Village" | "Temple Mine" | "Maroon Valley" | "Ba'kii Kum" | "Faj'ro Temple" | "Gaia's Garden" | "Basin Keep" | "So'naijz Temple" | "Zir'vitar Temple" | "Grand Krys'kajo" | "Sapphire Ridge" | "Old Hideout" | "Vermillion Wasteland" | "Vermillion Dungeon" | "Vermillion Tower" | "Homestedt" | "Azure Archipelago" | "Ku'lero Temple" ] Required

See Template:TemplateData and Template:TemplateData/entry for more information about the parameter list and DDNCode for more information about types and the DDN Notation

Test of raw TemplateData output:

No description.

Template parameters

ParameterDescriptionTypeStatus
color or location name1

The name of the color, or the name of the location with proper capitalization.

Default
<code>#'''Invalid color.'''</code>
Contentrequired

Related templates

This template is used or meant to be used in these templates: