模板:勋章信息:修订间差异

删除461字节 、​ 2022年7月13日 (星期三)
无编辑摘要
无编辑摘要
 
(未显示2个用户的6个中间版本)
|bottom-href = https://www.mcbbs.net/home.php?mod=medal
|bottom-text = 查看勋章页面
}}</includeonly><noinclude>{{doc}}[[Category:信息模板]]<templatedata>
{
介绍勋章的通用模板。
"params": {
 
| "勋章名称": = <br/>{
== 使用方法 ==
"label": "勋章名称",
除了勋章名称之外的其他变量都是可选的,不过原则上讲应该都填上。
"type": "string",
<div style = "width: 400px; background: #fdf6e6; padding: 5px 20px 5px; font-family: NSimSun; border: solid 1px #cfb78e; margin: 0.5em">
"default": "{{BASEPAGENAME}}",
<nowiki>{{勋章信息</nowiki><br/>
"autovalue": "{{BASEPAGENAME}}",
|勋章名称 = <br/>
"required": true
|image = (一般使用内部链接)<br/>
},
|别名 = <br/>
"image": {
|获取方式 = (人工授予/自主申请/条件……)<br/>
"label": "插图",
|有效期 = <br/>
"type": "content",
}}
"autovalue": ""
</div>
},
例如:(效果见右)
"别名": {
{{勋章信息
"label": "别名",
|勋章名称 = 新人勋章
"type": "content"
|image = [[文件:新人勋章.png]]
},
|别名 = 猪猪勋章
| "获取方式": = 无条件领取一次{
"label": "获取方式",
|有效期 = 7天
"type": "content",
}}
"required": true
<div style = "width: 400px; background: #fdf6e6; padding: 5px 20px 5px; font-family: NSimSun; border: solid 1px #cfb78e; margin: 0.5em">
},
<nowiki>{{勋章信息</nowiki><br/>
| "有效期": = <br/>{
|勋章名称 = 新人勋章<br/>
"label": "有效期",
|image = <nowiki>[[文件:新人勋章.png]]</nowiki><br/>
"type": "content",
|别名 = 猪猪勋章<br/>
"required": true
|获取方式 = 无条件领取一次<br/>
}
|有效期 = 7天<br/>
}},
"description": "勋章条目的信息卡",
</div>
"format": "block"
 
}}
[[Category:信息模板]]
</templatedata></noinclude>