模板:Recipes/extract

出自Terraria Wiki
跳至導覽 跳至搜尋
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
此模板使用了 Lua。
此模板使用了用 Lua 程式語言編寫的 模塊:Recipes。要了解 Lua 的更多信息,參見 en:Terraria Wiki:Lua
Template-info.svg 文檔 以下文檔來自Template:Recipes/extract/doc。(編輯 | 歷史

Use this template to extract info from certain crafting recipe(s).

Usage

This template is designed for extracting info from recipe(s) for "single result item"(however can be multiple recipes), so you need to use query constraint paramters (result, ingredient ...) to query "single" result. See {{recipes}} for details of all query constraint paramters.

If query result is more than one row, this template will only return first row for mode=station or mode=result, and all rows for mode=compact or mode=ingredients .

then, use following parameters for output format:

mode = compact/result/resultamount/ingredients/station/ingredients-buy/ingredients-sell

Output mode. If not specified, it will be compact by default. See examples below. NOTE: for ingredients-buy/ingredients-sell, you should make sure there is only 1 result recipe and no alternative crafting ingredient in ingredients list. For ingredients-buy, you should make sure all ingredients are actually buyable.

sep or seperator

Separator between multiple ingredients lists. Only valid when mode=compact or mode=ingredients. Default is <br/>'''or'''<br/> for mode=compact or <br/>'''or'''<br/> for mode=ingredients. If value is null or nil, there will be no seperator. Note: single ingredients list will be wrapped in <div> when |mode=ingredients and in <span> when |mode=compact.

withresult and nostation and noversion

Only valid when mode=compact. By default, it will output as [version]: [ingredients]@[station], if withresult=y, will output as [ingredients]@[station]=[result], if nostation=y, there wil be no @[station], if noversion=y, there will be no [version]:.

noversion

Only valid when mode=ingredients. If noversion=y, there will be no version icons before ingredients list.

nonote

Only valid when mode=compact or mode=result. If nonote=y, there will be no result note text after result item.

noamount

Only valid when mode=result. If noamount=y, there will be no result amount after result item.

showresultid=y and link=no

Only valid when mode=result. result item will show their internal item ID (if available), and/or have no link, respectively.

Examples

Code Result
{{recipes/extract|result=Lunar Hook}} 6 星雲碎片 + 6 日耀碎片 + 6 星塵碎片 + 6 星旋碎片 ( @ 遠古操縱機 )
{{recipes/extract|result=Lunar Hook|withresult=y}} 6 星雲碎片 + 6 日耀碎片 + 6 星塵碎片 + 6 星旋碎片 = 月鉤 ( @ 遠古操縱機 )
{{recipes/extract|result=Lunar Hook|nostation=y}} 6 星雲碎片 + 6 日耀碎片 + 6 星塵碎片 + 6 星旋碎片
{{recipes/extract|result=Lunar Hook|withresult=y|nostation=y}} 6 星雲碎片 + 6 日耀碎片 + 6 星塵碎片 + 6 星旋碎片 = 月鉤
{{recipes/extract|result=Lunar Hook|mode=result}} 月鉤月鉤(電腦版、主機版、和移動版)
{{recipes/extract|result=Lunar Hook|mode=ingredients}}
{{recipes/extract|result=Lunar Hook|mode=station}} 遠古操縱機遠古操縱機(電腦版、主機版、和移動版)
{{recipes/extract|result=Campfire|sep=<br/>}} 電腦版主機版移動版:10 任何木材 + 5 火把
前代主機版任天堂3DS版:20 任何木材 + 5 火把
{{recipes/extract|result=Lunar Hook|mode=ingredients-sell}} 48000
{{coin|{{recipes/extract|result=Lunar Hook|mode=ingredients-sell}}}} 4 GC80 SC

With and without full parameter:

Code Result
{{recipes/extract|result=Optic Staff|full=y}} 1 黑晶狀體 + 2 晶狀體 + 12 神聖錠 + 20 視域之魂 ( @ 秘銀砧 / 山銅砧 )
{{recipes/extract|result=Optic Staff}} 黑晶狀體 + 2 晶狀體 + 12 神聖錠 + 20 視域之魂 ( @ 秘銀砧 / 山銅砧 )

Platforms exclusive:

Code Result
{{recipes/extract|result=Flaming Arrow|versions={{eversions|raw=y|1.3.0.1}}|withresult=y}} 電腦版主機版移動版:10 木箭 + 火把 = 10 烈焰箭
{{recipes/extract|result=Flaming Arrow|versions={{eversions|raw=y|1.3.0.1|invert=y}}|withresult=y}} 前代主機版任天堂3DS版:5 木箭 + 火把 = 5 烈焰箭
{{recipes/extract|result=Flaming Arrow|versions={{eversions|raw=y|1.3.0.1|invert=y}}|withresult=y|noversion=y}} 5 木箭 + 火把 = 5 烈焰箭

Result note:

Code Result
{{recipes/extract|result=Heavenforge Brick|withresult=y}} 夜明磚 = 天熔磚(在滿月 size=16px 期間) ( @ 微光嬗變 )

4 天熔磚牆 = 天熔磚 ( @ 工作檯 )
{{recipes/extract|result=Heavenforge Brick|withresult=y|nonote=y}} 夜明磚 = 天熔磚 ( @ 微光嬗變 )

4 天熔磚牆 = 天熔磚 ( @ 工作檯 )
{{recipes/extract|result=Heavenforge Brick|mode=result}} 天熔磚天熔磚(電腦版、主機版、和移動版)(在滿月 size=16px 期間)
{{recipes/extract|result=Heavenforge Brick|mode=result|nonote=y}} 天熔磚天熔磚(電腦版、主機版、和移動版)

Multiple recipes: Note: single ingredients list will be wrapped in <div> when |mode=ingredients and in <span> when |mode=compact.

Code Result
{{recipes/extract|result=Sashimi}} 金槍魚 ( @ 工作檯 )

三文魚 ( @ 工作檯 )

紅鯛魚 ( @ 工作檯 )

偏口魚 ( @ 工作檯 )

前代主機版任天堂3DS版鱒魚 ( @ 工作檯 )
{{recipes/extract|result=Sashimi|withresult=y}} 金槍魚 = 生魚片 ( @ 工作檯 )

三文魚 = 生魚片 ( @ 工作檯 )

紅鯛魚 = 生魚片 ( @ 工作檯 )

偏口魚 = 生魚片 ( @ 工作檯 )

前代主機版任天堂3DS版鱒魚 = 生魚片 ( @ 工作檯 )
{{recipes/extract|result=Sashimi|mode=result}} 生魚片生魚片
{{recipes/extract|result=Sashimi|mode=ingredients}}
  • 偏口魚偏口魚(電腦版、主機版、和移動版)
前代主機版任天堂3DS版
{{recipes/extract|result=Sashimi|mode=station}} 工作檯工作檯
{{recipes/extract|result=Sashimi|mode=ingredients|sep=--or--}}
--or----or----or--
  • 偏口魚偏口魚(電腦版、主機版、和移動版)
--or--
前代主機版任天堂3DS版
{{recipes/extract|result=Sashimi|nostation=y|sep=&#32;/&#32;}} 金槍魚 / 三文魚 / 紅鯛魚 / 偏口魚 / 前代主機版任天堂3DS版鱒魚
<table class="terraria lined"><tr><td rowspan="5" style="border:0">{{recipes/extract|result=Sashimi|mode=result}}</td>
<td>{{recipes/extract|result=Sashimi|withresult=y|sep=</td></tr><tr><td>}}</td></tr></table>
生魚片生魚片 金槍魚 = 生魚片 ( @ 工作檯 )
三文魚 = 生魚片 ( @ 工作檯 )
紅鯛魚 = 生魚片 ( @ 工作檯 )
偏口魚 = 生魚片 ( @ 工作檯 )
前代主機版任天堂3DS版鱒魚 = 生魚片 ( @ 工作檯 )