|
|
| 第1行: |
第1行: |
| <div style="background:{{{bgcolor|#161616}}};border:1px solid {{{border_color|#333}}};border-radius:{{{radius|4px}}};padding:25px;margin-bottom:30px;box-shadow:0 4px 10px rgba(0,0,0,0.3);"><h2 style="margin-top:0;color:{{{title_color|#ffffff}}};border-bottom:1px solid {{{border_color|#333}}};padding-bottom:15px;font-family:'Microsoft YaHei',sans-serif;font-size:1.3rem;display:flex;align-items:center;"><span style="color:{{{accent|#64b5f6}}};margin-right:12px;font-size:1.5rem;"></span>{{{title|标题}}}<span style="font-size:0.6em;color:#666;margin-left:10px;font-family:Consolas;font-weight:normal;">// {{{subtitle|SECTION}}}</span></h2> | | <includeonly><div class="mc-record-panel"><div class="mc-record-heading"><div class="mc-component-title">{{{title|档案目录}}}</div><span class="mc-component-label">{{{subtitle|INDEX}}}</span></div><table class="wikitable mc-record-table"><tr><th scope="col">{{{col1|名称}}}</th>{{#if:{{{col2|}}}|<th scope="col">{{{col2}}}</th>}}{{#if:{{{col3|}}}|<th scope="col">{{{col3}}}</th>}}{{#if:{{{col4|}}}|<th scope="col">{{{col4}}}</th>}}{{#if:{{{col5|}}}|<th scope="col">{{{col5}}}</th>}}{{#if:{{{col6|}}}|<th scope="col">{{{col6}}}</th>}}{{#if:{{{col7|}}}|<th scope="col">{{{col7}}}</th>}}</tr></includeonly><noinclude> |
| <table style="width:100%;border-collapse:collapse;margin-top:15px;font-size:{{{font_size|0.95rem}}};"> | | [[编写模板|← 编辑组件手册]] |
| <tr><th style="text-align:left;padding:12px 10px;color:{{{accent|#64b5f6}}};border-bottom:2px solid {{{accent|#64b5f6}}};font-family:Consolas;">{{{col1|列1}}}</th>{{#if:{{{col2|}}}|<th style="text-align:left;padding:12px 10px;color:{{{accent|#64b5f6}}};border-bottom:2px solid {{{accent|#64b5f6}}};font-family:Consolas;">{{{col2|}}}</th>}}{{#if:{{{col3|}}}|<th style="text-align:left;padding:12px 10px;color:{{{accent|#64b5f6}}};border-bottom:2px solid {{{accent|#64b5f6}}};font-family:Consolas;">{{{col3|}}}</th>}}{{#if:{{{col4|}}}|<th style="text-align:left;padding:12px 10px;color:{{{accent|#64b5f6}}};border-bottom:2px solid {{{accent|#64b5f6}}};font-family:Consolas;">{{{col4|}}}</th>}}{{#if:{{{col5|}}}|<th style="text-align:left;padding:12px 10px;color:{{{accent|#64b5f6}}};border-bottom:2px solid {{{accent|#64b5f6}}};font-family:Consolas;">{{{col5|}}}</th>}}{{#if:{{{col6|}}}|<th style="text-align:left;padding:12px 10px;color:{{{accent|#64b5f6}}};border-bottom:2px solid {{{accent|#64b5f6}}};font-family:Consolas;">{{{col6|}}}</th>}}{{#if:{{{col7|}}}|<th style="text-align:left;padding:12px 10px;color:{{{accent|#64b5f6}}};border-bottom:2px solid {{{accent|#64b5f6}}};font-family:Consolas;">{{{col7|}}}</th>}}</tr> | | |
| <noinclude>
| | 编年史统一编辑组件。用法和示例见 [[编写模板]]。 |
| </table></div> | |
| == 使用说明 ==
| |
| '''必须'''与 [[模板:档案行]] 和 [[模板:档案面板尾]] 配合使用,三者缺一不可。
| |
| 完整调用示例见 [[模板:档案面板尾]]。
| |
| <templatedata> | | <templatedata> |
| { | | { |
| "params": {
| | "description": "编年史统一编辑组件。用法和示例见 [[编写模板]]。", |
| "bgcolor": {
| | "format": "block", |
| "label": "容器背景色"
| | "params": { |
| },
| | "title": { |
| "border_color": {
| | "label": "title", |
| "label": "边框/分割线颜色"
| | "type": "content" |
| },
| | }, |
| "radius": {
| | "subtitle": { |
| "label": "容器圆角",
| | "label": "subtitle", |
| "description": "*px"
| | "type": "content" |
| },
| | }, |
| "title_color": {
| | "col1": { |
| "label": "标题文字颜色"
| | "label": "col1", |
| },
| | "type": "content" |
| "accent": {},
| | }, |
| "title": {
| | "col2": { |
| "label": "标题栏文字"
| | "label": "col2", |
| },
| | "type": "content" |
| "subtitle": {
| | }, |
| "label": "副标题",
| | "col3": { |
| "description": "// 后的副标题"
| | "label": "col3", |
| },
| | "type": "content" |
| "font_size": {
| | }, |
| "label": "表格字体大小",
| | "col4": { |
| "description": "*rem"
| | "label": "col4", |
| },
| | "type": "content" |
| "col1": {
| | }, |
| "label": "第1 列表头",
| | "col5": { |
| "required": true,
| | "label": "col5", |
| "autovalue": "名称"
| | "type": "content" |
| },
| | }, |
| "col2": {
| | "col6": { |
| "description": "可选列表头,不填则该列不渲染",
| | "label": "col6", |
| "autovalue": "主创/团队",
| | "type": "content" |
| "suggested": true
| | }, |
| },
| | "col7": { |
| "col3": {
| | "label": "col7", |
| "description": "可选列表头,不填则该列不渲染",
| | "type": "content" |
| "autovalue": "开始时间",
| | } |
| "suggested": true
| | } |
| },
| |
| "col4": {
| |
| "description": "可选列表头,不填则该列不渲染"
| |
| },
| |
| "col5": {
| |
| "description": "可选列表头,不填则该列不渲染",
| |
| "autovalue": "档案入口"
| |
| },
| |
| "col6": {
| |
| "description": "可选列表头,不填则该列不渲染"
| |
| },
| |
| "col7": {
| |
| "description": "可选列表头,不填则该列不渲染"
| |
| }
| |
| },
| |
| "paramOrder": [
| |
| "title",
| |
| "bgcolor",
| |
| "border_color",
| |
| "radius",
| |
| "title_color",
| |
| "accent",
| |
| "subtitle",
| |
| "font_size",
| |
| "col1",
| |
| "col2",
| |
| "col3",
| |
| "col4",
| |
| "col5",
| |
| "col6",
| |
| "col7"
| |
| ]
| |
| } | | } |
| </templatedata></noinclude> | | </templatedata> |
| | </noinclude> |