This is a documentation for Board Game Arena: play board games online !
Template:Pentagon: Difference between revisions
Jump to navigation
Jump to search
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...") |
Sammy McSam (talk | contribs) m (font-family) |
||
| Line 1: | Line 1: | ||
<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> | <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-family:Roboto,Arial,sans-serif;font-weight:700;font-size:{{{ts|1rem}}};">{{{1|​}}}</span><noinclude> | ||
== Parameters == | == Parameters == | ||
Revision as of 23:56, 10 June 2025
Parameters
Id
Name
Default
Example
Result
Description
sSize
36{{pentagon|s=50}}
Optional: size of pentagon in px units.
bBackground
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].tcText color
automatic black/white
{{pentagon|A|tc=lime}}A
Optional: text color as a CSS color value.
tsText size
1rem{{pentagon|A|ts=24px}}A
Optional: size of pentagon in px units.
rRotate clockwise
0{{pentagon|r=1}}
Optional: rotate the pentagon in units of 36° clockwise.