打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
ContentBot2留言 | 贡献
创建零件信息框模板
 
ContentBot2留言 | 贡献
修复:在 <templatestyles /> 和表格之间加换行
 
(未显示同一用户的7个中间版本)
第1行: 第1行:
{| class="wikitable" style="float:right; margin-left:1em; margin-bottom:1em; width:280px; border:1px solid #a2a9b1; background:#f8f9fa;"
<includeonly><templatestyles src="Template:Robuddy-styles.css" />
|- style="background:#336699; color:white; text-align:center;"
{| class="robuddy-infobox"
|- class="robuddy-infobox-title"
| colspan="2" | '''{{{标题|{{PAGENAME}}}}}'''
| colspan="2" | '''{{{标题|{{PAGENAME}}}}}'''
{{#if:{{{image|}}}
|-
|-
| colspan="2" style="text-align:center; padding:8px;" | [[{{{image}}}|250px]]
| class="robuddy-infobox-image" colspan="2" | {{{image|}}}
}}
|- class="robuddy-infobox-row"
{{#if:{{{类别|}}}
| class="robuddy-infobox-label" | 类别
|-
| class="robuddy-infobox-value" | {{{类别|}}}
| style="width:90px; background:#e8e8e8; font-weight:bold;" | 类别
|- class="robuddy-infobox-row"
| {{{类别}}}
| class="robuddy-infobox-label" | 英文名
}}
| class="robuddy-infobox-value robuddy-infobox-en" | {{{英文名|}}}
{{#if:{{{英文名|}}}
|- class="robuddy-infobox-row"
|-
| class="robuddy-infobox-label" | 功能
| style="background:#e8e8e8; font-weight:bold;" | 英文名
| class="robuddy-infobox-value" | {{{功能|}}}
| {{{英文名}}}
|- class="robuddy-infobox-row"
}}
| class="robuddy-infobox-label" | 类型
{{#if:{{{功能|}}}
| class="robuddy-infobox-value" | {{{类型|}}}
|-
|- class="robuddy-infobox-row"
| style="background:#e8e8e8; font-weight:bold;" | 功能
| class="robuddy-infobox-label" | 标称电压
| {{{功能}}}
| class="robuddy-infobox-value" | {{{标称电压|}}}
}}
|- class="robuddy-infobox-row"
{{#if:{{{类型|}}}
| class="robuddy-infobox-label" | 质量
|-
| class="robuddy-infobox-value" | {{{质量|}}}
| style="background:#e8e8e8; font-weight:bold;" | 类型
|- class="robuddy-infobox-row"
| {{{类型}}}
| class="robuddy-infobox-label" | 密度
}}
| class="robuddy-infobox-value" | {{{密度|}}}
{{#if:{{{标称压|}}}
|}</includeonly><noinclude>
|-
{{Documentation}}
| style="background:#e8e8e8; font-weight:bold;" | 标称电压
<templatedata>
| {{{标称电压}}}
{
|}
  "params": {
    "标题": { "label": "标题", "type": "string", "required": false, "description": "默认取页面名称" },
    "image": { "label": "图片", "type": "wiki-file-name", "required": false, "description": "如 File:xxx.png" },
    "类别": { "label": "类别", "type": "string", "required": false, "description": "如 供系统、动力系统" },
    "英文名": { "label": "英文名", "type": "string", "required": false },
    "功能": { "label": "功能", "type": "string", "required": false },
    "类型": { "label": "类型", "type": "string", "required": false },
    "标称电压": { "label": "标称电压", "type": "string", "required": false },
    "质量": { "label": "质量", "type": "string", "required": false },
    "密度": { "label": "密度", "type": "string", "required": false }
  },
  "description": "零件/项目信息卡片",
  "format": "block"
}
}
</templatedata>
</noinclude>

2026年7月17日 (五) 20:54的最新版本

本模板的文档见 Template:Infobox/doc。您可以编辑它。

零件/项目信息卡片

模板参数[编辑模板数据]

此模板首选参数换行的代码块格式。

参数描述类型状态
标题标题

默认取页面名称

字符串可选
图片image

如 File:xxx.png

文件可选
类别类别

如 供电系统、动力系统

字符串可选
英文名英文名

无描述

字符串可选
功能功能

无描述

字符串可选
类型类型

无描述

字符串可选
标称电压标称电压

无描述

字符串可选
质量质量

无描述

字符串可选
密度密度

无描述

字符串可选