「Template:Infobox fish」修訂間的差異
跳至導覽
跳至搜尋
Margotbean(對話 | 貢獻) |
Margotbean(對話 | 貢獻) (auto-calculate cm from inches) |
||
第50行: | 第50行: | ||
{{!}}id="infoboxdetail"{{!}}{{{behavior|}}} |}} | {{!}}id="infoboxdetail"{{!}}{{{behavior|}}} |}} | ||
|- | |- | ||
− | |id="infoboxsection"|大小: | + | |id="infoboxsection"|大小 (厘米): |
− | |id="infoboxdetail"|{{#if:{{{size|}}}|{{{size| | + | |id="infoboxdetail"|{{#if:{{#pos:{{{size|}}}|-}} |
+ | |{{#expr:{{#explode:{{{size|}}}|-|0}}*2.54 round 0}}-{{#expr:{{#explode:{{{size|}}}|-|-1}}*2.54 round 0}} | ||
+ | |{{#expr:{{{size|}}}*2.54 round 0}} | ||
+ | }} | ||
|- | |- | ||
|id="infoboxsection"|恢复效果: | |id="infoboxsection"|恢复效果: |
於 2018年10月20日 (六) 02:01 的修訂
有關此模板的詳細信息,請參閱英語語言文檔頁。
用法
可以通過在相關頁面上輸入以下內容來使用此模板。
{{Infobox fish}}
結果是...
Infobox fish | |
信息 | |
發現點: | 不適用 |
時間: | 不適用 |
季節: | 不適用 |
天氣: | 不適用 |
難度: | 不適用 |
大小(厘米): | 表達式錯誤:未預料的*操作符。 |
恢復效果: | Template:Edibility |
售價 |
基本售價: | 漁夫: (售價+25%) |
垂釣者: (售價+50%) |
錯誤:{{#seo:}} 必須至少包含一個有內容的屬性。