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