模板:Infobox:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
小无编辑摘要 |
||
| 第1行: | 第1行: | ||
<onlyinclude><span <!-- container --> style="white-space: nowrap; <!-- set bold text -->{{#if:{{{bold|}}}|font-weight: bold;|}}"><span <!-- color block --> style="font-style: normal; color: {{{color|{{{ | <onlyinclude><span <!-- container --> style="white-space: nowrap; <!-- set bold text -->{{#if:{{{bold|}}}|font-weight: bold;|}}"><span <!-- color block --> style="font-style: normal; color: {{{color|{{{LineColor|北京地铁0号线}}}}}}; padding: 0 0.25em; user-select: none;">█</span><span <!-- text content -->>{{#if:{{{no-text|}}}|<!-- no text, leave blank -->|{{#if:{{{text|{{{LineName|}}}}}}<!-- custom text -->|{{#if: {{{color-tooltip|}}}|<!-- use color tooltip -->{{SetTitle|{{{color|{{{1}}}}}}|{{{text|{{{LineName}}}}}}}}|<!-- custom text, show text only -->{{{text|{{{LineName}}}}}}}}|<!-- show color name / hex code -->{{#tag:nowiki|{{{color|{{{LineColor|北京地铁0号线}}}}}}}}}}}}</span></span></onlyinclude> | ||
<noinclude> | <noinclude> | ||
本模版为基于中文维基百科的'''模板:Color block'''而编写,可用于显示CSS颜色名称/16进制颜色值及其对应色块。 | 本模版为基于中文维基百科的'''模板:Color block'''而编写,可用于显示CSS颜色名称/16进制颜色值及其对应色块。 | ||
</noinclude> | </noinclude> | ||
<templatedata> | |||
{ | |||
"params": { | |||
"LineColor": { | |||
"label": "线路颜色", | |||
"description": "地铁线路的标识", | |||
"example": "#C23A30", | |||
"suggested": true, | |||
"required": true | |||
}, | |||
"LineName": { | |||
"label": "线路名称", | |||
"description": "地铁线路的官方名称", | |||
"example": "北京地铁0号线", | |||
"suggested": true, | |||
"required": true | |||
} | |||
}, | |||
"description": "用于所有公交线路的基本信息框。", | |||
"paramOrder": [ | |||
"LineColor", | |||
"LineName" | |||
] | |||
} | |||
</templatedata> | |||
2022年3月5日 (六) 23:39的版本
█北京地铁0号线
本模版为基于中文维基百科的模板:Color block而编写,可用于显示CSS颜色名称/16进制颜色值及其对应色块。
用于所有公交线路的基本信息框。
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| 线路颜色 | LineColor | 地铁线路的标识
| 未知 | 必需 |
| 线路名称 | LineName | 地铁线路的官方名称
| 未知 | 必需 |