Template:CardColor: Difference between revisions
No edit summary |
No edit summary |
||
| Line 77: | Line 77: | ||
|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{{=}}"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}} | ||
|} | |} | ||
and other tables | |||
{| style="float:right; padding: 1em; margin-left: 1em; background: {{CardColor|CardType=Hybrid|CardArea=body|opacity=0.2}}; border-radius: 1em; min-width: 200px;" | |||
!colspan="2" | [[File:{{{ImageUrl|logo.png}}}|300px|center|frameless]] | |||
|- | |||
| | |||
| | |||
|- | |||
|'''Card Type''' | |||
|[[Hybrid]] | |||
|} | |||
</noinclude> | </noinclude> | ||
Revision as of 10:56, 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 |
