模板:ItemBox:修订间差异
外观
LocalAdmin(留言 | 贡献) Create ItemBox infobox template with TemplateData |
LocalAdmin(留言 | 贡献) Rewrite: use Lua module via #invoke for clean conditional rows |
||
| (未显示同一用户的1个中间版本) | |||
| 第1行: | 第1行: | ||
<noinclude> | <noinclude> | ||
物品信息框模板。在道具、法宝、灵器等词条页面顶部使用。所有参数均为可选,留空的行不显示。 | |||
用法示例: | |||
<pre> | |||
{{ItemBox | |||
| name = 元磁子母剑 | |||
| image = 元磁子母剑.jpg | |||
| grade = 极品法宝 | |||
| owner = 唐浩 | |||
| maker = 阳真魔君 | |||
| material = 元磁神石 | |||
}} | |||
</pre> | |||
<templatedata> | <templatedata> | ||
| 第59行: | 第71行: | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude><includeonly> | </noinclude><includeonly>{{#invoke:Infobox|item}}</includeonly> | ||
{{# | |||
2026年3月12日 (四) 11:49的最新版本
物品信息框模板。在道具、法宝、灵器等词条页面顶部使用。所有参数均为可选,留空的行不显示。
用法示例:
{{ItemBox
| name = 元磁子母剑
| image = 元磁子母剑.jpg
| grade = 极品法宝
| owner = 唐浩
| maker = 阳真魔君
| material = 元磁神石
}}
<templatedata> {
"description": "物品/法宝信息卡片",
"params": {
"name": {
"label": "名称",
"description": "物品名称,留空则自动使用页面标题",
"type": "string",
"suggested": true
},
"image": {
"label": "图片",
"description": "图片文件名,例如:元磁子母剑.jpg",
"type": "wiki-file-name",
"suggested": true
},
"grade": {
"label": "物品品阶",
"description": "法宝等级,例如:极品法宝、上品灵器",
"type": "string",
"suggested": true
},
"type": {
"label": "物品类型",
"description": "飞剑、丹药、法阵、阵盘等",
"type": "string"
},
"owner": {
"label": "持有人",
"description": "当前持有者",
"type": "string",
"suggested": true
},
"maker": {
"label": "打造人",
"description": "炼制或打造者",
"type": "string"
},
"material": {
"label": "材质",
"description": "主要炼制材料",
"type": "string"
},
"use": {
"label": "用途",
"description": "主要用途或作用",
"type": "string"
},
"ability": {
"label": "技能/能力",
"description": "特殊能力或效果",
"type": "string"
}
},
"paramOrder": ["name","image","grade","type","owner","maker","material","use","ability"]
} </templatedata>