模板:道具信息:修订间差异
(// Edit via Wikiplus) |
小 (// Edit via Wikiplus) |
||
| (未显示3个用户的3个中间版本) | |||
| 第11行: | 第11行: | ||
|使用上限|{{{使用上限|}}} | |使用上限|{{{使用上限|}}} | ||
|持续时间|{{{持续时间|}}} | |持续时间|{{{持续时间|}}} | ||
|bottom-hide = {{{道具ID|}}} | |bartitle1={{#ifeq:{{Yesno|{{{Removed|no}}}}}|yes|该道具已移除}}|bartext1={{#ifeq:{{Yesno|{{{Removed|no}}}}}|yes|<div></div>}}<!-- | ||
|bottom-href = https://www.mcbbs.net/home.php?mod=magic&action=shop&operation=buy&mid={{{道具ID}}} | |bottom-hide={{#ifeq:{{Yesno|{{{Removed|no}}}}}|yes||{{{道具ID|}}}}} | ||
|bottom-text = 购买道具 | |bottom-href=https://www.mcbbs.net/home.php?mod=magic&action=shop&operation=buy&mid={{{道具ID}}} | ||
}}{{# | |bottom-text=购买道具--> | ||
}}{{#if:{{NAMESPACE}}||[[分类:道具]]}}</includeonly><noinclude>{{doc}}[[Category:信息模板]]<templatedata>{"params":{ | |||
"道具名称": { | |||
"label": "道具名称", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"image": { | |||
"label": "插图", | |||
"type": "content" | |||
}, | |||
"道具ID": { | |||
"label": "道具ID", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"售价": { | |||
"label": "售价", | |||
"type": "number", | |||
"required": true | |||
}, | |||
"重量": { | |||
"label": "重量", | |||
"type": "number", | |||
"required": true | |||
}, | |||
"补货周期": { | |||
"label": "补货周期", | |||
"type": "string" | |||
}, | |||
"补货上限": { | |||
"label": "补货上限", | |||
"type": "string" | |||
}, | |||
"使用上限": { | |||
"label": "使用上限", | |||
"type": "string" | |||
}, | |||
"持续时间": { | |||
"label": "持续时间", | |||
"type": "string" | |||
} | |||
}, | |||
"description": "道具条目的信息卡", | |||
"format": "block" | |||
}</templatedata></noinclude> | |||
2024年3月23日 (六) 17:33的最新版本
使用方法
除了道具名称之外的其他参数都是可选的。
{{道具信息
|道具名称 =
|image = (一般使用内部链接)
|道具ID = (指地址中结尾mid后的一个单词,如提升卡是bump)
|售价 =
|重量 =
|补货周期 =
|补货上限 =
|使用上限 =
|持续时间 =
}}
例如:(代码见下)
| 提升卡 | ||
|---|---|---|
| 基本资料 | ||
| 道具名称 | 提升卡 | |
| 道具ID | bump | |
| 售价 | 40 | |
| 重量 | 40 | |
| 补货周期 | 每天 | |
| 补货上限 | 50 | |
| 使用上限 | 3个/天 | |
| 持续时间 | 瞬时 | |
{{道具信息
|道具名称 = 提升卡
|image = [[文件:提升卡.gif]]
|道具ID = bump
|售价 = 40
|重量 = 40
|补货周期 = 每天
|补货上限 = 50
|使用上限 = 3个/天
|持续时间 = 瞬时
}}
道具条目的信息卡
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| 道具名称 | 道具名称 | 无描述 | 字符串 | 必需 |
| 插图 | image | 无描述 | 内容 | 可选 |
| 道具ID | 道具ID | 无描述 | 字符串 | 必需 |
| 售价 | 售价 | 无描述 | 数字 | 必需 |
| 重量 | 重量 | 无描述 | 数字 | 必需 |
| 补货周期 | 补货周期 | 无描述 | 字符串 | 可选 |
| 补货上限 | 补货上限 | 无描述 | 字符串 | 可选 |
| 使用上限 | 使用上限 | 无描述 | 字符串 | 可选 |
| 持续时间 | 持续时间 | 无描述 | 字符串 | 可选 |
