الگو:Color icon
نمونه[ویرایش]
Template code | Output |
---|---|
{{Color icon|red}} |
Red |
{{Color icon|red|border=none}} |
Red |
{{Color icon|dark red}} |
Dark red |
{{Color icon|purple|violet}} |
Violet |
{{Color icon|#800080|violet}} |
Violet |
{{Color icon|#999|[[خاکستری]]}} |
خاکستری |
{{Color icon|white|shape=square}} |
White |
{{Color icon|white|border=black}} |
White |
Parameters[ویرایش]
این، توضیحاتِ الگوداده است که توسط TemplateWizard، ویرایشگر دیداری و دیگر ابزارها استفاده میشود. گزارش خطای ماهیانه برای این الگو را ببینید.
الگوداده Color icon
Generate a colored shape labeled with the color's name
پارامتر | توضیحات | نوع | وضعیت | |
---|---|---|---|---|
Color | 1 | The HTML color name or hexadecimal color code (the latter of which must start with #) | رشته | ضروری |
Color Label | 2 | The name of the color, if this is different than the "color" parameter | رشته | اختیاری |
Border | border | The color of the border, or "none" if there should be no border; defaults to #666 (gray) | رشته | اختیاری |
Shape | shape | Either "square" or "circle"; defaults to "circle" | رشته | اختیاری |