Vorlage:Recipes/extract/Dokumentation: Unterschied zwischen den Versionen
(Importiert aus en:Template:Recipes/extract/doc. // Imported from en:Template:Recipes/extract/doc.) |
Ryebot (Diskussion | Beiträge) K (Kleinere Standardisierung. // Minor standardization.) |
||
Zeile 2: | Zeile 2: | ||
Using this template to extract info from centain crafting recipe(s). |
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 (<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>ingredent</code> ...) to query "single" result. See {{tl|recipes}} for details of all query constraint paramters. |
||
Zeile 22: | Zeile 22: | ||
Only valid when <code>mode=result</code>. result item will show their internal item ID (if available), and/or have no link, respectively. |
Only valid when <code>mode=result</code>. result item will show their internal item ID (if available), and/or have no link, respectively. |
||
− | == |
+ | == Beispiele == |
− | |||
{| class="wikitable" |
{| class="wikitable" |
||
|- |
|- |
Version vom 7. Januar 2019, 21:11 Uhr
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}}
|
6 ![]() ![]() ![]() ![]() ![]() |
{{recipes/extract|result=Lunar Hook|withresult=y}}
|
6 ![]() ![]() ![]() ![]() ![]() ![]() |
{{recipes/extract|result=Lunar Hook|nostation=y}}
|
6 ![]() ![]() ![]() ![]() |
{{recipes/extract|result=Lunar Hook|mode=result}}
|
![]() ![]() |
{{recipes/extract|result=Lunar Hook|mode=ingredients}}
|
|
{{recipes/extract|result=Lunar Hook|mode=station}}
|
![]() ![]() |
Platforms exclusive:
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}}
|
![]() ![]() oder ![]() ![]() oder ![]() ![]() oder ![]() ![]() oder ![]() ![]() ![]() ![]() | ||||||
{{recipes/extract|result=Sashimi|withresult=y}}
|
![]() ![]() ![]() oder ![]() ![]() ![]() oder ![]() ![]() ![]() oder ![]() ![]() ![]() oder ![]() ![]() ![]() ![]() ![]() | ||||||
{{recipes/extract|result=Sashimi|mode=result}}
|
![]() | ||||||
{{recipes/extract|result=Sashimi|mode=ingredients}}
|
|||||||
{{recipes/extract|result=Sashimi|mode=station}}
|
![]() | ||||||
{{recipes/extract|result=Sashimi|mode=ingredients|sep=--or--}}
|
|||||||
{{recipes/extract|result=Sashimi|nostation=y|sep= / }}
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() | ||||||
<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> |
|