Template:CardColor

From Little Troubles
Revision as of 10:27, 26 August 2026 by Chesto (talk | contribs)


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

Currently breaks wikitables:

Type
style="background:rgba(84,146,196,1.0);
color
#000000; border-color:rgba(252,179,69,1.0);
border-width
3px 0px 3px 3px; border-top-left-radius: 5px; border-bottom-left-radius: 5px; text-align: center" | [[{{{type}}}]]