コンテンツにスキップ

英文维基 | 中文维基 | 日文维基 | 草榴社区

Template:Color swatch

{{{4}}}

{{{2}}}

テンプレートの解説[表示] [編集] [履歴] [キャッシュを破棄]

Usage

[編集]
{{color swatch|#0000FF|Blue}} creates:

Blue


We strongly recommend adding a <ref></ref> to the main title, eg:

{{color swatch|#0000FF|Blue<ref>[http://www.w3.org/TR/REC-html40/types.html#h-6.5 HTML 4.01 Specification]</ref>}} creates:

Blue[1]


Optional parameters - floating left, and an internal caption:

{{color swatch|#0000FF|Blue|left|#0000FF}} creates:
#0000FF

Blue


Change the internal-caption's color with a 5th value:

{{color swatch|#0000FF|Blue|left|#0000FF|white}} creates:
#0000FF

Blue


Note

[編集]
  1. ^ HTML 4.01 Specification