模板:Color strip/doc
此页面是Template:Color strip的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
{{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.
参见