Änderungen

Wechseln zu: Navigation, Suche

Vorlage:Recipes/extract/Dokumentation

1.103 Bytes hinzugefügt, vor 1 Jahr
Aktualisiert.
{{übersetzung}}
UsingUse this template to extract info from centaincertain 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 (<code>result</code>, <code>ingredentingredient</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> .
then, use following parameters for output format:
 
; mode = compact/result/ingredients/station/ingredients-buy/ingredients-sell
Output mode. If not specitiedspecified, 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
SeperatorSeparator 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>.
 
; withresult and nostation and noversion
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
| <code><nowiki>{{recipes/extract|result=Lunar Hook|mode=station}}</nowiki></code>
| {{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}}}}
 
|}
 
| <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}}
|-
| <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}}
|}
 
8.043

Bearbeitungen