模板: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子頁面中添加分類。本模板的子頁面。 |