模板: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.