Template:CardColor: Difference between revisions
No edit summary |
No edit summary |
||
| 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(180deg,rgba(84, 146, 196, {{{opacity|1.0}}}) 0%, rgba(111, 81, 153, {{{opacity|1.0}}}) 100%) | |Hybrid=linear-gradient(180deg, 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}}}) | ||
}} | }} | ||
| Line 64: | Line 64: | ||
!Type | !Type | ||
|- | |- | ||
|style{{=}}"background:{{CardColor|CardType=Character|CardArea=body}};color:#000000; border-color:{{CardColor|CardType=Character|CardArea=frame}}; border-width: 3px 0px 3px 3px; border-top-left-radius: 5px; border-bottom-left-radius: 5px; text-align: center" | {{ItemIcon|{{{ | |style{{=}}"background:{{CardColor|CardType=Character|CardArea=body}};color:#000000; border-color:{{CardColor|CardType=Character|CardArea=frame}}; border-width: 3px 0px 3px 3px; border-top-left-radius: 5px; border-bottom-left-radius: 5px; text-align: center" | {{ItemIcon|Character|height=x20px|alignment=middle}} | ||
|- | |||
|style{{=}}"background:{{CardColor|CardType=Hybrid|CardArea=body}};color:#000000; border-color:{{CardColor|CardType=Hybrid|CardArea=frame}}; border-width: 3px 0px 3px 3px; border-top-left-radius: 5px; border-bottom-left-radius: 5px; text-align: center" | {{ItemIcon|Hybrid|height=x20px|alignment=middle}} | |||
|} | |||
{| style="border-collapse: separate; border-spacing: 0; border: none; padding: 2px;" | |||
|+ | |||
!Type | |||
|- | |||
|style{{=}}"background:{{CardColor|CardType=Character|CardArea=body}};color:#000000; border-color:{{CardColor|CardType=Character|CardArea=frame}}; border-width: 3px 0px 3px 3px; border-top-left-radius: 5px; border-bottom-left-radius: 5px; text-align: center" | {{ItemIcon|Character|height=x20px|alignment=middle}} | |||
|- | |||
|style{{=}}"background:{{CardColor|CardType=Hybrid|CardArea=body}};color:#000000; border-color:{{CardColor|CardType=Hybrid|CardArea=frame}}; border-width: 3px 0px 3px 3px; border-top-left-radius: 5px; border-bottom-left-radius: 5px; text-align: center" | {{ItemIcon|Hybrid|height=x20px|alignment=middle}} | |||
|} | |} | ||
</noinclude> | </noinclude> | ||
Revision as of 10:52, 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 |
|---|