欢迎大家来到沙石镇时光中文维基!本站编辑权限开放,欢迎加入中文维基 QQ 群「沙海时光」:372816689
目前正在进行全站数据更新,期间可能会存在显示异常的问题。
模板:RecyclerTableRow
模板文档
|
---|
注意:如果存在未填写的参数,对应的字段将会被隐藏。 |
查看或编辑当前文档。(关于模板文档) |
本站模板默认处于保护模式,如有意见或建议请通过评论区、讨论页或 QQ 群反馈。 |
RecyclerTableRow is a template used to populate tables for the Recycler similar to crafting tables. It uses information from item infoboxes. For each recycled item it displayes which items, quantity and output the player will receive if the item is processed by a Recycler.
This template uses and displays information received from title, effect, recycletime, materials fields in Infobox item and requires transclusion tags applied to the infobox to work properly.
To learn more about transclusion, visit the MediaWiki page.
Infobox
The syntax and the relevant fields in the infobox are:
<onlyinclude>{{{{{1|infobox item}}} |title = |recycletime = |recycle1drop = |recycle1amt = |recycle2prob = |recycle2drop = |recycle2amt = |recycle3prob = |recycle3drop = |recycle3amt = }}</onlyinclude>
The template supports up to six output resources from the recycled item.
- drop is the output product, e.g. Copper Stick
- amt is the amount for the given item, values can also be entered as e.g. 1+ or 1-3
- prob is the probability that the player will receive the given item. Use the default values since they correspond with a probability icon: "Guaranteed", "High", "Medium" and "Low".
Best practices
- Please avoid using {{PAGENAME}} magic word in the title field, it prevents the template from being displayed correctly.
- crafttime should contain one number listing crafting time in minutes on the lowest possible level station. Alternatively this field can be populated using multiples of 10 or 15 minutes.
|recycletime = {{#expr:6*{{{crafttimemod|15}}}}}
In the preceding example, the template will produce a recycle time of 1 hour 30 minutes = 6 x 15 minutes.
Template syntax
After the transclusion tags and parameter are placed in the infobox, the template can be called:
{{:Page name|RecyclerTableRow}}
Examples
The examples of the template's usage can be found on RecyclerTable page.