|
|
| 第1行: |
第1行: |
| <tr{{#if:{{{alt|}}}| style="background:#1b1b1b;"|}}><td style="padding:15px 10px;border-bottom:1px dashed #333;"><b>{{{c1|{{{name|{{{1|}}}}}}}}}}</b></td>{{#ifexpr:{{{cols|4}}}>=2|{{#ifeq:{{{cols|4}}}|2|<td style="padding:15px 10px;border-bottom:1px dashed #333;">{{#if:{{{link|}}}|[[{{{link|}}}|<span style="color:#fff;border-bottom:1px solid #666;">{{{linktext|查看档案}}}</span>]]|{{{c2|{{{info|{{{2|}}}}}}}}}}}</td>|<td style="padding:15px 10px;border-bottom:1px dashed #333;color:#aaa;">{{{c2|{{{info|{{{2|}}}}}}}}}}</td>}}|}}{{#ifexpr:{{{cols|4}}}>=3|{{#ifeq:{{{cols|4}}}|3|<td style="padding:15px 10px;border-bottom:1px dashed #333;">{{#if:{{{link|}}}|[[{{{link|}}}|<span style="color:#fff;border-bottom:1px solid #666;">{{{linktext|查看档案}}}</span>]]|{{{c3|{{{time|{{{3|}}}}}}}}}}}</td>|<td style="padding:15px 10px;border-bottom:1px dashed #333;color:#aaa;">{{{c3|{{{time|{{{3|}}}}}}}}}}</td>}}|}}{{#ifexpr:{{{cols|4}}}>=4|{{#ifeq:{{{cols|4}}}|4|<td style="padding:15px 10px;border-bottom:1px dashed #333;">{{#if:{{{link|}}}|[[{{{link|}}}|<span style="color:#fff;border-bottom:1px solid #666;">{{{linktext|查看档案}}}</span>]]|{{{c4|{{{4|}}}}}}}}}</td>|<td style="padding:15px 10px;border-bottom:1px dashed #333;color:#aaa;">{{{c4|{{{4|}}}}}}</td>}}|}}{{#ifexpr:{{{cols|4}}}>=5|{{#ifeq:{{{cols|4}}}|5|<td style="padding:15px 10px;border-bottom:1px dashed #333;">{{#if:{{{link|}}}|[[{{{link|}}}|<span style="color:#fff;border-bottom:1px solid #666;">{{{linktext|查看档案}}}</span>]]|{{{c5|{{{5|}}}}}}}}}</td>|<td style="padding:15px 10px;border-bottom:1px dashed #333;color:#aaa;">{{{c5|{{{5|}}}}}}</td>}}|}}{{#ifexpr:{{{cols|4}}}>=6|{{#ifeq:{{{cols|4}}}|6|<td style="padding:15px 10px;border-bottom:1px dashed #333;">{{#if:{{{link|}}}|[[{{{link|}}}|<span style="color:#fff;border-bottom:1px solid #666;">{{{linktext|查看档案}}}</span>]]|{{{c6|{{{6|}}}}}}}}}</td>|<td style="padding:15px 10px;border-bottom:1px dashed #333;color:#aaa;">{{{c6|{{{6|}}}}}}</td>}}|}}{{#ifexpr:{{{cols|4}}}>=7|{{#ifeq:{{{cols|4}}}|7|<td style="padding:15px 10px;border-bottom:1px dashed #333;">{{#if:{{{link|}}}|[[{{{link|}}}|<span style="color:#fff;border-bottom:1px solid #666;">{{{linktext|查看档案}}}</span>]]|{{{c7|{{{7|}}}}}}}}}</td>|<td style="padding:15px 10px;border-bottom:1px dashed #333;color:#aaa;">{{{c7|{{{7|}}}}}}</td>}}|}}</tr><noinclude>
| | |- style="{{{row_style|}}}" |
| == 使用说明 ==
| | {{#if:{{{1|}}}| |
| === 参数一览 ===
| | {{!}} style="padding: 15px 10px; border-bottom: 1px dashed #333; {{#if:{{{bg|}}}|background: #1b1b1b;|}} {{{c1_style|}}}" {{!}} {{{1}}} |
| {| class="wikitable"
| | }}{{#if:{{{2|}}}| |
| ! 参数名 !! 别名(向下兼容) !! 说明
| | {{!}} style="padding: 15px 10px; border-bottom: 1px dashed #333; color: #aaa; {{#if:{{{bg|}}}|background: #1b1b1b;|}} {{{c2_style|}}}" {{!}} {{{2}}} |
| |-
| | }}{{#if:{{{3|}}}| |
| | <code>c1</code> ||<code>name</code>, <code>1</code> || 第1列(自动加粗)
| | {{!}} style="padding: 15px 10px; border-bottom: 1px dashed #333; color: #666; font-family: Consolas; {{#if:{{{bg|}}}|background: #1b1b1b;|}} {{{c3_style|}}}" {{!}} {{{3}}} |
| |-
| | }}{{#if:{{{4|}}}| |
| | <code>c2</code> || <code>info</code>, <code>2</code> || 第2列(灰色文本)
| | {{!}} style="padding: 15px 10px; border-bottom: 1px dashed #333; {{#if:{{{bg|}}}|background: #1b1b1b;|}} {{{c4_style|}}}" {{!}} {{{4}}} |
| |-
| | }}{{#if:{{{5|}}}| |
| | <code>c3</code> || <code>time</code>, <code>3</code> || 第3列(灰色文本)
| | {{!}} style="padding: 15px 10px; border-bottom: 1px dashed #333; {{#if:{{{bg|}}}|background: #1b1b1b;|}} {{{c5_style|}}}" {{!}} {{{5}}} |
| |-
| | }}{{#if:{{{6|}}}| |
| | <code>c4</code> ~ <code>c7</code> || <code>4</code> ~ <code>7</code> || 中间列(灰色)/ 末列(链接)
| | {{!}} style="padding: 15px 10px; border-bottom: 1px dashed #333; {{#if:{{{bg|}}}|background: #1b1b1b;|}} {{{c6_style|}}}" {{!}} {{{6}}} |
| |-
| | }}{{#if:{{{7|}}}| |
| | <code>link</code> || — || 末列 wiki 链接目标页面
| | {{!}} style="padding: 15px 10px; border-bottom: 1px dashed #333; {{#if:{{{bg|}}}|background: #1b1b1b;|}} {{{c7_style|}}}" {{!}} {{{7}}} |
| |-
| | }} |
| | <code>linktext</code> || — || 链接显示文字,默认"查看档案"
| |
| |-
| |
| | <code>alt</code> || — || 非空时启用交替背景 <code>#1b1b1b</code>
| |
| |-
| |
| | <code>cols</code> || — || 列数(3~7),须与面板头一致,默认 <code>4</code>
| |
| |}
| |
| | |
| === 💡 日期列Consolas 样式 ===
| |
| 若需对某列内容应用等宽日期样式,可在内容中嵌套 span:
| |
| <pre>
| |
| |c3=<span style="font-family:Consolas;color:#666">2024-04-05</span>
| |
| </pre>
| |
| </noinclude>
| |