Template:CardColor: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
< | <includeonly>{{#switch: {{{CardArea|body}}} | ||
|body={{#switch: {{{CardType}}} | |body={{#switch: {{{CardType}}} | ||
|Character|Main Character|MainCharacter=rgba(84,146,196,{{{opacity|1.0}}}) | |Character|Main Character|MainCharacter=rgba(84,146,196,{{{opacity|1.0}}}) | ||
| Line 22: | Line 22: | ||
|#default=rgba(252, 179, 69, {{{opacity|1.0}}}) | |#default=rgba(252, 179, 69, {{{opacity|1.0}}}) | ||
}} | }} | ||
}}</ | }}</includeonly> | ||
<noinclude> | <noinclude> | ||
Colours/effects for cards. Exports the raw color code, e.g. {{CardColor|CardType=Action|CardArea=body}}. | Colours/effects for cards. Exports the raw color code, e.g. {{CardColor|CardType=Action|CardArea=body}}. | ||
Revision as of 10:37, 26 August 2026
Colours/effects for cards. Exports the raw color code, e.g. rgba(183,58,57,1.0)
.
Has three arguments:
CardType(name of card type)CardArea(body/frame)opacity(default 1.0)
Examples with <span style="background:[];">:
Body (code works for main type/subtype/uniques):
default Action Character Field Goal Scene Toy Hybrid
Frame (code works for main type/subtype/uniques):
default/non-unique type Decisive (Quick) Action Main Character Iconic Field Great Goal Memorable Scene Shiny Toy Hybrid