Шаблон:Recipes/extract/doc

Материал из Infernum Mod Wiki
Перейти к навигации Перейти к поиску

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/ingredients/station/stationraw

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. 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]:.

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

Код Результат
{{recipes/extract|result=Ancient Treasure Chest}} Сундук + 2 Гравий бездны + 5 Кислотная древесина  @  Железная наковальня / Свинцовая наковальня
{{recipes/extract|result=Ancient Treasure Chest|withresult=y}} Сундук + 2 Гравий бездны + 5 Кислотная древесина = Древний сундук с сокровищами  @  Железная наковальня / Свинцовая наковальня
{{recipes/extract|result=Ancient Treasure Chest|nostation=y}} Сундук + 2 Гравий бездны + 5 Кислотная древесина
{{recipes/extract|result=Ancient Treasure Chest|withresult=y|nostation=y}} Сундук + 2 Гравий бездны + 5 Кислотная древесина = Древний сундук с сокровищами
{{recipes/extract|result=Ancient Treasure Chest|mode=result}} Ancient Treasure ChestДревний сундук с сокровищами
{{recipes/extract|result=Ancient Treasure Chest|mode=ingredients}}
{{recipes/extract|result=Ancient Treasure Chest|mode=station}} Iron AnvilЖелезная наковальня
или
Lead AnvilСвинцовая наковальня
{{recipes/extract|result=Ancient Treasure Chest|mode=stationraw}} Iron Anvil
{{recipes/extract|result=Anechoic Coating|sep=<br/>}} Сундук + 2 Гравий бездны + 5 Кислотная древесина  @  Железная наковальня / Свинцовая наковальня

Multiple recipes

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

Код Результат
{{recipes/extract|result=Sparkling Mollusk Can}} Tin Can + Окунь / Tuna / Red Snapper / Форель  @  Котелок / Котёл (Ванилла)
или
3 Осколок призмы + 3 Морской камень(Вручную)
{{recipes/extract|result=Sparkling Mollusk Can|withresult=y}} Tin Can + Окунь / Tuna / Red Snapper / Форель = Блестящая банка моллюсков  @  Котелок / Котёл (Ванилла)
или
3 Осколок призмы + 3 Морской камень = Блестящая банка моллюсков(Вручную)
{{recipes/extract|result=Sparkling Mollusk Can|mode=result}} Sparkling Mollusk CanБлестящая банка моллюсков
{{recipes/extract|result=Sparkling Mollusk Can|mode=ingredients}}
{{recipes/extract|result=Sparkling Mollusk Can|mode=station}} Cooking PotКотелок
или
CauldronКотёл (Ванилла)
{{recipes/extract|result=Sparkling Mollusk Can|mode=ingredients|sep=--or--}}
{{recipes/extract|result=Sparkling Mollusk Can|nostation=y|sep=&#32;/&#32;}} Tin Can + Окунь / Tuna / Red Snapper / Форель / 3 Осколок призмы + 3 Морской камень
<table class="terraria lined"><tr><td rowspan="4" style="border:0">{{recipes/extract|result=Sparkling Mollusk Can|mode=result}}</td>
<td>{{recipes/extract|result=Sparkling Mollusk Can|withresult=y|sep=</td></tr><tr><td>}}</td></tr></table>
Sparkling Mollusk CanБлестящая банка моллюсков Tin Can + Окунь / Tuna / Red Snapper / Форель = Блестящая банка моллюсков  @  Котелок / Котёл (Ванилла)
3 Осколок призмы + 3 Морской камень = Блестящая банка моллюсков(Вручную)