Template:CardColor: Difference between revisions
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 8: | Line 8: | ||
|Goal|Great Goal|GreatGoal=rgba(149,87,41,{{{opacity|1.0}}}) | |Goal|Great Goal|GreatGoal=rgba(149,87,41,{{{opacity|1.0}}}) | ||
|Pregame Action|Pre-game Action|PregameAction|Pre-gameAction=rgba(183,58,57,{{{opacity|1.0}}}) | |Pregame Action|Pre-game Action|PregameAction|Pre-gameAction=rgba(183,58,57,{{{opacity|1.0}}}) | ||
|Hybrid=linear-gradient( | |Hybrid=linear-gradient(315deg, rgba(84,146,196,{{{opacity|1.0}}}) 0%, rgba(111,81,153,{{{opacity|1.0}}}) 100%) | ||
|#default=rgba(170, 170, 170, {{{opacity|1.0}}}) | |#default=rgba(170, 170, 170, {{{opacity|1.0}}}) | ||
}} | }} | ||
Latest revision as of 11:22, 26 August 2026
rgba(170, 170, 170, 1.0)
Ignore the above, changing from onlyinclude to includeonly breaks absolutely everything.
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)
{{CardColor|CardType=Action|CardArea=body|opacity=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
Works with wikitables:
| Type |
|---|
| Type |
|---|
and other tables
![]() | |
|---|---|
| Card Type | Hybrid |
