Template:CardColor: Difference between revisions
No edit summary |
No edit summary |
||
| Line 25: | Line 25: | ||
<noinclude> | <noinclude> | ||
Ignore the above, changing from onlyinclude to includeonly breaks absolutely everything. | Ignore the above, changing from onlyinclude to includeonly breaks absolutely everything. | ||
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:40, 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}}}]] |