Template:Party color cell
style="background-color: #F8F9FA; width: 0.3em;" |
此模板使用Lua语言: |
Template:Party color cell 用于产生一个带有特定政党颜色的彩色表格单元。
使用
{{Party color cell|名称}}
参数
参数 | 描述 |
---|---|
1 | 政党名称 |
2 | 选填; The cell width. Defaults to 0.3em. |
rowspan | 选填; The number of rows to span. |
colspan | 选填; The number of columns to span. |
举例
{| class="wikitable" |- | {{party color cell|Aontú}} | Candidate | |- | |... |}
Candidate | ||
... |
or to override the default width of 10px,
{| class="wikitable" |- | {{party color cell|Aontú|10px}} | Candidate | |- | |... |}
Candidate | ||
... |
or to override the default rowspan of 1,
{| class="wikitable" |- | {{party color cell|Aontú|rowspan=3}} | Candidate | |- |... |- |... |- | |... |}
Candidate | ||
... | ||
... | ||
... |
上述文档嵌入自Template:Party color cell/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |