الگو: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

پارامترهای الگو

پارامترتوضیحاتنوعوضعیت
Color1

The HTML color name or hexadecimal color code (the latter of which must start with #)

رشتهضروری
Color Label2

The name of the color, if this is different than the "color" parameter

رشتهاختیاری
Borderborder

The color of the border, or "none" if there should be no border; defaults to #666 (gray)

رشتهاختیاری
Shapeshape

Either "square" or "circle"; defaults to "circle"

رشتهاختیاری