Template:Loc color/doc: Difference between revisions
Plaguerized (talk | contribs) m (→TemplateData) |
AlternateRT (talk | contribs) mNo edit summary Tag: 2017 source edit |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Doc/start}} | ||
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. | 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. | ||
Line 86: | Line 86: | ||
|- | |- | ||
| Vermillion Tower | | Vermillion Tower | ||
|- | |||
| rowspan=3 style="background:{{Loc color|teal}};" | teal | |||
| Homestedt | |||
| rowspan=3 | #34787F | |||
|- | |||
| Azure Archipelago | |||
|- | |||
| Ku'lero Temple | |||
|} | |} | ||
Line 95: | Line 103: | ||
|desc=The name of the color, or the name of the location with proper capitalization. | |desc=The name of the color, or the name of the location with proper capitalization. | ||
|def=<code>#'''Invalid color.'''</code> | |def=<code>#'''Invalid color.'''</code> | ||
|type=<nowiki>["blue" | "orange" | "gray" | "grey" | "yellow" | "green" | "purple" | "red" | "vermillion" | "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" ]</nowiki> | |type=<nowiki>["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" ]</nowiki> | ||
|status=Required}} | |status=Required}} | ||
}} | }} | ||
Line 107: | Line 115: | ||
* {{tl|Quest Navbox}} | * {{tl|Quest Navbox}} | ||
{{ | {{Doc/end}} | ||
<includeonly> | |||
[[Category:Formatting templates]] | |||
</includeonly> |
Latest revision as of 07:51, 31 August 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
Autumn's Fall |
---|
Accepted values and resulting RGB values are shown in the following table.
Color value | Location value | RGB output |
---|---|---|
blue | MS Solar | #004F80 |
Rhombus Square | ||
Rhombus Dungeon | ||
orange | Rookie Harbor | #BF5900 |
Autumn's Rise | ||
Autumn's Fall | ||
gray / grey | Bergen Trail | #5D6466 |
Bergen Village | ||
Temple Mine | ||
yellow | Maroon Valley | #8C7438 |
Ba'kii Kum | ||
Faj'ro Temple | ||
green | Gaia's Garden | #00734F |
Basin Keep | ||
So'najiz Temple | ||
Zir'vitar Temple | ||
Grand Krys'kajo | ||
purple | Sapphire Ridge | #403380 |
Old Hideout | ||
red / vermillion | Vermillion Wasteland | #801B47 |
Vermillion Dungeon | ||
Vermillion Tower | ||
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.
|
["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}}