Terraria Wiki
Terraria Wiki
K (Kleinere Standardisierung. // Minor standardization.)
(Aktualisiert.)
 
Zeile 1: Zeile 1:
 
{{übersetzung}}
 
{{übersetzung}}
Using this template to extract info from centain crafting recipe(s).
+
Use this template to extract info from certain crafting recipe(s).
   
 
== Verwendung ==
 
== 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 (<code>result</code>, <code>ingredent</code> ...) to query "single" result. See {{tl|recipes}} for details of all query constraint paramters.
+
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 (<code>result</code>, <code>ingredient</code> ...) to query "single" result. See {{tl|recipes}} for details of all query constraint paramters.
   
 
If query result is more than one row, this template will only return first row for <code>mode=station</code> or <code>mode=result</code>, and all rows for <code>mode=compact</code> or <code>mode=ingredients</code> .
 
If query result is more than one row, this template will only return first row for <code>mode=station</code> or <code>mode=result</code>, and all rows for <code>mode=compact</code> or <code>mode=ingredients</code> .
Zeile 9: Zeile 9:
 
then, use following parameters for output format:
 
then, use following parameters for output format:
   
; mode = compact/result/ingredients/station
+
; mode = compact/result/ingredients/station/ingredients-buy/ingredients-sell
Output mode. If not specitied, it will be <code>compact</code> by default. See examples below.
+
Output mode. If not specified, it will be <code>compact</code> 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
 
; sep or seperator
Seperator between multiple ingredients lists. Only valid when <code>mode=compact</code> or <code>mode=ingredients</code>. Default is <code><nowiki><br/>'''or'''<br/></nowiki></code> for <code>mode=compact</code> or <code><nowiki><br/>'''or'''<br/></nowiki></code> for <code>mode=ingredients</code>.
+
Separator between multiple ingredients lists. Only valid when <code>mode=compact</code> or <code>mode=ingredients</code>. Default is <code><nowiki><br/>'''or'''<br/></nowiki></code> for <code>mode=compact</code> or <code><nowiki><br/>'''or'''<br/></nowiki></code> for <code>mode=ingredients</code>.
 
'''Note:''' single ingredients list will be wrapped in &lt;div&gt; when <code>|mode=ingredients</code> and in &lt;span&gt; when <code>|mode=compact</code>.
 
'''Note:''' single ingredients list will be wrapped in &lt;div&gt; when <code>|mode=ingredients</code> and in &lt;span&gt; when <code>|mode=compact</code>.
   
; withresult and nostation
+
; withresult and nostation and noversion
Only valid when <code>mode=compact</code>. By default, it will output as [ingredients]@[station], if <code>withresult=y</code>, will output as [result]=[ingredients]@[station], if <code>nostation=y</code>, there wil be no @[station].
+
Only valid when <code>mode=compact</code>. By default, it will output as [version]: [ingredients]@[station], if <code>withresult=y</code>, will output as [result]=[ingredients]@[station], if <code>nostation=y</code>, there wil be no @[station], if <code>nostation=y</code>, there will be no [version]:.
   
 
; showresultid=y and link=no
 
; showresultid=y and link=no
Zeile 44: Zeile 44:
 
| <code><nowiki>{{recipes/extract|result=Lunar Hook|mode=station}}</nowiki></code>
 
| <code><nowiki>{{recipes/extract|result=Lunar Hook|mode=station}}</nowiki></code>
 
| {{recipes/extract|result=Lunar Hook|mode=station}}
 
| {{recipes/extract|result=Lunar Hook|mode=station}}
  +
|-
  +
| <code><nowiki>{{recipes/extract|result=Campfire|sep=<br/>}}</nowiki></code>
  +
| {{recipes/extract|result=Campfire|sep=<br/>}}
  +
|-
  +
| <code><nowiki>{{recipes/extract|result=Lunar Hook|mode=ingredients-sell}}</nowiki></code>
  +
| {{recipes/extract|result=Lunar Hook|mode=ingredients-sell}}
  +
|-
  +
| <code><nowiki>{{coin|{{coin|{{recipes/extract|result=Lunar Hook|mode=ingredients-sell}}}}</nowiki></code>
  +
| {{coin|{{coin|{{recipes/extract|result=Lunar Hook|mode=ingredients-sell}}}}
  +
 
|}
 
|}
   
Zeile 57: Zeile 67:
 
| <code><nowiki>{{recipes/extract|result=Flaming Arrow|versions={{eversions|raw=y|1.3.0.1|invert=y}}|withresult=y}}</nowiki></code>
 
| <code><nowiki>{{recipes/extract|result=Flaming Arrow|versions={{eversions|raw=y|1.3.0.1|invert=y}}|withresult=y}}</nowiki></code>
 
| {{recipes/extract|result=Flaming Arrow|versions={{eversions|raw=y|1.3.0.1|invert=y}}|withresult=y}}
 
| {{recipes/extract|result=Flaming Arrow|versions={{eversions|raw=y|1.3.0.1|invert=y}}|withresult=y}}
  +
|-
  +
| <code><nowiki>{{recipes/extract|result=Flaming Arrow|versions={{eversions|raw=y|1.3.0.1|invert=y}}|withresult=y|noversion=y}}</nowiki></code>
  +
| {{recipes/extract|result=Flaming Arrow|versions={{eversions|raw=y|1.3.0.1|invert=y}}|withresult=y|noversion=y}}
 
|}
 
|}
   

Aktuelle Version vom 19. August 2019, 00:20 Uhr

Important 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.

Use this template to extract info from certain 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, 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/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. 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 [result]=[ingredients]@[station], if nostation=y, there wil be no @[station], if nostation=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.

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 Nebula-Fragment + 6 Sonnenfragment + 6 Sternenstaubfragment + 6 Vortex-Fragment
{{recipes/extract|result=Lunar Hook|mode=result}} MondhakenMondhaken
{{recipes/extract|result=Lunar Hook|mode=ingredients}}
{{recipes/extract|result=Lunar Hook|mode=station}} Uralter ManipulatorUralter Manipulator
{{recipes/extract|result=Campfire|sep=<br/>}} Lua-Fehler in Modul:Recipes, Zeile 1073: attempt to index local 'formatString' (a nil value)
{{recipes/extract|result=Lunar Hook|mode=ingredients-sell}} 48000
{{coin|{{coin|{{recipes/extract|result=Lunar Hook|mode=ingredients-sell}}}} 480

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)
{{recipes/extract|result=Flaming Arrow|versions={{eversions|raw=y|1.3.0.1|invert=y}}|withresult=y|noversion=y}} 5 Holzpfeil + Fackel

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}} SashimiSashimi
{{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}} WerkbankWerkbank
{{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=&#32;/&#32;}} 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>
SashimiSashimi Lua-Fehler in Modul:Recipes, Zeile 608: attempt to index local 'formatString' (a nil value)