Template:Loc color: Difference between revisions
m (Fix wrong result) |
(Try to <noinclude> empty <nowiki/>) |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly | <nowiki/><onlyinclude><includeonly>#{{#switch: {{{1}}}<!-- | ||
-->| MS Solar<!-- | -->| MS Solar<!-- | ||
-->| Rhombus Square<!-- | -->| Rhombus Square<!-- |
Revision as of 16:53, 15 April 2021
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|color}} {{Loc color|Locationname}}
The main usage is to set the background style of a table:
{| class="wikitable" |- style="background:{{Loc color|orange}};" ! Autumn's Fall |}
results in
- BF5900;"
Autumn's Fall |
---|
Accepted values and resulting RGB values are shown in the following table.
Color value | Location value | RGB output |
---|---|---|
rowspan=3 style="background:
|
MS Solar | #004F80 |
Rhombus Square | ||
Rhombus Dungeon | ||
rowspan=3 style="background:
|
Rookie Harbor | #BF5900 |
Autumn's Rise | ||
Autumn's Fall | ||
rowspan=3 style="background:
|
Bergen Trail | #5D6466 |
Bergen Village | ||
Temple Mine | ||
rowspan=3 style="background:
|
Maroon Valley | #8C7438 |
Ba'kii Kum | ||
Faj'ro Temple | ||
rowspan=5 style="background:
|
Gaia's Garden | #00734F |
Basin Keep | ||
So'najiz Temple | ||
Zir'vitar Temple | ||
Grand Krys'kajo | ||
rowspan=2 style="background:
|
Sapphire Ridge | #403380 |
Old Hideout | ||
rowspan=3 style="background:
|
Vermillion Wasteland | #801B47 |
Vermillion Dungeon | ||
Vermillion Tower | ||
rowspan=3 style="background:
|
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.
|
["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
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
color or location name | 1 | The name of the color, or the name of the location with proper capitalization.
| Content | required |
Related templates
This template is used or meant to be used in these templates:
{{Enemy Card}}
{{EnemyNavBox}}
{{Location Card}}
{{Quest Card}}
{{Quest Navbox}}