Difference between revisions of "Template:Colorcircle"
m |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <span style="display: inline-flex | + | <includeonly><span style="display: inline-flex; vertical-align: baseline; justify-content: center; align-items: center; height: 16px; width: {{{width|16px}}}; background-color:{{{1|white}}};border:1px solid {{{border|{{{1}}}}}};{{border-radius|{{{border-radius|50%}}}}}"><b>[[{{{2|}}}|<span style="color:{{{lettercolor|white}}};">{{{letter| }}}</span>]]</b></span></includeonly><noinclude> |
+ | This template makes a color circle with letter/number inside to use as line symbol. | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | * 1 - color | ||
+ | * 2 - link | ||
+ | * letter - show letter or number (optional) | ||
+ | * lettercolor (default is white) | ||
+ | * border - border color (optional) | ||
+ | * width - width of the circle (default is 16px) | ||
+ | * border-radius - (default is 50% for circle, can adjust to a different number for horizontal and vertical. | ||
+ | |||
+ | Usage: | ||
+ | |||
+ | <pre>{{colorcircle|1 (color)|2 (link)|letter= (blank if there's no letter or number)|lettercolor= (default: white)}}</pre></noinclude> |
Latest revision as of 14:48, 19 May 2024
This template makes a color circle with letter/number inside to use as line symbol.
Parameters:
- 1 - color
- 2 - link
- letter - show letter or number (optional)
- lettercolor (default is white)
- border - border color (optional)
- width - width of the circle (default is 16px)
- border-radius - (default is 50% for circle, can adjust to a different number for horizontal and vertical.
Usage:
{{colorcircle|1 (color)|2 (link)|letter= (blank if there's no letter or number)|lettercolor= (default: white)}}