打开/关闭菜单
331
1.7K
131
11.8K
星露谷物语扩展百科
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:Infobox monster:修订间差异

来自星露谷物语扩展百科
Sizau-bot留言 | 贡献
移动端优化
Sizau留言 | 贡献
重构
第1行: 第1行:
<includeonly>{{#set:
<includeonly><div class="infoboxborder">
|Name={{{name|{{PAGENAME}}}}}
<table class="infoboxtable">
|Eng={{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}
<tr>
|Portrait={{{portrait|}}}
<td colspan="2" class="infoboxheader {{#if:{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}|infoboxheader-zh|}}">{{#if:{{{name|}}}|{{{name|}}}| {{PAGENAME}}}}</td>
|Width={{{width|}}}
</tr>
|Location={{{location|}}}
|Levels={{{levels|}}}
|Killable={{{killable|}}}
|Hp={{{hp|}}}
|Dmg={{{dmg|}}}
|Def={{{def|}}}
|Spd={{{spd|}}}
|Exp={{{exp|}}}
|Variations={{{variations|}}}
|Drops={{{drops|}}}
}}<div id="infoboxborder">
{| id="infoboxtable"
|colspan="2" id="infoboxheader"{{#if: {{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}| class="infoboxheaderzh"|}}|{{#if:{{{name|}}} | {{{name|}}} | {{PAGENAME}} }}
{{#if: {{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}|
{{#if: {{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}|
<tr>
<tr>
<td colspan="2" id="infoboxheader" class="infoboxheaderen">{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}</td>
<td colspan="2" class="infoboxheader infoboxheader-en">{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}</td>
</tr>
</tr>
|
|
}}
}}
|-
<tr>
|colspan="2" style="padding-bottom: 15px;"|{{#if: {{{portrait}}}|[[File:{{{portrait|Villager Placeholder.png}}}{{#if:{{{width|}}}|{{!}}{{{width|}}}}}|center|link=]]|[[File:Villager Placeholder.png|center|link=]]}}
<td colspan="2" style="padding-bottom: 15px;">{{#if: {{{portrait}}}|[[File:{{{portrait|Villager Placeholder.png}}}{{#if:{{{width|}}}|{{!}}{{{width|}}}}}|center|link=]]|[[File:Villager Placeholder.png|center|link=]]}}</td>
|-
</tr>
|colspan="2" id="infoboxsection" style="text-align: center;"|信息
<tr>
|-
<td colspan="2" class="infoboxsection">信息</td>
|id="infoboxsection" class="no-wrap"|生成地点
</tr>
|id="infoboxdetail"|{{#switch:{{lc:{{{location|}}}}}
<tr>
<td class="infoboxsection no-wrap">生成地点</td>
<td class="infoboxdetail">{{#switch:{{lc:{{{location|}}}}}
| the mines | mines | 矿井 = [[矿井]]  
| the mines | mines | 矿井 = [[矿井]]  
| the skull cavern | skull cavern | 骷髅洞穴 = [[骷髅洞穴]]  
| the skull cavern | skull cavern | 骷髅洞穴 = [[骷髅洞穴]]  
| the farm | farm | 农场 = [[农场]]  
| the farm | farm | 农场 = [[农场]]  
| #default = {{{location|}}}}}{{#switch:{{lc:{{{location|}}}}}
| #default = {{{location|}}}}}</td>
</tr>
{{#switch:{{lc:{{{location|}}}}}
|the mines|mines|矿井=<nowiki />
|the mines|mines|矿井=<nowiki />
{{!}}-
<tr>
{{!}}id="infoboxsection"{{!}}生成层数
<td class="infoboxsection">生成层数</td>
{{!}}id="infoboxdetail"{{!}}{{#if:{{{levels|}}}|{{{levels}}}|不适用}}
<td class="infoboxdetail">{{#if:{{{levels|}}}|{{{levels}}}|不适用}}</td>
</tr>
|the skull cavern|skull cavern|骷髅洞穴=<nowiki />
|the skull cavern|skull cavern|骷髅洞穴=<nowiki />
{{!}}-
<tr>
{{!}}id="infoboxsection"{{!}}生成层数
<td class="infoboxsection">生成层数</td>
{{!}}id="infoboxdetail"{{!}}{{#if:{{{levels|}}}|{{{levels}}}|所有}}
<td class="infoboxdetail">{{#if:{{{levels|}}}|{{{levels}}}|所有}}</td>
</tr>
|the farm|farm|农场 =
|the farm|farm|农场 =
|#default=<nowiki />
|#default=<nowiki />
{{!}}-
<tr>
{{!}}id="infoboxsection"{{!}}生成层数
<td class="infoboxsection">生成层数</td>
{{!}}id="infoboxdetail"{{!}}{{{levels|不适用}}}
<td class="infoboxdetail">{{{levels|不适用}}}</td>
</tr>
}}
}}
|-
<tr>
|id="infoboxsection"|可否杀死
<td class="infoboxsection">可否杀死</td>
|id="infoboxdetail"|{{#if:{{{killable|}}}|{{{killable}}}|否}}
<td class="infoboxdetail">{{#if:{{{killable|}}}|{{{killable}}}|否}}</td>
|-
</tr>
|id="infoboxsection"|基础血量
<tr>
|id="infoboxdetail" class="no-wrap"|{{#if:{{{hp|}}}|{{{hp}}}|不适用}}
<td class="infoboxsection">基础血量</td>
|-
<td class="infoboxdetail no-wrap">{{#if:{{{hp|}}}|{{{hp}}}|不适用}}</td>
|id="infoboxsection"|基础伤害
</tr>
|id="infoboxdetail"|{{#if:{{{dmg|}}}|{{{dmg}}}|不适用}}
<tr>
|-
<td class="infoboxsection">基础伤害</td>
|id="infoboxsection"|基础防御
<td class="infoboxdetail">{{#if:{{{dmg|}}}|{{{dmg}}}|不适用}}</td>
|id="infoboxdetail"|{{#if:{{{def|}}}|{{{def}}}|不适用}}
</tr>
|-
<tr>
|id="infoboxsection"|移速
<td class="infoboxsection">基础防御</td>
|id="infoboxdetail"|{{#if:{{{spd|}}}|{{{spd}}}|不适用}}
<td class="infoboxdetail">{{#if:{{{def|}}}|{{{def}}}|不适用}}</td>
|-
</tr>
|id="infoboxsection"|给予经验
<tr>
|id="infoboxdetail"|{{#if:{{{exp|}}}|{{{exp}}}|不适用}}{{#if:{{{variations|}}}
<td class="infoboxsection">移速</td>
<td class="infoboxdetail">{{#if:{{{spd|}}}|{{{spd}}}|不适用}}</td>
</tr>
<tr>
<td class="infoboxsection">给予经验</td>
<td class="infoboxdetail">{{#if:{{{exp|}}}|{{{exp}}}|不适用}}</td>
</tr>
{{#if:{{{variations|}}}
| <nowiki/>
| <nowiki/>
  {{!}}-
<tr>
  {{!}}id="infoboxsection"{{!}}变种
<td class="infoboxsection">变种</td>
  {{!}}id="infoboxdetail"{{!}}{{{variations|}}}
<td class="infoboxdetail">{{{variations|}}}</td>
</tr>
}}
}}
|-
<tr>
|id="infoboxsection"|掉落物
<td class="infoboxsection">掉落物</td>
|id="infoboxdetail"|
<td class="infoboxdetail">
{{{drops|不适用}}}{{#if:{{{drops|}}}|<p>如果到达过矿井底部:</p>
{{{drops|不适用}}}{{#if:{{{drops|}}}|<p>如果到达过矿井底部:</p>
{{name|Diamond|alt=钻石|0.05%}}
{{name|Diamond|alt=钻石|0.05%}}
{{name|Prismatic Shard|alt=五彩碎片|0.05%}}|}}
{{name|Prismatic Shard|alt=五彩碎片|0.05%}}|}}</td>
|-
</tr>
|}</div>{{#if:{{{debug mode|}}}||[[Category:怪物]]}}{{InfoboxSEO}}</includeonly><noinclude>
</table></div>{{#if:{{{debug mode|}}}||[[Category:怪物]]}}{{InfoboxSEO}}</includeonly><noinclude>
==示例==
==示例==
{{Infobox monster
{{Infobox monster
第94行: 第96行:
|name = 飞蛇
|name = 飞蛇
}}
}}
{{Englishdoc}}</noinclude>
{{Documentation}}</noinclude>

2025年8月23日 (六) 16:32的版本

示例

飞蛇
Serpent
信息
生成地点 骷髅洞穴
生成层数 所有
可否杀死
检测范围 不适用
基础血量 150
基础伤害 23
基础防御 0
移速 2
给予经验 20
变种 皇家飞蛇
掉落物 炸弹(15%) 五彩碎片(0.1%) 兔子的脚(0.8%) 红叶卷心菜种子(0.2%) 香辣鳗鱼(6%) 虚空精华(99%) 虚空精华(15%)

如果到达过矿井底部:

钻石(0.05%)

五彩碎片(0.05%)
[ 查看 | 编辑 | 历史 | 刷新 ]文档页面

Description

To use this template, add the 模板:T template and fill in the appropriate fields. Fields left blank will not appear in articles. This infobox template uses Fandom's infobox syntax.

Syntax

{{Infobox monster
 | name         = Apophis
 | en           = Apophis
 | image        = Apophis.png
 | imagecaption = 
 | hp           = 12500
 | attack       = 120
 | defense      = 30
 | crit         = 
 | exp          = 
 | location     = [[Crimson Badlands]]
 | drop         = 
[[File:Void Shard.png|24px]] [[Void Shard]] (1)

[[File:Void Essence.png|24px]] Void Essence (24)

[[File:Spicy Eel.png|24px]] Spicy Eel (1)
}}

Sample output

Apophis
信息
生成地点 Crimson Badlands
生成层数 不适用
可否杀死
检测范围 不适用
基础血量 12500
基础伤害 不适用
基础防御 不适用
移速 不适用
给予经验 不适用
掉落物 不适用
{{Infobox monster
 | name         = Apophis
 | en           = Apophis
 | image        = Apophis.png
 | imagecaption = 
 | hp           = 12500
 | attack       = 120
 | defense      = 30
 | crit         = 
 | exp          = 
 | location     = [[Crimson Badlands]]
 | drop         = 
[[File:Void Shard.png|24px]] [[Void Shard]] (1)

[[File:Void Essence.png|24px]] Void Essence (24)

[[File:Spicy Eel.png|24px]] Spicy Eel (1)
}}
[ 查看 | 编辑 | 历史 | 刷新 ]上述文档的内容来自模板:Infobox monster/doc