This is a documentation for Board Game Arena: play board games online !

Template talk:HCard

From Board Game Arena
Jump to navigation Jump to search

Re:Edits 2026-04-24

Tips_hanabi currently does not render the last 10 Template:InfoBox because the Post-expand include size page limit has been exceeded. This template was called 350 times on the old tips page (currenty 680!). So we should optimise for Post-expand include size.


background-image: linear-gradient(to bottom, #2f2342, #3e4d7e);

background-image → background
to bottom is redundant
remove spaces
use hex shorthand

To retain the background variable for dependent templates: background:{{{b|linear-gradient(#324,#458)}}};


color:{{{2|silver}}};

color was invisible on purpose, to represent a card where the value is irrelevant for the teaching purpose. It may as well be transparent (#0000) but matching the solid background color #324 was one digit shorter.

Template:HBack should not display anything on the back of the card in my opinion. One could optimise that template further, but it's easier just to call this template, keep the big number transparent and use a background variable.


box-shadow: inset 0 0 0 2px {{{2|silver}}};

I don't think the extra bytes for the color borders add anything useful given the physical cards don't have them and against a white background the white (and yellow) cards just look narrower than others.

--Sammy McSam (talk)