Diese Seite ist nicht oder unvollständig übersetzt. | |
Hilf mit, indem du den Text übersetzt und anschließend diesen Hinweis entfernst. Dies entfernt diese Seite auch aus der Liste von Seiten mit unzureichender Übersetzung. |
Using this template to extract info from centain crafting recipe(s).
Verwendung
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
, ingredent
...) 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
Output mode. If not specitied, it will be compact
by default. See examples below.
- sep or seperator
Seperator 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
Only valid when mode=compact
. By default, it will output as [ingredients]@[station], if withresult=y
, will output as [result]=[ingredients]@[station], if nostation=y
, there wil be no @[station].
- 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.
Beispiele
Code | Result |
---|---|
{{recipes/extract|result=Lunar Hook}}
|
Lua-Fehler in Modul:Recipes, Zeile 608: attempt to index local 'formatString' (a nil value) |
{{recipes/extract|result=Lunar Hook|withresult=y}}
|
Lua-Fehler in Modul:Recipes, Zeile 608: attempt to index local 'formatString' (a nil value) |
{{recipes/extract|result=Lunar Hook|nostation=y}}
|
6 + 6 + 6 + 6 |
{{recipes/extract|result=Lunar Hook|mode=result}}
|
Mondhaken |
{{recipes/extract|result=Lunar Hook|mode=ingredients}}
|
|
{{recipes/extract|result=Lunar Hook|mode=station}}
|
Uralter Manipulator |
Platforms exclusive:
Code | Result |
---|---|
{{recipes/extract|result=Flaming Arrow|versions={{eversions|raw=y|1.3.0.1}}|withresult=y}}
|
|
{{recipes/extract|result=Flaming Arrow|versions={{eversions|raw=y|1.3.0.1|invert=y}}|withresult=y}}
|
Lua-Fehler in Modul:Recipes, Zeile 1073: attempt to index local 'formatString' (a nil value) |
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}}
|
Lua-Fehler in Modul:Recipes, Zeile 608: attempt to index local 'formatString' (a nil value) | ||
{{recipes/extract|result=Sashimi|withresult=y}}
|
Lua-Fehler in Modul:Recipes, Zeile 608: attempt to index local 'formatString' (a nil value) | ||
{{recipes/extract|result=Sashimi|mode=result}}
|
Sashimi | ||
{{recipes/extract|result=Sashimi|mode=ingredients}}
|
Lua-Fehler in Modul:Recipes, Zeile 1096: attempt to index local 'formatString' (a nil value) | ||
{{recipes/extract|result=Sashimi|mode=station}}
|
Werkbank | ||
{{recipes/extract|result=Sashimi|mode=ingredients|sep=--or--}}
|
Lua-Fehler in Modul:Recipes, Zeile 1096: attempt to index local 'formatString' (a nil value) | ||
{{recipes/extract|result=Sashimi|nostation=y|sep= / }}
|
Lua-Fehler in Modul:Recipes, Zeile 1073: attempt to index local 'formatString' (a nil value) | ||
<table class="terraria lined"><tr><td rowspan="4" 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> |
|