Template:Color icon/doc

2022年7月22日 (金) 23:41; 不真面目苦手 (会話 | 投稿記録) による版 (カテゴリ削除など。)(日時は個人設定で未設定ならUTC

(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)

This template generates a shape filled with a specified color, together with a label of the color's name. (The label is included for accessibility reasons.) The template supports HTML color names and hexadecimal color codes.

Examples[編集]

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|[[grey]]}} Grey
{{color icon|white|shape=square}} White
{{color icon|white|border=black}} White

Parameters[編集]

これはビジュアルエディターテンプレートウィザードにより使用されるテンプレートのためのTemplateData文書です。

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"

文字列省略可能