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

Template:Pentagon

From Board Game Arena
Revision as of 23:38, 10 June 2025 by Sammy McSam (talk | contribs) (Created page with "<span style="display:inline-grid;place-items:center;width:{{{s|36}}}px;aspect-ratio:1;rotate:calc({{{r|0}}}*36deg);clip-path:polygon(50% 0,97.55% 34.55%,79.39% 90.45%,20.61% 90.45%,2.45% 34.55%);background:{{{b|linear-gradient(30deg in oklch shorter hue,#57b8b8,#5976cc,#7f4edc,#861dd1,#b7339f)}}};color:{{{tc|oklch(from {{{b|#7f4edc}}} clamp(0,(l/.64 - 1)*-infinity,1) 0 h)}}};font-weight:700;font-size:{{{ts|1rem}}};">{{{1|​}}}</span><noinclude> == Paramete...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Parameters

Id
Name
Default
Example
Result
Description
s
Size
36
{{pentagon|s=50}}
Optional: size of pentagon in px units.
b
Background
linear-gradient(…)
{{pentagon|b=green}}
Optional: set a CSS background color or gradient.
1
Text value
empty
{{pentagon|A}}
A
Optional: set a text value for a specific [face].
tc
Text color
automatic black/white
{{pentagon|A|tc=lime}}
A
Optional: text color as a CSS color value.
ts
Text size
1rem
{{pentagon|A|ts=24px}}
A
Optional: size of pentagon in px units.
r
Rotate clockwise
0
{{pentagon|r=1}}
Optional: rotate the pentagon in units of 36° clockwise.