Template:Color strip
{{color strip|color1|color2|...|color20}}
{{color strip}}模板
它最多可以创建二十种颜色的条带。
用法编辑
该模板采用一个或多个参数。 前二十个未命名参数是显示在结果色带中的颜色的名称或颜色代码。
例子编辑
左边的代码和右边的实际渲染:
{{color strip|red|green|blue}}
=
{{color strip|w=2|red|red|green|blue|green|red|red}}
=
{{color strip|align=top|border=1|border-color=black|border-style=solid|w=2|h=2|red|green|blue}}
=
{{color strip|align=top|border=2|border-color=black|border-style=dotted|w=5|h=5|red|green|blue}}
=
选项编辑
- w is the width in em units.
- h is the height in ex units.
- border is the border thickness in px units.
- border-color is the border color.
- border-style is the border style: none, hidden, dotted, dashed, solid, double, groove, ridge, inset, outset.
- align is the vertical alignment: top, bottom, center.
- frame is the frame thickness in px units.
参见编辑
上述文档嵌入自Template:Color strip/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |