模板:Infobox:修订间差异

来自北京交通百科
跳转到导航 跳转到搜索
Deefhi留言 | 贡献
无编辑摘要
Deefhi留言 | 贡献
无编辑摘要
第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|{{{1|北京地铁0号线}}}}}}; padding: 0 0.25em; user-select: none;">&#x02588;</span><span <!-- text content -->>{{#if:{{{no-text|}}}|<!-- no text, leave blank -->|{{#if:{{{text|{{{2|}}}}}}<!-- custom text -->|{{#if: {{{color-tooltip|}}}|<!-- use color tooltip -->{{SetTitle|{{{color|{{{1}}}}}}|{{{text|{{{2}}}}}}}}|<!-- custom text, show text only -->{{{text|{{{2}}}}}}}}|<!-- show color name / hex code -->{{#tag:nowiki|{{{color|{{{1|北京地铁0号线}}}}}}}}}}}}</span></span></onlyinclude>
<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;">&#x02588;</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

地铁线路的标识

示例值
#C23A30
未知必需
线路名称LineName

地铁线路的官方名称

示例值
北京地铁0号线
未知必需