テンプレート:Color box
| このテンプレートはテンプレートスタイルを使用しています: |
使い方
{{Color box|背景色|文字列|文字色}}
| 見え方 | 書き方 |
|---|---|
{{Color box|Green}}
| |
| あ | {{Color box||あ}}(色無し)
|
| Default color for this text | {{Color box|Yellow|Default color for this text}}
|
| White text in a blue box | {{Color box|Blue|White text in a blue box|White}}
|
| X11の色名称で指定 | {{Color box|SteelBlue|'''X11の色名称で指定'''|Cornsilk}}
|
| 色コードで指定 | {{Color box|#012345|''色コードで指定''|#FEDCBA}}
|
| 枠線の色を指定 | {{Color box||枠線の色を指定|border=red}}
|
引数
TemplateData
色付きのボックスを表示
| パラメーター | 説明 | 型 | 状態 | |
|---|---|---|---|---|
| 背景色 | 1 | ボックスの背景色
| 文字列 | 必須 |
| 文字列 | 2 | ボックスに表示する文字列
| 文字列 | 省略可能 |
| 文字色 | 3 | ボックス中の文字列の色
| 文字列 | 省略可能 |
| 枠線色 | border | ボックスの枠線の色
| 文字列 | 省略可能 |
関連テンプレート
- {{RouteBox}} - 枠なし
- {{Colorbox}} - 枠が灰色
- {{Color box2}}
- {{Color sample}}