模板:Infobox fish:修订间差异
来自星露谷物语扩展百科
更多语言
更多操作
margin 修正 |
SummerFleur(留言 | 贡献) 模板重构 |
||
| 第25行: | 第25行: | ||
}}{{#switch:{{NAMESPACE}} | }}{{#switch:{{NAMESPACE}} | ||
|{{ns:User}}|{{ns:User talk}}= | |{{ns:User}}|{{ns:User talk}}= | ||
|#default={{#vardefine:item_id|{{ID|{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}}}}}<div | |#default={{#vardefine:item_id|{{ID|{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}}}}} | ||
<div class="infoboxborder"> | |||
<table class="infoboxtable {{#vardefineecho:infobox_count|{{#expr:{{#var:infobox_count|0}}+1}}}}"> | |||
<tr> | |||
<td colspan="2" class="infoboxheader {{#if: {{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}| infoboxheader-zh|}}">{{{name|{{PAGENAME}}}}}</td> | |||
</tr> | |||
{{#if: {{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}| | {{#if: {{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}| | ||
<tr> | <tr> | ||
<td colspan="2" class="infoboxheader infoboxheader-en">{{{eng|{{English|{{{name|{{PAGENAME}}}}}}}}}}</td> | |||
</tr> | </tr> | ||
| | | | ||
}} | }} | ||
<tr> | |||
<td colspan="2">[[File:{{{eng|Blank icon}}}.png|center]]</td> | |||
</tr> | |||
<tr> | |||
<td colspan="2" class="infoboxdetail">{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}}</td> | |||
</tr> | |||
{{#if:{{{source|}}}|< | <tr> | ||
<td colspan="2" class="infoboxsection">信息</td> | |||
</tr> | |||
{{#if:{{{source|}}}| | |||
}}{{#if:{{{location|}}} |< | <tr> | ||
<td class="infoboxsection">来源</td> | |||
<td class="infoboxdetail">{{{source|}}}</td> | |||
</tr> | |||
}}{{#if:{{{time|}}} |< | }}{{#if:{{{location|}}}| | ||
<tr> | |||
<td class="infoboxsection">位置</td> | |||
<td class="infoboxdetail">{{{location|}}}</td> | |||
</tr> | |||
}}{{#if:{{{time|}}}| | |||
<tr> | |||
<td class="infoboxsection">时间</td> | |||
<td class="infoboxdetail">{{#switch:{{lc:{{{time|}}}}} | |||
|随时|任意时间|任何|任意=全天 | |随时|任意时间|任何|任意=全天 | ||
|#default={{{time|}}} | |#default={{{time|}}} | ||
}} | }}</td> | ||
}}{{#if:{{{season|}}} |< | </tr> | ||
}}{{#if:{{{season|}}}| | |||
<tr> | |||
<td class="infoboxsection">季节</td> | |||
}}{{#if:{{{weather|}}} |< | <td class="infoboxdetail">{{#iferror: {{Season|{{{season}}}}} | {{{season|}}} | {{Season|{{{season}}}}} }}</td> | ||
</tr> | |||
}}{{#if:{{{weather|}}}| | |||
<tr> | |||
}}{{#if:{{{difficulty|}}} |< | <td class="infoboxsection">天气</td> | ||
<td class="infoboxdetail">{{#iferror: {{Weather inline|{{{weather|}}}}} | {{{weather|}}} | {{Weather inline|{{{weather|}}}}} }}</td> | |||
</tr> | |||
}}{{#if:{{{difficulty|}}}| | |||
}}{{#if:{{{behavior|}}} |< | <tr> | ||
<td class="infoboxsection">难度</td> | |||
<td class="infoboxdetail">{{{difficulty|}}}</td> | |||
</tr> | |||
}}{{#if:{{{behavior|}}}| | |||
<tr> | |||
<td class="infoboxsection">运动模式</td> | |||
<td class="infoboxdetail">{{#switch:{{lc:{{{behavior|}}}}} | |||
|dart |猛冲型 = [[鱼#运动模式|猛冲型]] | |dart |猛冲型 = [[鱼#运动模式|猛冲型]] | ||
|floater |漂浮型 = [[鱼#运动模式|漂浮型]] | |floater |漂浮型 = [[鱼#运动模式|漂浮型]] | ||
| 第76行: | 第88行: | ||
|sinker |下坠型 = [[鱼#运动模式|下坠型]] | |sinker |下坠型 = [[鱼#运动模式|下坠型]] | ||
|smooth |平滑型 = [[鱼#运动模式|平滑型]] | |smooth |平滑型 = [[鱼#运动模式|平滑型]] | ||
}} | }}</td> | ||
}}{{#if:{{{fl|}}}|< | </tr> | ||
}}{{#if:{{{fl|}}}| | |||
<tr> | |||
<td class="infoboxsection no-wrap">钓鱼技能等级要求</td> | |||
}}{{#if:{{{size|}}}|< | <td class="infoboxdetail">{{{fl|}}}</td> | ||
</tr> | |||
}}{{#if:{{{size|}}}| | |||
<tr> | |||
<td class="infoboxsection">长度(厘米)</td> | |||
<td class="infoboxdetail">{{#switch:{{uc:{{CONTENTLANG}}}} | |||
|EN = {{#replace:{{{size|}}}|-|–}} | |EN = {{#replace:{{{size|}}}|-|–}} | ||
|#default= {{#if:{{#pos:{{{size|}}}|-}} | |#default= {{#if:{{#pos:{{{size|}}}|-}} | ||
|{{#expr:{{#explode:{{{size|}}}|-|0}}*2.54 round 0}}~{{#expr:{{#explode:{{{size|}}}|-|-1}}*2.54 round 0}} | |{{#expr:{{#explode:{{{size|}}}|-|0}}*2.54 round 0}}~{{#expr:{{#explode:{{{size|}}}|-|-1}}*2.54 round 0}} | ||
|{{#expr:{{{size|}}}*2.54 round 0}} }} }} | |{{#expr:{{{size|}}}*2.54 round 0}} }} }}</td> | ||
}} | </tr> | ||
{{#if:{{{difficulty|}}} |< | }}{{#if:{{{difficulty|}}}| | ||
<tr> | |||
<td class="infoboxsection no-wrap">钓鱼经验值</td> | |||
<td class="infoboxdetail">{{#switch:{{lc:{{{eng|}}}}} | |||
|crimsonfish|angler|legend|glacierfish|mutant carp = {{#expr:5*(floor((0+1)*3+{{{difficulty|}}}/3))}} [[File:Silver Quality.png|14px|link=]] {{#expr:5*(floor((1+1)*3+{{{difficulty|}}}/3))}} [[File:Gold Quality.png|14px|link=]] {{#expr:5*(floor((2+1)*3+{{{difficulty|}}}/3))}} [[File:Iridium Quality.png|14px|link=]] {{#expr:5*floor((4+1)*3+{{{difficulty|}}}/3)}} | |crimsonfish|angler|legend|glacierfish|mutant carp = {{#expr:5*(floor((0+1)*3+{{{difficulty|}}}/3))}} [[File:Silver Quality.png|14px|link=]] {{#expr:5*(floor((1+1)*3+{{{difficulty|}}}/3))}} [[File:Gold Quality.png|14px|link=]] {{#expr:5*(floor((2+1)*3+{{{difficulty|}}}/3))}} [[File:Iridium Quality.png|14px|link=]] {{#expr:5*floor((4+1)*3+{{{difficulty|}}}/3)}} | ||
|#default={{#expr:floor((0+1)*3+{{{difficulty|}}}/3)}} [[File:Silver Quality.png|14px|link=]] {{#expr:floor((1+1)*3+{{{difficulty|}}}/3)}} [[File:Gold Quality.png|14px|link=]] {{#expr:floor((2+1)*3+{{{difficulty|}}}/3)}} [[File:Iridium Quality.png|14px|link=]] {{#expr:floor((4+1)*3+{{{difficulty|}}}/3)}} }} | |#default={{#expr:floor((0+1)*3+{{{difficulty|}}}/3)}} [[File:Silver Quality.png|14px|link=]] {{#expr:floor((1+1)*3+{{{difficulty|}}}/3)}} [[File:Gold Quality.png|14px|link=]] {{#expr:floor((2+1)*3+{{{difficulty|}}}/3)}} [[File:Iridium Quality.png|14px|link=]] {{#expr:floor((4+1)*3+{{{difficulty|}}}/3)}} }}</td> | ||
}}{{#if:{{{xp|}}} |< | </tr> | ||
{{ | }}{{#if:{{{xp|}}}| | ||
<tr> | |||
<td class="infoboxsection">经验值</td> | |||
}}{{#if:{{{edibility|}}} | < | <td class="infoboxdetail">{{#iferror: {{Xp|{{{xp|}}}|fish}} | {{{xp|}}} | {{Xp|{{{xp|}}}|fish}} }}</td> | ||
</tr> | |||
}}{{#if:{{{edibility|}}}| | |||
<tr> | |||
{{#switch:{{lc:{{{edibility|}}}}} | |||
| -300 | ''inedible'' | inedible | 不可食用 | ''不可食用'' = | |||
<td class="infoboxsection">能量</td> | |||
<td class="infoboxdetail">不可食用</td> | |||
|#default = | |||
<td class="infoboxsection">[[能量]] / [[生命值]]</td> | |||
<td class="infoboxdetail">{{EdibilityGrid|{{{eng|}}}|{{{edibility|}}}|dsv=false}}</td> | |||
}} | |||
</tr> | |||
}}{{#ifeq:{{{professions|}}} | false | | |||
<tr> | |||
<td class="infoboxsection">售出价格</td> | |||
|<!-- professions != false -->< | <td class="infoboxdetail">{{#switch: {{lc:{{{quality|}}}}} | ||
|normal|false = {{Price|{{{price|}}}}} | |||
|#default = {{Qualityprice|{{{eng|Blank icon}}}|{{{price|}}}|dsv=false}} | |||
}}</td> | |||
</tr> | |||
|<!-- professions != false --> | |||
<tr> | |||
<td colspan="2"> | |||
<table style="width: 101%; margin-top: -2px; margin-left: -2px;"> | |||
<tr> | |||
<td class="infoboxsection" colspan="3">售出价格</td> | |||
</tr> | |||
<tr> | |||
<td class="infoboxsection">基础售价</td> | |||
<td class="infoboxsection">[[File:Fisher.png|24px|link=]] [[技能#钓鱼|<span style="color: white;">渔夫</span>]](+25%)</td> | |||
<td class="infoboxsection">[[File:Angler Icon.png|24px|link=]] [[技能#钓鱼|<span style="color: white;">垂钓者</span>]](+50%)</td> | |||
</tr> | |||
<tr> | |||
{{#switch: {{lc:{{{quality|}}}}} | |||
|normal|false = | |||
<td>{{Qualityprice|{{{eng|Blank icon}}}|{{{price|0}}}|quality=normal|dsv=false}}</td> | |||
<td>{{Qualityprice|{{{eng|Blank icon}}}|{{{price|0}}}|quality=normal|pm=1.25|dsv=false}}</td> | |||
<td>{{Qualityprice|{{{eng|Blank icon}}}|{{{price|0}}}|quality=normal|pm=1.5|dsv=false}}</td> | |||
|normal,silver|0,1= | |||
<td>{{Qualityprice|{{{eng|Blank icon}}}|{{{price|0}}}|hide=gold,iridium|dsv=false}}</td> | |||
<td>{{Qualityprice|{{{eng|Blank icon}}}|{{{price|0}}}|hide=gold,iridium|pm=1.25|dsv=false}}</td> | |||
<td>{{Qualityprice|{{{eng|Blank icon}}}|{{{price|0}}}|hide=gold,iridium|pm=1.5|dsv=false}}</td> | |||
|#default = {{#switch:{{lc:{{NAMESPACE}}}} | template = |#default= | |||
<td>{{Qualityprice|{{{eng|Blank icon}}}|{{{price|0}}}|dsv=false}}</td> | |||
<td>{{Qualityprice|{{{eng|Blank icon}}}|{{{price|0}}}|pm=1.25|dsv=false}}</td> | |||
<td>{{Qualityprice|{{{eng|Blank icon}}}|{{{price|0}}}|pm=1.5|dsv=false}}</td> | |||
}} }} | |||
</tr> | |||
</table> | </table> | ||
</td> | |||
</tr> | |||
}} | |||
<tr> | |||
<td colspan="2"> | |||
<table style="width: 101%; margin: -2px;" class="mw-collapsible mw-collapsed"> | <table style="width: 101%; margin: -2px;" class="mw-collapsible mw-collapsed"> | ||
<tr> | |||
<td class="infoboxsection" colspan="3"><span style="float: left; width: 2.78em; text-align: left;"> </span>熏鱼售出价格</td> | |||
</tr> | |||
<tr> | |||
<td class="infoboxsection">基础售价</td> | |||
<td class="infoboxsection">[[File:Fisher.png|24px|link=]] [[技能#钓鱼|<span style="color: white;">渔夫</span>]](+25%)</td> | |||
<td class="infoboxsection">[[File:Angler Icon.png|24px|link=]] [[技能#钓鱼|<span style="color: white;">垂钓者</span>]](+50%)</td> | |||
</tr> | |||
<tr> | |||
{{#switch: {{lc:{{{quality|}}}}} | |||
|normal|false = | |||
<td>{{Qualityprice|Smoked {{{eng|Fish}}}|{{{price|0}}}|quality=normal|dsv=false}}</td> | |||
<td>{{Qualityprice|Smoked {{{eng|Fish}}}|{{{price|0}}}|quality=normal|pm=1.25|dsv=false}}</td> | |||
<td>{{Qualityprice|Smoked {{{eng|Fish}}}|{{{price|0}}}|quality=normal|pm=1.5|dsv=false}}</td> | |||
|normal,silver|0,1= | |||
<td>{{Qualityprice|Smoked {{{eng|Fish}}}|{{{price|0}}}|hide=gold,iridium|dsv=false}}</td> | |||
<td>{{Qualityprice|Smoked {{{eng|Fish}}}|{{{price|0}}}|hide=gold,iridium|pm=1.25|dsv=false}}</td> | |||
<td>{{Qualityprice|Smoked {{{eng|Fish}}}|{{{price|0}}}|hide=gold,iridium|pm=1.5|dsv=false}}</td> | |||
|#default = {{#switch:{{lc:{{NAMESPACE}}}} | template = |#default= | |||
<td>{{Qualityprice|Smoked {{{eng|Fish}}}|{{{price|0}}}|dsv=false}}</td> | |||
<td>{{Qualityprice|Smoked {{{eng|Fish}}}|{{{price|0}}}|pm=1.25|dsv=false}}</td> | |||
<td>{{Qualityprice|Smoked {{{eng|Fish}}}|{{{price|0}}}|pm=1.5|dsv=false}}</td> | |||
}} }} | |||
</tr> | |||
<tr> | |||
<td class="infoboxsection">[[File:Artisan.png|24px|link=]] [[技能#耕种|工匠]](+40%)</td> | |||
<td class="infoboxsection">[[File:Fisher.png|24px|link=]] + [[File:Artisan.png|24px|link=]](+75%)</td> | |||
<td class="infoboxsection">[[File:Angler Icon.png|24px|link=]] + [[File:Artisan.png|24px|link=]](+110%)</td> | |||
</tr> | |||
<tr> | |||
{{#switch: {{lc:{{{quality|}}}}} | |||
|normal|false = | |||
<td>{{Qualityprice|Smoked {{{eng|Fish}}}|{{{price|0}}}|quality=normal|pm=1.4|dsv=false}}</td> | |||
<td>{{Qualityprice|Smoked {{{eng|Fish}}}|{{{price|0}}}|quality=normal|pm=1.75|dsv=false}}</td> | |||
<td>{{Qualityprice|Smoked {{{eng|Fish}}}|{{{price|0}}}|quality=normal|pm=2.1|dsv=false}}</td> | |||
|normal,silver|0,1= | |||
<td>{{Qualityprice|Smoked {{{eng|Fish}}}|{{{price|0}}}|hide=gold,iridium|pm=1.4|dsv=false}}</td> | |||
<td>{{Qualityprice|Smoked {{{eng|Fish}}}|{{{price|0}}}|hide=gold,iridium|pm=1.75|dsv=false}}</td> | |||
<td>{{Qualityprice|Smoked {{{eng|Fish}}}|{{{price|0}}}|hide=gold,iridium|pm=2.1|dsv=false}}</td> | |||
|#default = {{#switch:{{lc:{{NAMESPACE}}}} | template = |#default= | |||
<td>{{Qualityprice|Smoked {{{eng|Fish}}}|{{{price|0}}}|pm=1.4|dsv=false}}</td> | |||
<td>{{Qualityprice|Smoked {{{eng|Fish}}}|{{{price|0}}}|pm=1.75|dsv=false}}</td> | |||
<td>{{Qualityprice|Smoked {{{eng|Fish}}}|{{{price|0}}}|pm=2.1|dsv=false}}</td> | |||
}} }} | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
{{#if:{{{roe|}}}| | |||
<tr> | |||
<td colspan="2"> | |||
<table style="width: 101%; margin-top: -2px; margin-left: -2px;"> | |||
<tr> | |||
<td class="infoboxsection" colspan="3">制成品基础售价</td> | |||
</tr> | |||
<tr> | |||
<td class="infoboxsection">鱼籽</td> | |||
<td class="infoboxsection">{{#ifeq:{{{eng|}}}|Sturgeon|鱼籽酱|腌鱼籽}}</td> | |||
<td class="infoboxsection no-wrap" style="padding: 2px 0 0 6px;">[[File:Artisan.png|24px|link=]] {{#ifeq:{{{eng|}}}|Sturgeon|鱼籽酱|腌鱼籽}}(+40%)</td> | |||
</tr> | |||
<tr> | |||
<td style="vertical-align: top;">{{Qualityprice|{{{roe|}}} Roe|{{{price|}}}|quality=normal|dsv=false}}</td> | |||
<td style="vertical-align: top;">{{#switch:{{{eng|}}} | |||
|Sturgeon = {{Qualityprice|Caviar|500|quality=normal|dsv=false}} | |||
|#default = {{Qualityprice|{{{roe|}}} Aged Roe|{{{price|}}}|quality=normal|dsv=false}} }}</td> | |||
<td style="vertical-align: top;">{{#switch:{{{eng|}}} | |||
|Sturgeon = {{Qualityprice|Caviar|500|quality=normal|pm=1.4|dsv=false}} | |||
|#default = {{Qualityprice|{{{roe|}}} Aged Roe|{{{price|}}}|quality=normal|pm=1.4|dsv=false}} }}</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
}}{{#if: {{#var:item_id}}| | |||
<tr> | |||
<td colspan="2" class="infoboxsection">高级</td> | |||
</tr> | |||
<tr> | |||
<td class="infoboxsection">物品编号</td> | |||
<td class="infoboxdetail consolas">{{#var:item_id}}</td> | |||
</tr> | |||
| | | | ||
}} | }} | ||
</table> | |||
</div>}}{{InfoboxSEO}}{{InfoboxCategory}}</includeonly><noinclude>{{Englishdoc}}{{Clear}} | |||
==示例== | ==示例== | ||
{{Infobox fish | {{Infobox fish | ||
2025年6月28日 (六) 09:29的版本
示例
| 大嘴鲈鱼 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Largemouth Bass | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 信息 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 位置 | 深山湖泊 • 荒野农场 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 季节 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 时间 | 上午6:00至晚上7:00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 天气 | 任意天气 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 难度 | 50 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 运动模式 | 混合型 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 长度(厘米) | 28~79 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 钓鱼经验值 | 19 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 能量 / 生命值 |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 高级 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 物品编号 | (O)136 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
