Template:道具信息
使用方式
直接把以下内容复制入条目中就可使用
{{道具信息
|image = 一张道具的图片,只需用写入文件名即可,例如:Spear of Longinus.jpg。不能用外部图片
|tabs =
|图片说明 = 配图信息说明,通常为图片的P站ID(PID:xxxxxxxxxx)或者注明是維基共享
|道具名称 =
|道具别名 =
|道具种类 = 道具的种类,如“武器”等
|道具用途 = 道具的用途
|相关作品 = 只写代表性作品
|相关道具 = 与此道具相关的其他道具
}}
如需添加其他项目,可以任意添加更多的|项目名称::项目内容行。
注意:对于道具信息栏中不使用的项目,只留空即可,请不要把项目删掉。
使用示例
- 使用image参数
{{道具信息
|image= 草方块.png
|图片说明=
|道具名称=草方块
|道具别名=
|道具种类=方块
|道具用途=
|相关作品=
|相关道具=
}}
|
- 使用tabs参数
{{道具信息
|tabs={{tabs/core
|TextPadding=0
|label1=草方块
|text1=[[File:草方块.png|280px]]
|label2=工作台
|text2=[[File:Crafting_Table.png|280px]]
}}
|图片说明=a
|道具名称=草方块
|道具别名=
|道具种类=方块
|道具用途=
|相关作品=
|相关道具=
}}
|
模板数据
<templatedata> {
"description": "用于道具介绍的通用信息模板,基于"params": { "tabs": { "aliases": [ "tab" ], "type": "content",
"description": "多张道具图片,配合 或 使用,展示多张相关图片。"}, "image": { "type": "wiki-file-name", "description": "一张道具的图片,只需写入文件名即可,例如 Spear of Longinus.jpg。不能用外部图片。" }, "图片说明": { "type": "content", "description": "配图信息说明,通常为图片的 P 站 ID(PID:xxxxxxxxxx)或注明是维基共享。" }, "道具名称": { "type": "line", "description": "道具的名称。" }, "道具别名": { "type": "line", "description": "道具的其他别名。" }, "道具种类": { "type": "line", "description": "道具的种类,如“武器”等。" }, "道具用途": { "type": "line", "description": "道具的用途。" }, "相关作品": { "type": "content", "description": "与该道具相关的作品,只写代表性作品。" }, "相关道具": { "type": "content", "description": "与该道具相关的其他道具。" }, "相关条目": { "type": "content", "description": "与该道具相关的其他条目。源码中可见但文档用法列表未列出。" } } } </templatedata>

