「Template:Infobox fish」修訂間的差異

出自Stardew Valley Wiki
跳至導覽 跳至搜尋
(use templates qualityprice & edibilitygrid)
(未顯示由 2 位使用者於中間所作的 3 次修訂)
行 16: 行 16:
 
}}{{#if:{{{location|}}} |<nowiki />
 
}}{{#if:{{{location|}}} |<nowiki />
 
   {{!}}-
 
   {{!}}-
   {{!}} id="infoboxsection" {{!}}  觅处
+
   {{!}} id="infoboxsection" {{!}}  位置
 
   {{!}} id="infoboxdetail"  {{!}} {{{location|}}}
 
   {{!}} id="infoboxdetail"  {{!}} {{{location|}}}
 
}}{{#if:{{{time|}}} |<nowiki />
 
}}{{#if:{{{time|}}} |<nowiki />
行 50: 行 50:
 
}}{{#if:{{{size|}}}|<nowiki />
 
}}{{#if:{{{size|}}}|<nowiki />
 
   {{!}}-
 
   {{!}}-
   {{!}} id="infoboxsection" {{!}} 长度( 英寸
+
   {{!}} id="infoboxsection" {{!}} 长度( 厘米
 
   {{!}} id="infoboxdetail"  {{!}} {{#switch:{{uc:{{CONTENTLANG}}}}
 
   {{!}} id="infoboxdetail"  {{!}} {{#switch:{{uc:{{CONTENTLANG}}}}
     |EN = {{{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}} }} }}
 
}}
 
}}

於 2023年4月11日 (二) 21:12 的修訂

有關此模板的詳細信息,請參閱英語語言文檔頁

用法

可以通過在相關頁面上輸入以下內容來使用此模板。

{{Infobox fish}}

結果是...

Infobox fish
Blank icon.png
信息

售出價格
基礎售價 Fisher.png 漁夫(+25%) Angler Icon.png 垂釣者(+50%)