Bản mẫu:Scarf/doc
Đây là một trang con tài liệu sử dụng bản mẫu dành cho Bản mẫu:Scarf. Nó gồm có các thông tin hướng dẫn sử dụng, thể loại và các nội dung khác không thuộc về phần trang bản mẫu gốc. |
This template is used with {{cell}}, {{cell2}}, {{cell3}}, and {{cells}} for the purpose of creating a sequence of colors representing an academic scarf.
Usage[sửa mã nguồn]
Full width scarf
{{scarf|{{cell|''colour1''}}{{cell|''colour2''}}{{cell|''colour3''}} ...}}
Half width scarf
{{scarf|width=50%|{{cell|''colour1''}}{{cell|''colour2''}}{{cell|''colour3''}} ...}}
Examples[sửa mã nguồn]
- Code
{{scarf| {{cell|blue}}{{cell2|orange}}{{cell3|green}}{{cells|5|red}}{{cell3|green}}{{cell2|orange}}{{cell|blue}} }}
- Result
- Code
{{scarf|width=50%| {{cell|blue}}{{cell2|orange}}{{cell3|green}}{{cells|5|red}}{{cell3|green}}{{cell2|orange}}{{cell|blue}} }}
- Result