模板:道具信息:修订间差异

删除298字节 、​ 2024年3月23日 (星期六)
// Edit via Wikiplus
(// Edit via Wikiplus)
 
(未显示5个用户的8个中间版本)
|bartext = 基本资料
|道具名称|{{{道具名称|}}}
|英文道具ID|{{{英文道具ID|}}}
|售价|{{{售价|}}}
|重量|{{{重量|}}}
|使用上限|{{{使用上限|}}}
|持续时间|{{{持续时间|}}}
|bartitle1={{#ifeq:{{Yesno|{{{Removed|no}}}}}|yes|该道具已移除}}|bartext1={{#ifeq:{{Yesno|{{{Removed|no}}}}}|yes|<div></div>}}<!--
|bottom-hide = {{{英文ID|}}}
|bottom-hide={{#ifeq:{{Yesno|{{{Removed|no}}}}}|yes||{{{道具ID|}}}}}
|bottom-href = https://www.mcbbs.net/home.php?mod=magic&action=shop&operation=buy&mid={{{英文道具ID}}}
|bottom-text = 购买道具-->
}}</includeonly><noinclude>
}}{{#if:{{NAMESPACE}}||[[分类:道具]]}}</includeonly><noinclude>{{doc}}[[Category:信息模板]]<templatedata>{"params":{
介绍道具的通用模板。
| "道具名称": = <br/>{
 
"label": "道具名称",
== 使用方法 ==
"type": "string",
除了道具名称之外的其他变量都是可选的。
"required": true
<div style = "width: 500px; background: #fdf6e6; padding: 5px 20px 5px; font-family: NSimSun; border: solid 1px #cfb78e; margin: 0.5em">
},
<nowiki>{{道具信息</nowiki><br/>
"image": {
|道具名称 = <br/>
"label": "插图",
|image = (一般使用内部链接)<br/>
"type": "content"
|英文ID = (英文ID是指地址中末尾mid后的一个单词,如'''提升卡'''是bump)<br/>
},
|售价 = <br/>
"道具ID": {
|重量 = <br/>
"label": "道具ID",
|补货周期 = <br/>
"type": "string",
|补货上限 = <br/>
"required": true
|使用上限 = <br/>
},
|持续时间 = <br/>
"售价": {
}}
"label": "售价",
</div>
"type": "number",
例如:(效果见右)
"required": true
{{道具信息
},
|道具名称 = 提升卡
"重量": {
|image = [[文件:提升卡图片.gif]]
"label": "重量",
|英文ID = bump
"type": "number",
|售价 = 40
"required": true
|重量 = 40
},
|补货周期 = 每天
| "补货上限周期": = 50{
"label": "补货周期",
|使用上限 = 3个/天
"type": "string"
|持续时间 = 瞬时
}},
| "补货上限": = <br/>{
<div style = "width: 400px; background: #fdf6e6; padding: 5px 20px 5px; font-family: NSimSun; border: solid 1px #cfb78e; margin: 0.5em">
"label": "补货上限",
<nowiki>{{道具信息</nowiki><br/>
"type": "string"
|道具名称 = 提升卡<br/>
},
|image = <nowiki>[[文件:提升卡图片.gif]]</nowiki><br/>
| "使用上限": = <br/>{
|英文ID = bump<br/>
"label": "使用上限",
|售价 = 40<br/>
"type": "string"
|重量 = 40<br/>
},
|补货周期 = 每天<br/>
| "持续时间": = <br/>{
|补货上限 = 50<br/>
"label": "持续时间",
|使用上限 = 3个/天<br/>
"type": "string"
|持续时间 = 瞬时<br/>
} }
},
</div>
"description": "道具条目的信息卡",
<br/><br/><br/><br/><br/>
"format": "block"
[[Category:信息模板]]
}}</includeonlytemplatedata></noinclude>
巡查员
1,454

个编辑